| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 uint32_t numKeyFrames; | 62 uint32_t numKeyFrames; |
| 63 uint32_t numDeltaFrames; | 63 uint32_t numDeltaFrames; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 // Callback class used for passing decoded frames which are ready to be | 66 // Callback class used for passing decoded frames which are ready to be |
| 67 // rendered. | 67 // rendered. |
| 68 class VCMReceiveCallback { | 68 class VCMReceiveCallback { |
| 69 public: | 69 public: |
| 70 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT | 70 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT |
| 71 rtc::Optional<uint8_t> qp, | 71 rtc::Optional<uint8_t> qp, |
| 72 VideoContentType /*content_type*/) = 0; | 72 VideoContentType content_type) = 0; |
| 73 | 73 |
| 74 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { | 74 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { |
| 75 return -1; | 75 return -1; |
| 76 } | 76 } |
| 77 // Called when the current receive codec changes. | 77 // Called when the current receive codec changes. |
| 78 virtual void OnIncomingPayloadType(int payload_type) {} | 78 virtual void OnIncomingPayloadType(int payload_type) {} |
| 79 virtual void OnDecoderImplementationName(const char* implementation_name) {} | 79 virtual void OnDecoderImplementationName(const char* implementation_name) {} |
| 80 | 80 |
| 81 protected: | 81 protected: |
| 82 virtual ~VCMReceiveCallback() {} | 82 virtual ~VCMReceiveCallback() {} |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 // Callback class used for informing the user of the bit rate and frame rate, | 85 // Callback class used for informing the user of the bit rate and frame rate, |
| 86 // and the name of the encoder. | 86 // and the name of the encoder. |
| 87 class VCMSendStatisticsCallback { | 87 class VCMSendStatisticsCallback { |
| 88 public: | 88 public: |
| 89 virtual void SendStatistics(uint32_t bitRate, uint32_t frameRate) = 0; | 89 virtual void SendStatistics(uint32_t bitRate, uint32_t frameRate) = 0; |
| 90 | 90 |
| 91 protected: | 91 protected: |
| 92 virtual ~VCMSendStatisticsCallback() {} | 92 virtual ~VCMSendStatisticsCallback() {} |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // Callback class used for informing the user of the incoming bit rate and frame | 95 // Callback class used for informing the user of the incoming bit rate and frame |
| 96 // rate. | 96 // rate. |
| 97 class VCMReceiveStatisticsCallback { | 97 class VCMReceiveStatisticsCallback { |
| 98 public: | 98 public: |
| 99 virtual void OnReceiveRatesUpdated(uint32_t bitRate, uint32_t frameRate) = 0; | 99 virtual void OnReceiveRatesUpdated(uint32_t bitRate, uint32_t frameRate) = 0; |
| 100 virtual void OnCompleteFrame(bool is_keyframe, size_t size_bytes) = 0; | 100 virtual void OnCompleteFrame(bool is_keyframe, |
| 101 size_t size_bytes, |
| 102 VideoContentType content_type) = 0; |
| 101 virtual void OnDiscardedPacketsUpdated(int discarded_packets) = 0; | 103 virtual void OnDiscardedPacketsUpdated(int discarded_packets) = 0; |
| 102 virtual void OnFrameCountsUpdated(const FrameCounts& frame_counts) = 0; | 104 virtual void OnFrameCountsUpdated(const FrameCounts& frame_counts) = 0; |
| 103 virtual void OnFrameBufferTimingsUpdated(int decode_ms, | 105 virtual void OnFrameBufferTimingsUpdated(int decode_ms, |
| 104 int max_decode_ms, | 106 int max_decode_ms, |
| 105 int current_delay_ms, | 107 int current_delay_ms, |
| 106 int target_delay_ms, | 108 int target_delay_ms, |
| 107 int jitter_buffer_ms, | 109 int jitter_buffer_ms, |
| 108 int min_playout_delay_ms, | 110 int min_playout_delay_ms, |
| 109 int render_delay_ms) = 0; | 111 int render_delay_ms) = 0; |
| 110 | 112 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 public: | 167 public: |
| 166 virtual void RequestKeyFrame() = 0; | 168 virtual void RequestKeyFrame() = 0; |
| 167 | 169 |
| 168 protected: | 170 protected: |
| 169 virtual ~KeyFrameRequestSender() {} | 171 virtual ~KeyFrameRequestSender() {} |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 } // namespace webrtc | 174 } // namespace webrtc |
| 173 | 175 |
| 174 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 176 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
| OLD | NEW |