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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class VCMReceiveCallback; | 24 class VCMReceiveCallback; |
25 | 25 |
26 enum { kDecoderFrameMemoryLength = 10 }; | 26 enum { kDecoderFrameMemoryLength = 10 }; |
27 | 27 |
28 struct VCMFrameInformation { | 28 struct VCMFrameInformation { |
29 int64_t renderTimeMs; | 29 int64_t renderTimeMs; |
30 int64_t decodeStartTimeMs; | 30 int64_t decodeStartTimeMs; |
31 void* userData; | 31 void* userData; |
32 VideoRotation rotation; | 32 VideoRotation rotation; |
33 VideoContentType content_type; | |
34 }; | 33 }; |
35 | 34 |
36 class VCMDecodedFrameCallback : public DecodedImageCallback { | 35 class VCMDecodedFrameCallback : public DecodedImageCallback { |
37 public: | 36 public: |
38 VCMDecodedFrameCallback(VCMTiming* timing, Clock* clock); | 37 VCMDecodedFrameCallback(VCMTiming* timing, Clock* clock); |
39 ~VCMDecodedFrameCallback() override; | 38 ~VCMDecodedFrameCallback() override; |
40 void SetUserReceiveCallback(VCMReceiveCallback* receiveCallback); | 39 void SetUserReceiveCallback(VCMReceiveCallback* receiveCallback); |
41 VCMReceiveCallback* UserReceiveCallback(); | 40 VCMReceiveCallback* UserReceiveCallback(); |
42 | 41 |
43 int32_t Decoded(VideoFrame& decodedImage) override; | 42 int32_t Decoded(VideoFrame& decodedImage) override; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool PrefersLateDecoding() const; | 102 bool PrefersLateDecoding() const; |
104 | 103 |
105 private: | 104 private: |
106 VCMDecodedFrameCallback* _callback; | 105 VCMDecodedFrameCallback* _callback; |
107 VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength]; | 106 VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength]; |
108 uint32_t _nextFrameInfoIdx; | 107 uint32_t _nextFrameInfoIdx; |
109 VideoDecoder* const _decoder; | 108 VideoDecoder* const _decoder; |
110 VideoCodecType _codecType; | 109 VideoCodecType _codecType; |
111 bool _isExternal; | 110 bool _isExternal; |
112 bool _keyFrameDecoded; | 111 bool _keyFrameDecoded; |
113 VideoContentType _last_keyframe_content_type; | |
114 }; | 112 }; |
115 | 113 |
116 } // namespace webrtc | 114 } // namespace webrtc |
117 | 115 |
118 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ | 116 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ |
OLD | NEW |