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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 struct VCMFrameCount { | 52 struct VCMFrameCount { |
53 uint32_t numKeyFrames; | 53 uint32_t numKeyFrames; |
54 uint32_t numDeltaFrames; | 54 uint32_t numDeltaFrames; |
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) {} | 65 virtual void OnEncoderImplementationName(const char* implementation_name) {} |
66 | 66 |
67 protected: | 67 protected: |
68 virtual ~VCMPacketizationCallback() {} | 68 virtual ~VCMPacketizationCallback() {} |
69 }; | 69 }; |
70 | 70 |
71 // Callback class used for passing decoded frames which are ready to be | 71 // Callback class used for passing decoded frames which are ready to be |
72 // rendered. | 72 // rendered. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 public: | 189 public: |
190 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; | 190 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; |
191 | 191 |
192 protected: | 192 protected: |
193 virtual ~VCMRenderBufferSizeCallback() {} | 193 virtual ~VCMRenderBufferSizeCallback() {} |
194 }; | 194 }; |
195 | 195 |
196 } // namespace webrtc | 196 } // namespace webrtc |
197 | 197 |
198 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 198 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
OLD | NEW |