| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 * Reset the decoder state, prepare for a new call | 90 * Reset the decoder state, prepare for a new call |
| 91 */ | 91 */ |
| 92 int32_t Reset(); | 92 int32_t Reset(); |
| 93 | 93 |
| 94 /** | 94 /** |
| 95 * Set decode callback. Deregistering while decoding is illegal. | 95 * Set decode callback. Deregistering while decoding is illegal. |
| 96 */ | 96 */ |
| 97 int32_t RegisterDecodeCompleteCallback(VCMDecodedFrameCallback* callback); | 97 int32_t RegisterDecodeCompleteCallback(VCMDecodedFrameCallback* callback); |
| 98 | 98 |
| 99 bool External() const; | 99 bool External() const; |
| 100 bool PrefersLateDecoding() const; |
| 100 | 101 |
| 101 private: | 102 private: |
| 102 VCMDecodedFrameCallback* _callback; | 103 VCMDecodedFrameCallback* _callback; |
| 103 VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength]; | 104 VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength]; |
| 104 uint32_t _nextFrameInfoIdx; | 105 uint32_t _nextFrameInfoIdx; |
| 105 VideoDecoder* const _decoder; | 106 VideoDecoder* const _decoder; |
| 106 VideoCodecType _codecType; | 107 VideoCodecType _codecType; |
| 107 bool _isExternal; | 108 bool _isExternal; |
| 108 bool _keyFrameDecoded; | 109 bool _keyFrameDecoded; |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace webrtc | 112 } // namespace webrtc |
| 112 | 113 |
| 113 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ | 114 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ |
| OLD | NEW |