OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |