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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 struct VCMFrameCount { | 55 struct VCMFrameCount { |
56 uint32_t numKeyFrames; | 56 uint32_t numKeyFrames; |
57 uint32_t numDeltaFrames; | 57 uint32_t numDeltaFrames; |
58 }; | 58 }; |
59 | 59 |
60 // Callback class used for passing decoded frames which are ready to be | 60 // Callback class used for passing decoded frames which are ready to be |
61 // rendered. | 61 // rendered. |
62 class VCMReceiveCallback { | 62 class VCMReceiveCallback { |
63 public: | 63 public: |
64 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT | 64 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT |
65 rtc::Optional<uint8_t> qp, | 65 rtc::Optional<uint8_t> qp) = 0; |
66 VideoContentType content_type) = 0; | |
67 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { | 66 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { |
68 return -1; | 67 return -1; |
69 } | 68 } |
70 // Called when the current receive codec changes. | 69 // Called when the current receive codec changes. |
71 virtual void OnIncomingPayloadType(int payload_type) {} | 70 virtual void OnIncomingPayloadType(int payload_type) {} |
72 virtual void OnDecoderImplementationName(const char* implementation_name) {} | 71 virtual void OnDecoderImplementationName(const char* implementation_name) {} |
73 | 72 |
74 protected: | 73 protected: |
75 virtual ~VCMReceiveCallback() {} | 74 virtual ~VCMReceiveCallback() {} |
76 }; | 75 }; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 public: | 155 public: |
157 virtual void RequestKeyFrame() = 0; | 156 virtual void RequestKeyFrame() = 0; |
158 | 157 |
159 protected: | 158 protected: |
160 virtual ~KeyFrameRequestSender() {} | 159 virtual ~KeyFrameRequestSender() {} |
161 }; | 160 }; |
162 | 161 |
163 } // namespace webrtc | 162 } // namespace webrtc |
164 | 163 |
165 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 164 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
OLD | NEW |