cover more H.264 baseline profile clips of decoder
Submitted by Wind Yuan
Link to original bug (#722404)
Description
Created attachment 266538
h264-dec-add-more-checks-from-pps-for-hardware-profi.patch
Since driver only support constrained-baseline profile of H.264 for decoder. all other baseline clips would be disabled. This broke most baseline clips which mark constraint_set1_flag=0 but actually don't have FMO/ASO/RS.
From spec, if num_slice_groups_minus1 of picture parameter is 0, FMO/ASO are disabled. If redundant_pic_cnt_present_flag disabled(=0) RS will not appear. Then if checked the 2 fields both set to 0, we can mark them as a constrained-baseline profile for hardware to decode, which can cover more clips for HW decoder.
Patch attached. please review.
Patch 266538, "h264-dec-add-more-checks-from-pps-for-hardware-profi.patch":
0001-h264-dec-add-more-checks-from-pps-for-hardware-profi.patch