HevcConfig
@UnstableApi
public final class HevcConfig
HEVC configuration data.
Summary
Public fields |
|
|---|---|
final int |
The bit depth of the chroma samples, or |
final int |
The bit depth of the luma samples, or |
final @Nullable String |
An RFC 6381 codecs string representing the video format, or |
final @C.ColorRange int |
The |
final int |
The |
final int |
The |
final int |
The height of each decoded picture, or |
final int |
The width of each decoded picture, or |
final int |
The height of each cropped decoded picture, or |
final List<byte[]> |
List of buffers containing the codec-specific data to be provided to the decoder. |
final int |
The |
final int |
The |
final int |
The length of the NAL unit length field in the bitstream's container, in bytes. |
final float |
The pixel width to height ratio. |
final int |
The |
final @Nullable NalUnitUtil.H265VpsData |
The parsed representation of VPS data or |
final int |
The width of each cropped decoded picture, or |
Public methods |
|
|---|---|
static HevcConfig |
parse(ParsableByteArray data)Parses HEVC configuration data. |
static HevcConfig |
parseLayered(ParsableByteArray data, NalUnitUtil.H265VpsData vpsData)Parses L-HEVC configuration data. |
Public fields
bitdepthChroma
public final int bitdepthChroma
The bit depth of the chroma samples, or NO_VALUE if unknown.
bitdepthLuma
public final int bitdepthLuma
The bit depth of the luma samples, or NO_VALUE if unknown.
codecs
public final @Nullable String codecs
An RFC 6381 codecs string representing the video format, or null if not known.
See codecs.
colorRange
public final @C.ColorRange int colorRange
The C.ColorRange of the video or NO_VALUE if unknown or not applicable.
colorSpace
@C.ColorSpace
public final int colorSpace
The C.ColorSpace of the video or NO_VALUE if unknown or not applicable.
colorTransfer
@C.ColorTransfer
public final int colorTransfer
The C.ColorTransfer of the video or NO_VALUE if unknown or not applicable.
decodedHeight
public final int decodedHeight
The height of each decoded picture, or NO_VALUE if unknown.
decodedWidth
public final int decodedWidth
The width of each decoded picture, or NO_VALUE if unknown.
initializationData
public final List<byte[]> initializationData
List of buffers containing the codec-specific data to be provided to the decoder.
See initializationData.
maxNumReorderPics
public final int maxNumReorderPics
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
public final int maxSubLayers
The sps_max_sub_layers_minus1 + 1 value: the number of temporal sub-layers.
nalUnitLengthFieldLength
public final int nalUnitLengthFieldLength
The length of the NAL unit length field in the bitstream's container, in bytes.
stereoMode
@C.StereoMode
public final int stereoMode
The C.StereoMode of the video or NO_VALUE if unknown or not applicable.
vpsData
public final @Nullable NalUnitUtil.H265VpsData vpsData
The parsed representation of VPS data or null if not available.
Public methods
parse
public static HevcConfig parse(ParsableByteArray data)
Parses HEVC configuration data.
| Parameters | |
|---|---|
ParsableByteArray data |
A |
| Returns | |
|---|---|
HevcConfig |
A parsed representation of the HEVC configuration data. |
| Throws | |
|---|---|
androidx.media3.common.ParserException |
If an error occurred parsing the data. |
parseLayered
public static HevcConfig parseLayered(ParsableByteArray data, NalUnitUtil.H265VpsData vpsData)
Parses L-HEVC configuration data.
| Parameters | |
|---|---|
ParsableByteArray data |
A |
NalUnitUtil.H265VpsData vpsData |
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. |