public final class KLVPacket
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KLVPacket.Header
A class that represents a KLV packet header
|
static class |
KLVPacket.LengthField
A class that represents the length field of a KLV packet
|
Modifier and Type | Field and Description |
---|---|
static java.nio.ByteOrder |
BYTE_ORDER
The constant BYTE_ORDER.
|
static int |
KEY_FIELD_SIZE
The constant KEY_FIELD_SIZE.
|
static int |
LENGTH_FIELD_SUFFIX_MAX_SIZE
The constant LENGTH_FIELD_SUFFIX_MAX_SIZE.
|
Modifier and Type | Method and Description |
---|---|
static KLVPacket.LengthField |
getLength(ByteProvider byteProvider)
Gets the length field of the KLV packet
|
static boolean |
isGenericStreamPartitionDataElementKey(byte[] key)
Checks if the key corresponding to the KLV packet is a Generic Stream Partition Data Element key.
|
static boolean |
isKLVFillItem(byte[] key)
Checks if the key corresponding to the KLV packet is a KLV fill item key
|
static boolean |
isPHDRImageMetadataItemKey(byte[] key)
Checks if the key corresponding to the KLV packet is a PHDR image metadata item key
|
public static final java.nio.ByteOrder BYTE_ORDER
public static final int KEY_FIELD_SIZE
public static final int LENGTH_FIELD_SUFFIX_MAX_SIZE
public static boolean isKLVFillItem(byte[] key)
key
- the keypublic static boolean isPHDRImageMetadataItemKey(byte[] key)
key
- the keypublic static boolean isGenericStreamPartitionDataElementKey(byte[] key)
key
- the keypublic static KLVPacket.LengthField getLength(ByteProvider byteProvider) throws java.io.IOException
byteProvider
- the mxf byte providerjava.io.IOException
- the iO exception