AvcConfig
@UnstableApi
class AvcConfig
AVC configuration data.
Summary
Public functions |
|
|---|---|
java-static AvcConfig! |
parse(data: ParsableByteArray!)Parses AVC configuration data. |
Public properties |
|
|---|---|
Int |
The bit depth of the chroma samples, or |
Int |
The bit depth of the luma samples, or |
String? |
An RFC 6381 codecs string representing the video format, or |
@C.ColorRange Int |
The |
Int |
The |
Int |
The |
Int |
The height of each decoded frame, or |
(Mutable)List<ByteArray<Byte>!>! |
List of buffers containing the codec-specific data to be provided to the decoder. |
Int |
The value of |
Int |
The length of the NAL unit length field in the bitstream's container, in bytes. |
Float |
The pixel width to height ratio. |
Int |
The width of each decoded frame, or |
Public functions
parse
java-static fun parse(data: ParsableByteArray!): AvcConfig!
Parses AVC configuration data.
| Parameters | |
|---|---|
data: ParsableByteArray! |
A |
| Returns | |
|---|---|
AvcConfig! |
A parsed representation of the AVC configuration data. |
| Throws | |
|---|---|
androidx.media3.common.ParserException |
If an error occurred parsing the data. |
Public properties
codecs
val codecs: String?
An RFC 6381 codecs string representing the video format, or null if not known.
See codecs.
colorRange
val colorRange: @C.ColorRange Int
The C.ColorRange of the video, or NO_VALUE if unknown or not applicable.
colorSpace
@C.ColorSpace
val colorSpace: Int
The C.ColorSpace of the video, or NO_VALUE if unknown or not applicable.
colorTransfer
@C.ColorTransfer
val colorTransfer: Int
The C.ColorTransfer of the video, or NO_VALUE if unknown or not applicable.
initializationData
val initializationData: (Mutable)List<ByteArray<Byte>!>!
List of buffers containing the codec-specific data to be provided to the decoder.
See initializationData.
maxNumReorderFrames
val maxNumReorderFrames: Int
The value of max_num_reorder_frames read from the VUI parameters, or inferred according to the spec if absent.
nalUnitLengthFieldLength
val nalUnitLengthFieldLength: Int
The length of the NAL unit length field in the bitstream's container, in bytes.