Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: talk/media/webrtc/fakewebrtcvideoengine.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/media/sctp/sctpdataengine_unittest.cc ('k') | talk/media/webrtc/fakewebrtcvoiceengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/webrtc/fakewebrtcvideoengine.h
diff --git a/talk/media/webrtc/fakewebrtcvideoengine.h b/talk/media/webrtc/fakewebrtcvideoengine.h
index 755a3def14c51185bbe226d7535daef30d215b60..d205839f3ee3d8c55ea077bf4b43f4bfc820d967 100644
--- a/talk/media/webrtc/fakewebrtcvideoengine.h
+++ b/talk/media/webrtc/fakewebrtcvideoengine.h
@@ -64,29 +64,27 @@ class FakeWebRtcVideoDecoder : public webrtc::VideoDecoder {
: num_frames_received_(0) {
}
- virtual int32 InitDecode(const webrtc::VideoCodec*, int32) {
+ virtual int32_t InitDecode(const webrtc::VideoCodec*, int32_t) {
return WEBRTC_VIDEO_CODEC_OK;
}
- virtual int32 Decode(
- const webrtc::EncodedImage&, bool, const webrtc::RTPFragmentationHeader*,
- const webrtc::CodecSpecificInfo*, int64_t) {
+ virtual int32_t Decode(const webrtc::EncodedImage&,
+ bool,
+ const webrtc::RTPFragmentationHeader*,
+ const webrtc::CodecSpecificInfo*,
+ int64_t) {
num_frames_received_++;
return WEBRTC_VIDEO_CODEC_OK;
}
- virtual int32 RegisterDecodeCompleteCallback(
+ virtual int32_t RegisterDecodeCompleteCallback(
webrtc::DecodedImageCallback*) {
return WEBRTC_VIDEO_CODEC_OK;
}
- virtual int32 Release() {
- return WEBRTC_VIDEO_CODEC_OK;
- }
+ virtual int32_t Release() { return WEBRTC_VIDEO_CODEC_OK; }
- virtual int32 Reset() {
- return WEBRTC_VIDEO_CODEC_OK;
- }
+ virtual int32_t Reset() { return WEBRTC_VIDEO_CODEC_OK; }
int GetNumFramesReceived() const {
return num_frames_received_;
@@ -144,9 +142,9 @@ class FakeWebRtcVideoEncoder : public webrtc::VideoEncoder {
public:
FakeWebRtcVideoEncoder() : num_frames_encoded_(0) {}
- virtual int32 InitEncode(const webrtc::VideoCodec* codecSettings,
- int32 numberOfCores,
- size_t maxPayloadSize) {
+ virtual int32_t InitEncode(const webrtc::VideoCodec* codecSettings,
+ int32_t numberOfCores,
+ size_t maxPayloadSize) {
rtc::CritScope lock(&crit_);
codec_settings_ = *codecSettings;
return WEBRTC_VIDEO_CODEC_OK;
@@ -157,30 +155,27 @@ class FakeWebRtcVideoEncoder : public webrtc::VideoEncoder {
return codec_settings_;
}
- virtual int32 Encode(const webrtc::VideoFrame& inputImage,
- const webrtc::CodecSpecificInfo* codecSpecificInfo,
- const std::vector<webrtc::VideoFrameType>* frame_types) {
+ virtual int32_t Encode(
+ const webrtc::VideoFrame& inputImage,
+ const webrtc::CodecSpecificInfo* codecSpecificInfo,
+ const std::vector<webrtc::VideoFrameType>* frame_types) {
rtc::CritScope lock(&crit_);
++num_frames_encoded_;
return WEBRTC_VIDEO_CODEC_OK;
}
- virtual int32 RegisterEncodeCompleteCallback(
+ virtual int32_t RegisterEncodeCompleteCallback(
webrtc::EncodedImageCallback* callback) {
return WEBRTC_VIDEO_CODEC_OK;
}
- virtual int32 Release() {
- return WEBRTC_VIDEO_CODEC_OK;
- }
+ virtual int32_t Release() { return WEBRTC_VIDEO_CODEC_OK; }
- virtual int32 SetChannelParameters(uint32 packetLoss,
- int64_t rtt) {
+ virtual int32_t SetChannelParameters(uint32_t packetLoss, int64_t rtt) {
return WEBRTC_VIDEO_CODEC_OK;
}
- virtual int32 SetRates(uint32 newBitRate,
- uint32 frameRate) {
+ virtual int32_t SetRates(uint32_t newBitRate, uint32_t frameRate) {
return WEBRTC_VIDEO_CODEC_OK;
}
« no previous file with comments | « talk/media/sctp/sctpdataengine_unittest.cc ('k') | talk/media/webrtc/fakewebrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698