| 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 }; | 55 }; |
| 56 | 56 |
| 57 // Callback class used for sending data ready to be packetized | 57 // Callback class used for sending data ready to be packetized |
| 58 class VCMPacketizationCallback { | 58 class VCMPacketizationCallback { |
| 59 public: | 59 public: |
| 60 virtual int32_t SendData(uint8_t payloadType, | 60 virtual int32_t SendData(uint8_t payloadType, |
| 61 const EncodedImage& encoded_image, | 61 const EncodedImage& encoded_image, |
| 62 const RTPFragmentationHeader& fragmentationHeader, | 62 const RTPFragmentationHeader& fragmentationHeader, |
| 63 const RTPVideoHeader* rtpVideoHdr) = 0; | 63 const RTPVideoHeader* rtpVideoHdr) = 0; |
| 64 | 64 |
| 65 virtual void OnEncoderImplementationName(const char* implementation_name) {} |
| 66 |
| 65 protected: | 67 protected: |
| 66 virtual ~VCMPacketizationCallback() { | 68 virtual ~VCMPacketizationCallback() { |
| 67 } | 69 } |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 // Callback class used for passing decoded frames which are ready to be rendered
. | 72 // Callback class used for passing decoded frames which are ready to be rendered
. |
| 71 class VCMReceiveCallback { | 73 class VCMReceiveCallback { |
| 72 public: | 74 public: |
| 73 virtual int32_t FrameToRender(VideoFrame& videoFrame) = 0; | 75 virtual int32_t FrameToRender(VideoFrame& videoFrame) = 0; |
| 74 virtual int32_t ReceivedDecodedReferenceFrame( | 76 virtual int32_t ReceivedDecodedReferenceFrame( |
| 75 const uint64_t pictureId) { | 77 const uint64_t pictureId) { |
| 76 return -1; | 78 return -1; |
| 77 } | 79 } |
| 78 // Called when the current receive codec changes. | 80 // Called when the current receive codec changes. |
| 79 virtual void OnIncomingPayloadType(int payload_type) {} | 81 virtual void OnIncomingPayloadType(int payload_type) {} |
| 82 virtual void OnDecoderImplementationName(const char* implementation_name) {} |
| 80 | 83 |
| 81 protected: | 84 protected: |
| 82 virtual ~VCMReceiveCallback() { | 85 virtual ~VCMReceiveCallback() { |
| 83 } | 86 } |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 // Callback class used for informing the user of the bit rate and frame rate pro
duced by the | 89 // Callback class used for informing the user of the bit rate and frame rate pro
duced by the |
| 87 // encoder. | 90 // encoder. |
| 88 class VCMSendStatisticsCallback { | 91 class VCMSendStatisticsCallback { |
| 89 public: | 92 public: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; | 195 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; |
| 193 | 196 |
| 194 protected: | 197 protected: |
| 195 virtual ~VCMRenderBufferSizeCallback() { | 198 virtual ~VCMRenderBufferSizeCallback() { |
| 196 } | 199 } |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 } // namespace webrtc | 202 } // namespace webrtc |
| 200 | 203 |
| 201 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 204 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
| OLD | NEW |