PD#SWPL-83432
BUG=
232905331
Problem:
The HDR parameter is read when the
color_description_present_flag is not recognized,
resulting in the wrong parameter being transmitted
when the color_description_present_flag is 0.
Solution:
According to the HDR protocol, adjust
the read logic of related parameters.
Verify:
adt3
Signed-off-by: kuan.hu <kuan.hu@amlogic.com>
Change-Id: I5694100d826afc32674074f1e5508ab05f7dadb0
((video_signal & 0xff0000) >> 16) |
((video_signal & 0x3f000000));
-
+ /* When the matrix_coeffiecents, transfer_characteristics and colour_primaries
+ * syntax elements are absent, their values shall be presumed to be equal to 2
+ */
+ if ((hw->video_signal_from_vui & 0x100000) == 0) {
+ hw->video_signal_from_vui = (hw->video_signal_from_vui & 0xfff00000) | 0x20202;
+ }
/*dpb_print(DECODE_ID(hw),
0,
"video_signal_from_vui:0x%x, "
}
#endif
hevc->video_signal_type = (v << 16) | c;
+
+ /* When the matrix_coeffiecents, transfer_characteristics and colour_primaries
+ * syntax elements are absent, their values shall be presumed to be equal to 2
+ */
+ if ((hevc->video_signal_type & 0x100000) == 0) {
+ hevc->video_signal_type = (hevc->video_signal_type & 0xfff00000) | 0x20202;
+ }
video_signal_type = hevc->video_signal_type;
}
hw->video_signal_type = (hw->aom_param.p.video_signal_type << 16
| hw->aom_param.p.color_description);
+ /* When the matrix_coeffiecents, transfer_characteristics and colour_primaries
+ * syntax elements are absent, their values shall be presumed to be equal to 2
+ */
+ if ((hw->video_signal_type & 0x100000) == 0) {
+ hw->video_signal_type = (hw->video_signal_type & 0xfff00000) | 0x20202;
+ }
+
if (next_lcu_size != hw->current_lcu_size) {
av1_print(hw, AOM_DEBUG_HW_MORE,
" ## lcu_size changed from %d to %d\n",