| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 |
| 11 // | 11 // |
| 12 // This file contains the declaration of the VP9 packetizer class. | 12 // This file contains the declaration of the VP9 packetizer class. |
| 13 // A packetizer object is created for each encoded video frame. The | 13 // A packetizer object is created for each encoded video frame. The |
| 14 // constructor is called with the payload data and size. | 14 // constructor is called with the payload data and size. |
| 15 // | 15 // |
| 16 // After creating the packetizer, the method NextPacket is called | 16 // After creating the packetizer, the method NextPacket is called |
| 17 // repeatedly to get all packets for the frame. The method returns | 17 // repeatedly to get all packets for the frame. The method returns |
| 18 // false as long as there are more packets left to fetch. | 18 // false as long as there are more packets left to fetch. |
| 19 // | 19 // |
| 20 | 20 |
| 21 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ | 21 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ |
| 22 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ | 22 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ |
| 23 | 23 |
| 24 #include <queue> | 24 #include <queue> |
| 25 #include <string> | 25 #include <string> |
| 26 | 26 |
| 27 #include "webrtc/base/constructormagic.h" |
| 27 #include "webrtc/modules/include/module_common_types.h" | 28 #include "webrtc/modules/include/module_common_types.h" |
| 28 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 29 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
| 29 #include "webrtc/rtc_base/constructormagic.h" | |
| 30 #include "webrtc/typedefs.h" | 30 #include "webrtc/typedefs.h" |
| 31 | 31 |
| 32 namespace webrtc { | 32 namespace webrtc { |
| 33 | 33 |
| 34 class RtpPacketizerVp9 : public RtpPacketizer { | 34 class RtpPacketizerVp9 : public RtpPacketizer { |
| 35 public: | 35 public: |
| 36 RtpPacketizerVp9(const RTPVideoHeaderVP9& hdr, | 36 RtpPacketizerVp9(const RTPVideoHeaderVP9& hdr, |
| 37 size_t max_payload_length, | 37 size_t max_payload_length, |
| 38 size_t last_packet_reduction_len); | 38 size_t last_packet_reduction_len); |
| 39 | 39 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 public: | 96 public: |
| 97 virtual ~RtpDepacketizerVp9() {} | 97 virtual ~RtpDepacketizerVp9() {} |
| 98 | 98 |
| 99 bool Parse(ParsedPayload* parsed_payload, | 99 bool Parse(ParsedPayload* parsed_payload, |
| 100 const uint8_t* payload, | 100 const uint8_t* payload, |
| 101 size_t payload_length) override; | 101 size_t payload_length) override; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace webrtc | 104 } // namespace webrtc |
| 105 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ | 105 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ |
| OLD | NEW |