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

Side by Side Diff: webrtc/modules/video_coding/codecs/i420/include/i420.h

Issue 1426953003: Remove redudant encoder rate calls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove redundant function Created 5 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
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/interface/mock/mock_video_codec_interface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 int Release() override; 66 int Release() override;
67 67
68 int SetRates(uint32_t /*newBitRate*/, uint32_t /*frameRate*/) override { 68 int SetRates(uint32_t /*newBitRate*/, uint32_t /*frameRate*/) override {
69 return WEBRTC_VIDEO_CODEC_OK; 69 return WEBRTC_VIDEO_CODEC_OK;
70 } 70 }
71 71
72 int SetChannelParameters(uint32_t /*packetLoss*/, int64_t /*rtt*/) override { 72 int SetChannelParameters(uint32_t /*packetLoss*/, int64_t /*rtt*/) override {
73 return WEBRTC_VIDEO_CODEC_OK; 73 return WEBRTC_VIDEO_CODEC_OK;
74 } 74 }
75 75
76 int CodecConfigParameters(uint8_t* /*buffer*/, int /*size*/) override {
77 return WEBRTC_VIDEO_CODEC_OK;
78 }
79
80 void OnDroppedFrame() override {} 76 void OnDroppedFrame() override {}
81 77
82 private: 78 private:
83 static uint8_t* InsertHeader(uint8_t* buffer, uint16_t width, 79 static uint8_t* InsertHeader(uint8_t* buffer, uint16_t width,
84 uint16_t height); 80 uint16_t height);
85 81
86 bool _inited; 82 bool _inited;
87 EncodedImage _encodedImage; 83 EncodedImage _encodedImage;
88 EncodedImageCallback* _encodedCompleteCallback; 84 EncodedImageCallback* _encodedCompleteCallback;
89 }; // class I420Encoder 85 }; // class I420Encoder
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 VideoFrame _decodedImage; 144 VideoFrame _decodedImage;
149 int _width; 145 int _width;
150 int _height; 146 int _height;
151 bool _inited; 147 bool _inited;
152 DecodedImageCallback* _decodeCompleteCallback; 148 DecodedImageCallback* _decodeCompleteCallback;
153 }; // class I420Decoder 149 }; // class I420Decoder
154 150
155 } // namespace webrtc 151 } // namespace webrtc
156 152
157 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_I420_MAIN_INTERFACE_I420_H_ 153 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_I420_MAIN_INTERFACE_I420_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/interface/mock/mock_video_codec_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698