| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 virtual int32_t InitDecode(const VideoCodec* codec_settings, | 63 virtual int32_t InitDecode(const VideoCodec* codec_settings, |
| 64 int32_t number_of_cores) = 0; | 64 int32_t number_of_cores) = 0; |
| 65 | 65 |
| 66 virtual int32_t Decode(const EncodedImage& input_image, | 66 virtual int32_t Decode(const EncodedImage& input_image, |
| 67 bool missing_frames, | 67 bool missing_frames, |
| 68 const RTPFragmentationHeader* fragmentation, | 68 const RTPFragmentationHeader* fragmentation, |
| 69 const CodecSpecificInfo* codec_specific_info = NULL, | 69 const CodecSpecificInfo* codec_specific_info = NULL, |
| 70 int64_t render_time_ms = -1) = 0; | 70 int64_t render_time_ms = -1) = 0; |
| 71 | 71 |
| 72 #if defined(WEBRTC_ANDROID) |
| 73 // This is a temporary remedy while the Android capture implementation is |
| 74 // being changed to deliver frames on the decoder thread without polling. |
| 75 // See https://bugs.chromium.org/p/webrtc/issues/detail?id=7361 |
| 76 virtual void PollDecodedFrames() {} |
| 77 #endif |
| 78 |
| 72 virtual int32_t RegisterDecodeCompleteCallback( | 79 virtual int32_t RegisterDecodeCompleteCallback( |
| 73 DecodedImageCallback* callback) = 0; | 80 DecodedImageCallback* callback) = 0; |
| 74 | 81 |
| 75 virtual int32_t Release() = 0; | 82 virtual int32_t Release() = 0; |
| 76 | 83 |
| 77 // Returns true if the decoder prefer to decode frames late. | 84 // Returns true if the decoder prefer to decode frames late. |
| 78 // That is, it can not decode infinite number of frames before the decoded | 85 // That is, it can not decode infinite number of frames before the decoded |
| 79 // frame is consumed. | 86 // frame is consumed. |
| 80 virtual bool PrefersLateDecoding() const { return true; } | 87 virtual bool PrefersLateDecoding() const { return true; } |
| 81 | 88 |
| 82 virtual const char* ImplementationName() const { return "unknown"; } | 89 virtual const char* ImplementationName() const { return "unknown"; } |
| 83 }; | 90 }; |
| 84 | 91 |
| 85 } // namespace webrtc | 92 } // namespace webrtc |
| 86 | 93 |
| 87 #endif // WEBRTC_API_VIDEO_CODECS_VIDEO_DECODER_H_ | 94 #endif // WEBRTC_API_VIDEO_CODECS_VIDEO_DECODER_H_ |
| OLD | NEW |