OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const CodecSpecificInfo* codec_specific_info, | 146 const CodecSpecificInfo* codec_specific_info, |
147 int64_t /*render_time_ms*/) override; | 147 int64_t /*render_time_ms*/) override; |
148 | 148 |
149 int RegisterDecodeCompleteCallback(DecodedImageCallback* callback) override; | 149 int RegisterDecodeCompleteCallback(DecodedImageCallback* callback) override; |
150 | 150 |
151 int Release() override; | 151 int Release() override; |
152 | 152 |
153 const char* ImplementationName() const override; | 153 const char* ImplementationName() const override; |
154 | 154 |
155 private: | 155 private: |
156 int ReturnFrame(const vpx_image_t* img, | 156 int ReturnFrame(const vpx_image_t* img, uint32_t timeStamp); |
157 uint32_t timestamp, | |
158 int64_t ntp_time_ms); | |
159 | 157 |
160 // Memory pool used to share buffers between libvpx and webrtc. | 158 // Memory pool used to share buffers between libvpx and webrtc. |
161 Vp9FrameBufferPool frame_buffer_pool_; | 159 Vp9FrameBufferPool frame_buffer_pool_; |
162 DecodedImageCallback* decode_complete_callback_; | 160 DecodedImageCallback* decode_complete_callback_; |
163 bool inited_; | 161 bool inited_; |
164 vpx_codec_ctx_t* decoder_; | 162 vpx_codec_ctx_t* decoder_; |
165 VideoCodec codec_; | 163 VideoCodec codec_; |
166 bool key_frame_required_; | 164 bool key_frame_required_; |
167 }; | 165 }; |
168 } // namespace webrtc | 166 } // namespace webrtc |
169 | 167 |
170 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_VP9_IMPL_H_ | 168 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP9_VP9_IMPL_H_ |
OLD | NEW |