| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 struct VCMFrameCount { | 57 struct VCMFrameCount { |
| 58 uint32_t numKeyFrames; | 58 uint32_t numKeyFrames; |
| 59 uint32_t numDeltaFrames; | 59 uint32_t numDeltaFrames; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 // Callback class used for passing decoded frames which are ready to be | 62 // Callback class used for passing decoded frames which are ready to be |
| 63 // rendered. | 63 // rendered. |
| 64 class VCMReceiveCallback { | 64 class VCMReceiveCallback { |
| 65 public: | 65 public: |
| 66 virtual int32_t FrameToRender(VideoFrame& videoFrame) = 0; // NOLINT | 66 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT |
| 67 rtc::Optional<uint8_t> qp) = 0; |
| 67 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { | 68 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { |
| 68 return -1; | 69 return -1; |
| 69 } | 70 } |
| 70 // Called when the current receive codec changes. | 71 // Called when the current receive codec changes. |
| 71 virtual void OnIncomingPayloadType(int payload_type) {} | 72 virtual void OnIncomingPayloadType(int payload_type) {} |
| 72 virtual void OnDecoderImplementationName(const char* implementation_name) {} | 73 virtual void OnDecoderImplementationName(const char* implementation_name) {} |
| 73 | 74 |
| 74 protected: | 75 protected: |
| 75 virtual ~VCMReceiveCallback() {} | 76 virtual ~VCMReceiveCallback() {} |
| 76 }; | 77 }; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 public: | 175 public: |
| 175 virtual void RequestKeyFrame() = 0; | 176 virtual void RequestKeyFrame() = 0; |
| 176 | 177 |
| 177 protected: | 178 protected: |
| 178 virtual ~KeyFrameRequestSender() {} | 179 virtual ~KeyFrameRequestSender() {} |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace webrtc | 182 } // namespace webrtc |
| 182 | 183 |
| 183 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 184 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
| OLD | NEW |