mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge pull request #8437 from equeim:interlaced
PiperOrigin-RevId: 352357712
This commit is contained in:
commit
1095f5fc3e
@ -335,6 +335,26 @@ public final class H265Reader implements ElementaryStreamReader {
|
||||
Log.w(TAG, "Unexpected aspect_ratio_idc value: " + aspectRatioIdc);
|
||||
}
|
||||
}
|
||||
if (bitArray.readBit()) { // overscan_info_present_flag
|
||||
bitArray.skipBit(); // overscan_appropriate_flag
|
||||
}
|
||||
if (bitArray.readBit()) { // video_signal_type_present_flag
|
||||
bitArray.skipBits(4); // video_format, video_full_range_flag
|
||||
if (bitArray.readBit()) { // colour_description_present_flag
|
||||
// colour_primaries, transfer_characteristics, matrix_coeffs
|
||||
bitArray.skipBits(24);
|
||||
}
|
||||
}
|
||||
if (bitArray.readBit()) { // chroma_loc_info_present_flag
|
||||
bitArray.readUnsignedExpGolombCodedInt(); // chroma_sample_loc_type_top_field
|
||||
bitArray.readUnsignedExpGolombCodedInt(); // chroma_sample_loc_type_bottom_field
|
||||
}
|
||||
bitArray.skipBit(); // neutral_chroma_indication_flag
|
||||
if (bitArray.readBit()) { // field_seq_flag
|
||||
// field_seq_flag equal to 1 indicates that the coded video sequence conveys pictures that
|
||||
// represent fields, which means that frame height is double the picture height.
|
||||
picHeightInLumaSamples *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Parse the SPS to derive an RFC 6381 codecs string.
|
||||
|
Loading…
x
Reference in New Issue
Block a user