| 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) = 0; | 65 rtc::Optional<uint8_t> qp, |
| 66 VideoContentType content_type) = 0; |
| 66 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { | 67 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { |
| 67 return -1; | 68 return -1; |
| 68 } | 69 } |
| 69 // Called when the current receive codec changes. | 70 // Called when the current receive codec changes. |
| 70 virtual void OnIncomingPayloadType(int payload_type) {} | 71 virtual void OnIncomingPayloadType(int payload_type) {} |
| 71 virtual void OnDecoderImplementationName(const char* implementation_name) {} | 72 virtual void OnDecoderImplementationName(const char* implementation_name) {} |
| 72 | 73 |
| 73 protected: | 74 protected: |
| 74 virtual ~VCMReceiveCallback() {} | 75 virtual ~VCMReceiveCallback() {} |
| 75 }; | 76 }; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 public: | 156 public: |
| 156 virtual void RequestKeyFrame() = 0; | 157 virtual void RequestKeyFrame() = 0; |
| 157 | 158 |
| 158 protected: | 159 protected: |
| 159 virtual ~KeyFrameRequestSender() {} | 160 virtual ~KeyFrameRequestSender() {} |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace webrtc | 163 } // namespace webrtc |
| 163 | 164 |
| 164 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 165 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
| OLD | NEW |