shithub: hantro9

Download patch

ref: c6af5fbe1f560644ce362b77c13aecd1412f9fbf
parent: c748ba68a174ed7f2cc4ac8975d72b9b959d6b63
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Apr 27 05:15:48 EDT 2023

g1regs: corrections

--- a/g1regs.h
+++ b/g1regs.h
@@ -22,9 +22,10 @@
 	SW_DEC_MAX_BURST = 0, /* = 16 for AIX is the max */
 
 	/* SWREG3 */
-	SW_PIC_INTERLACE_E = 1<<23, /* = !sps.frame_mbs_only_flag && sps.mb_adaptive_frame_field_flag */
-	SW_PIC_FIELDMODE_E = 1<<22, /* = 0 (do we have to support field-based decoding?) */
-	SW_PIC_TOPFIELD_E = 1<<19, /* = 0 */
+	SW_PIC_INTERLACE_E = 1<<23, /* = !sps.frame_mbs_only_flag &&
+	                             *   (sps.mb_adaptive_frame_field_flag || pic.field_pic_flag) */
+	SW_PIC_FIELDMODE_E = 1<<22, /* = !sps.frame_mbs_only_flag && pic.field_pic_flag */
+	SW_PIC_TOPFIELD_E = 1<<19, /* = !sps.frame_mbs_only_flag && !pic.bottom_field_flag */
 	SW_WRITE_MVS_E = 1<<12, /* = sps.profile_idc > 66 && sps.nal_ref_idc != 0 */
 	SW_SEQ_MBAFF_E = 1<<10, /* = sps.mb_adaptive_frame_field_flag */
 	SW_PICORD_COUNT_E = 1<<9, /* = sps.profile_idc > 66 (higher than baseline profile) */
@@ -32,7 +33,6 @@
 
 	/* SWREG4 */
 	SW_PIC_MB_WIDTH = 23, /* = sps.pic_width_in_mbs_minus1 + 1 */
-	SW_MB_WIDTH_OFF = 19, /* = 0 */
 	SW_PIC_MB_HEIGHT_P = 11, /* = sps.pic_height_in_map_units_minus1 + 1 */
 	SW_REF_FRAMES = 0, /* = sps.max_num_ref_frames */
 
@@ -111,7 +111,7 @@
 	                     * 3) scaling lists (sps.scaling_matrix_present_flag != 0 ||
 	                     *                   pps.pic_scaling_matrix_present_flag != 0)
 	                     *    4x4     + 8x8     - after inverse scanning process (8.5.6)
-	                     *    [6][16] + [6][64] - 32-bit ints
+	                     *    [6][16] + [6][64] - [3][2][1][0][7][6][5][4]... (little endia, 64bit)
 	                     */
 
 	/* SWREG41 */