hardware/intel/libva
Revisión | a46a26f4d5435d2cba2fd0e47ef3ab91797326ff (tree) |
---|---|
Tiempo | 2014-02-13 16:07:57 |
Autor | Zhao, Halley <halley.zhao@inte...> |
Commiter | Xiang, Haihao |
vp8 dec: refine va_dec_vp8.h
add clear notation for: key_frame/VABoolCoderContextVPX.count/num_of_partitions/partition_size[0]
remove mb_skip_coeff since it can be deduced from mb_no_coeff_skip if it is required
Signed-off-by: Zhao, Halley <halley.zhao@intel.com>
@@ -54,7 +54,11 @@ typedef struct _VABoolCoderContextVPX | ||
54 | 54 | unsigned char range; |
55 | 55 | /* partition 0 "value" */ |
56 | 56 | unsigned char value; |
57 | - /* partition 0 number of shifts before an output byte is available */ | |
57 | + /* | |
58 | + * 'partition 0 number of shifts before an output byte is available' | |
59 | + * it is the number of remaining bits in 'value' for decoding, range [0, 7]. | |
60 | + */ | |
61 | + | |
58 | 62 | unsigned char count; |
59 | 63 | } VABoolCoderContextVPX; |
60 | 64 |
@@ -83,7 +87,7 @@ typedef struct _VAPictureParameterBufferVP8 | ||
83 | 87 | |
84 | 88 | union { |
85 | 89 | struct { |
86 | - /* same as key_frame in bitstream syntax */ | |
90 | + /* same as key_frame in bitstream syntax, 0 means a key frame */ | |
87 | 91 | unsigned int key_frame : 1; |
88 | 92 | /* same as version in bitstream syntax */ |
89 | 93 | unsigned int version : 3; |
@@ -107,8 +111,6 @@ typedef struct _VAPictureParameterBufferVP8 | ||
107 | 111 | unsigned int sign_bias_alternate : 1; |
108 | 112 | /* same as mb_no_coeff_skip in bitstream syntax */ |
109 | 113 | unsigned int mb_no_coeff_skip : 1; |
110 | - /* see section 11.1 for mb_skip_coeff */ | |
111 | - unsigned int mb_skip_coeff : 1; | |
112 | 114 | /* flag to indicate that loop filter should be disabled */ |
113 | 115 | unsigned int loop_filter_disable : 1; |
114 | 116 | } bits; |
@@ -172,7 +174,7 @@ typedef struct _VASliceParameterBufferVP8 | ||
172 | 174 | */ |
173 | 175 | unsigned int slice_data_size; |
174 | 176 | /* |
175 | - * offset to the first byte of partition data | |
177 | + * offset to the first byte of partition data (control partition) | |
176 | 178 | */ |
177 | 179 | unsigned int slice_data_offset; |
178 | 180 | /* |
@@ -180,12 +182,20 @@ typedef struct _VASliceParameterBufferVP8 | ||
180 | 182 | */ |
181 | 183 | unsigned int slice_data_flag; |
182 | 184 | /* |
183 | - * offset to the first bit of MB from the first byte of partition data | |
185 | + * offset to the first bit of MB from the first byte of partition data(slice_data_offset) | |
184 | 186 | */ |
185 | 187 | unsigned int macroblock_offset; |
186 | 188 | |
187 | - /* Partitions */ | |
189 | + /* | |
190 | + * Partitions | |
191 | + * (1<<log2_nbr_of_dct_partitions)+1, count both control partition (frame header) and toke partition | |
192 | + */ | |
188 | 193 | unsigned char num_of_partitions; |
194 | + /* | |
195 | + * partition_size[0] is remaining bytes of control partition after parsed by application. | |
196 | + * exclude current byte for the remaining bits in bool_coder_ctx. | |
197 | + * exclude the uncompress data chunk since first_part_size 'excluding the uncompressed data chunk' | |
198 | + */ | |
189 | 199 | unsigned int partition_size[9]; |
190 | 200 | } VASliceParameterBufferVP8; |
191 | 201 |