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

Side by Side Diff: webrtc/modules/video_coding/include/mock/mock_video_codec_interface.h

Issue 2489843002: Revert of Extract bitrate allocation of spatial/temporal layers out of codec impl. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 27 matching lines...) Expand all
38 MOCK_METHOD3(Encode, 38 MOCK_METHOD3(Encode,
39 int32_t(const VideoFrame& inputImage, 39 int32_t(const VideoFrame& inputImage,
40 const CodecSpecificInfo* codecSpecificInfo, 40 const CodecSpecificInfo* codecSpecificInfo,
41 const std::vector<FrameType>* frame_types)); 41 const std::vector<FrameType>* frame_types));
42 MOCK_METHOD1(RegisterEncodeCompleteCallback, 42 MOCK_METHOD1(RegisterEncodeCompleteCallback,
43 int32_t(EncodedImageCallback* callback)); 43 int32_t(EncodedImageCallback* callback));
44 MOCK_METHOD0(Release, int32_t()); 44 MOCK_METHOD0(Release, int32_t());
45 MOCK_METHOD0(Reset, int32_t()); 45 MOCK_METHOD0(Reset, int32_t());
46 MOCK_METHOD2(SetChannelParameters, int32_t(uint32_t packetLoss, int64_t rtt)); 46 MOCK_METHOD2(SetChannelParameters, int32_t(uint32_t packetLoss, int64_t rtt));
47 MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate)); 47 MOCK_METHOD2(SetRates, int32_t(uint32_t newBitRate, uint32_t frameRate));
48 MOCK_METHOD2(SetRateAllocation,
49 int32_t(const BitrateAllocation& newBitRate,
50 uint32_t frameRate));
51 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable)); 48 MOCK_METHOD1(SetPeriodicKeyFrames, int32_t(bool enable));
52 }; 49 };
53 50
54 class MockDecodedImageCallback : public DecodedImageCallback { 51 class MockDecodedImageCallback : public DecodedImageCallback {
55 public: 52 public:
56 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT 53 MOCK_METHOD1(Decoded, int32_t(VideoFrame& decodedImage)); // NOLINT
57 MOCK_METHOD2(Decoded, 54 MOCK_METHOD2(Decoded,
58 int32_t(VideoFrame& decodedImage, // NOLINT 55 int32_t(VideoFrame& decodedImage, // NOLINT
59 int64_t decode_time_ms)); 56 int64_t decode_time_ms));
60 MOCK_METHOD1(ReceivedDecodedReferenceFrame, 57 MOCK_METHOD1(ReceivedDecodedReferenceFrame,
(...skipping 13 matching lines...) Expand all
74 int64_t renderTimeMs)); 71 int64_t renderTimeMs));
75 MOCK_METHOD1(RegisterDecodeCompleteCallback, 72 MOCK_METHOD1(RegisterDecodeCompleteCallback,
76 int32_t(DecodedImageCallback* callback)); 73 int32_t(DecodedImageCallback* callback));
77 MOCK_METHOD0(Release, int32_t()); 74 MOCK_METHOD0(Release, int32_t());
78 MOCK_METHOD0(Copy, VideoDecoder*()); 75 MOCK_METHOD0(Copy, VideoDecoder*());
79 }; 76 };
80 77
81 } // namespace webrtc 78 } // namespace webrtc
82 79
83 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H _ 80 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_MOCK_MOCK_VIDEO_CODEC_INTERFACE_H _
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/generic_encoder.cc ('k') | webrtc/modules/video_coding/include/video_codec_initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698