HevcConfig
@UnstableApi
class HevcConfig
HEVC configuration data.
Summary
Public functions |
|
|---|---|
java-static HevcConfig! |
parse(data: ParsableByteArray!)Parses HEVC configuration data. |
java-static HevcConfig! |
parseLayered(data: ParsableByteArray!, vpsData: NalUnitUtil.H265VpsData!)Parses L-HEVC 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 picture, or |
Int |
The width of each decoded picture, or |
Int |
The height of each cropped decoded picture, or |
(Mutable)List<ByteArray<Byte>!>! |
List of buffers containing the codec-specific data to be provided to the decoder. |
Int |
The |
Int |
The |
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 |
NalUnitUtil.H265VpsData? |
The parsed representation of VPS data or |
Int |
The width of each cropped decoded picture, or |
Public functions
parse
java-static fun parse(data: ParsableByteArray!): HevcConfig!
Parses HEVC configuration data.
| Parameters | |
|---|---|
data: ParsableByteArray! |
A |
| Returns | |
|---|---|
HevcConfig! |
A parsed representation of the HEVC configuration data. |
| Throws | |
|---|---|
androidx.media3.common.ParserException |
If an error occurred parsing the data. |
parseLayered
java-static fun parseLayered(data: ParsableByteArray!, vpsData: NalUnitUtil.H265VpsData!): HevcConfig!
Parses L-HEVC configuration data.
| Parameters | |
|---|---|
data: ParsableByteArray! |
A |
vpsData: NalUnitUtil.H265VpsData! |
A parsed representation of VPS data. |
| Returns | |
|---|---|
HevcConfig! |
A parsed representation of the L-HEVC 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.
maxNumReorderPics
val maxNumReorderPics: Int
The sps_max_num_reorder_pics value.
If a different value is present for each layer (due to
sps_sub_layer_ordering_info_present_flag), this value is the max of the values for all the layers.
maxSubLayers
val maxSubLayers: Int
The sps_max_sub_layers_minus1 + 1 value: the number of temporal sub-layers.
nalUnitLengthFieldLength
val nalUnitLengthFieldLength: Int
The length of the NAL unit length field in the bitstream's container, in bytes.
stereoMode
@C.StereoMode
val stereoMode: Int
The C.StereoMode of the video or NO_VALUE if unknown or not applicable.
vpsData
val vpsData: NalUnitUtil.H265VpsData?
The parsed representation of VPS data or null if not available.