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