public class H264
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static byte |
kFuA |
(package private) static int |
kFuAHeaderSize |
(package private) static byte |
kIdr |
(package private) static int |
kLengthFieldSize |
(package private) static int |
kNalHeaderSize |
(package private) static int |
kNalUSize |
(package private) static byte |
kPps |
(package private) static byte |
kSei |
(package private) static byte |
kSps |
(package private) static byte |
kStapA |
(package private) static int |
kStapAHeaderSize |
(package private) static byte |
kTypeMask
Constants used to detect H264 keyframes in rtp packet
|
(package private) static byte[] |
NAL_PREFIX
The bytes to prefix any NAL unit to be output by this
DePacketizer and given to a H.264 decoder.
|
Constructor and Description |
---|
H264() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
getUint16(byte[] data,
int offset) |
(package private) static boolean |
verifyStapANaluLengths(byte[] data,
int offset,
int lengthRemaining)
Check if Single-Time Aggregation Packet (STAP-A) NAL unit is correctly formed.
|
static final byte[] NAL_PREFIX
static final byte kTypeMask
static final byte kIdr
static final byte kSei
static final byte kSps
static final byte kPps
static final byte kStapA
static final byte kFuA
static final int kNalHeaderSize
static final int kFuAHeaderSize
static final int kLengthFieldSize
static final int kStapAHeaderSize
static final int kNalUSize
static boolean verifyStapANaluLengths(byte[] data, int offset, int lengthRemaining)
data
- STAP-A payloadoffset
- Starting position of NAL unitlengthRemaining
- Bytes left in STAP-Astatic int getUint16(byte[] data, int offset)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.