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 13 matching lines...) Expand all Loading... |
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; | 33 VideoContentType content_type; |
| 34 EncodedImage::Timing timing; |
34 }; | 35 }; |
35 | 36 |
36 class VCMDecodedFrameCallback : public DecodedImageCallback { | 37 class VCMDecodedFrameCallback : public DecodedImageCallback { |
37 public: | 38 public: |
38 VCMDecodedFrameCallback(VCMTiming* timing, Clock* clock); | 39 VCMDecodedFrameCallback(VCMTiming* timing, Clock* clock); |
39 ~VCMDecodedFrameCallback() override; | 40 ~VCMDecodedFrameCallback() override; |
40 void SetUserReceiveCallback(VCMReceiveCallback* receiveCallback); | 41 void SetUserReceiveCallback(VCMReceiveCallback* receiveCallback); |
41 VCMReceiveCallback* UserReceiveCallback(); | 42 VCMReceiveCallback* UserReceiveCallback(); |
42 | 43 |
43 int32_t Decoded(VideoFrame& decodedImage) override; | 44 int32_t Decoded(VideoFrame& decodedImage) override; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 VideoDecoder* const _decoder; | 110 VideoDecoder* const _decoder; |
110 VideoCodecType _codecType; | 111 VideoCodecType _codecType; |
111 bool _isExternal; | 112 bool _isExternal; |
112 bool _keyFrameDecoded; | 113 bool _keyFrameDecoded; |
113 VideoContentType _last_keyframe_content_type; | 114 VideoContentType _last_keyframe_content_type; |
114 }; | 115 }; |
115 | 116 |
116 } // namespace webrtc | 117 } // namespace webrtc |
117 | 118 |
118 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ | 119 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ |
OLD | NEW |