2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_PACKET_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_PACKET_H_
14 #include "webrtc/modules/interface/module_common_types.h"
15 #include "webrtc/modules/video_coding/main/source/jitter_buffer_common.h"
16 #include "webrtc/typedefs.h"
23 VCMPacket(const uint8_t* ptr,
25 const WebRtcRTPHeader& rtpHeader);
26 VCMPacket(const uint8_t* ptr,
36 // NTP time of the capture time in local timebase in milliseconds.
39 const uint8_t* dataPtr;
44 webrtc::VideoCodecType codec;
46 bool isFirstPacket; // Is this first packet in a frame.
47 VCMNaluCompleteness completeNALU; // Default is kNaluIncomplete.
48 bool insertStartCode; // True if a start code should be inserted before this
52 RTPVideoHeader codecSpecificHeader;
55 void CopyCodecSpecifics(const RTPVideoHeader& videoHeader);
59 #endif // WEBRTC_MODULES_VIDEO_CODING_PACKET_H_