• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisióna46a26f4d5435d2cba2fd0e47ef3ab91797326ff (tree)
Tiempo2014-02-13 16:07:57
AutorZhao, Halley <halley.zhao@inte...>
CommiterXiang, Haihao

Log Message

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>

Cambiar Resumen

Diferencia incremental

--- a/va/va_dec_vp8.h
+++ b/va/va_dec_vp8.h
@@ -54,7 +54,11 @@ typedef struct _VABoolCoderContextVPX
5454 unsigned char range;
5555 /* partition 0 "value" */
5656 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+
5862 unsigned char count;
5963 } VABoolCoderContextVPX;
6064
@@ -83,7 +87,7 @@ typedef struct _VAPictureParameterBufferVP8
8387
8488 union {
8589 struct {
86- /* same as key_frame in bitstream syntax */
90+ /* same as key_frame in bitstream syntax, 0 means a key frame */
8791 unsigned int key_frame : 1;
8892 /* same as version in bitstream syntax */
8993 unsigned int version : 3;
@@ -107,8 +111,6 @@ typedef struct _VAPictureParameterBufferVP8
107111 unsigned int sign_bias_alternate : 1;
108112 /* same as mb_no_coeff_skip in bitstream syntax */
109113 unsigned int mb_no_coeff_skip : 1;
110- /* see section 11.1 for mb_skip_coeff */
111- unsigned int mb_skip_coeff : 1;
112114 /* flag to indicate that loop filter should be disabled */
113115 unsigned int loop_filter_disable : 1;
114116 } bits;
@@ -172,7 +174,7 @@ typedef struct _VASliceParameterBufferVP8
172174 */
173175 unsigned int slice_data_size;
174176 /*
175- * offset to the first byte of partition data
177+ * offset to the first byte of partition data (control partition)
176178 */
177179 unsigned int slice_data_offset;
178180 /*
@@ -180,12 +182,20 @@ typedef struct _VASliceParameterBufferVP8
180182 */
181183 unsigned int slice_data_flag;
182184 /*
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)
184186 */
185187 unsigned int macroblock_offset;
186188
187- /* Partitions */
189+ /*
190+ * Partitions
191+ * (1<<log2_nbr_of_dct_partitions)+1, count both control partition (frame header) and toke partition
192+ */
188193 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+ */
189199 unsigned int partition_size[9];
190200 } VASliceParameterBufferVP8;
191201