Commit 1095f5fc by Oliver Woodman

Merge pull request #8437 from equeim:interlaced

PiperOrigin-RevId: 352357712
parents 08132656 377a3250
...@@ -335,6 +335,26 @@ public final class H265Reader implements ElementaryStreamReader { ...@@ -335,6 +335,26 @@ public final class H265Reader implements ElementaryStreamReader {
Log.w(TAG, "Unexpected aspect_ratio_idc value: " + aspectRatioIdc); 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. // Parse the SPS to derive an RFC 6381 codecs string.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment