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