hardware/intel/libva
Revisión | f24804c1e2938e0e2fe85ecab9199615b6fa1416 (tree) |
---|---|
Tiempo | 2014-07-18 21:04:08 |
Autor | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Xiang, Haihao |
va_enc_vp8: update the vp8 interface again
previous update missed some changes
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 34035a18a7e963da536e15e9dea32f77cde8577f)
@@ -122,12 +122,25 @@ typedef struct _VAEncPictureParameterBufferVP8 | ||
122 | 122 | struct { |
123 | 123 | /* force this frame to be a keyframe */ |
124 | 124 | unsigned int force_kf : 1; |
125 | - /* don't reference the last frame */ | |
125 | + /* don't reference the last frame */ | |
126 | 126 | unsigned int no_ref_last : 1; |
127 | - /* don't reference the golden frame */ | |
127 | + /* don't reference the golden frame */ | |
128 | 128 | unsigned int no_ref_gf : 1; |
129 | - /* don't reference the alternate reference frame */ | |
129 | + /* don't reference the alternate reference frame */ | |
130 | 130 | unsigned int no_ref_arf : 1; |
131 | + unsigned int reserved : 28; | |
132 | + } bits; | |
133 | + unsigned int value; | |
134 | + } ref_flags; | |
135 | + | |
136 | + union { | |
137 | + struct { | |
138 | + /* version */ | |
139 | + unsigned int version : 3; | |
140 | + /* show_frame */ | |
141 | + unsigned int show_frame : 1; | |
142 | + /* color_space */ | |
143 | + unsigned int color_space : 1; | |
131 | 144 | /* 0: bicubic, 1: bilinear, other: none */ |
132 | 145 | unsigned int recon_filter_type : 2; |
133 | 146 | /* 0: no loop fitler, 1: simple loop filter */ |
@@ -216,7 +229,7 @@ typedef struct _VAEncPictureParameterBufferVP8 | ||
216 | 229 | * Encoder application is advised to set this flag to 1 at key frames. |
217 | 230 | */ |
218 | 231 | unsigned int forced_lf_adjustment : 1; |
219 | - unsigned int reserved : 4; | |
232 | + unsigned int reserved : 3; | |
220 | 233 | } bits; |
221 | 234 | unsigned int value; |
222 | 235 | } pic_flags; |
@@ -301,9 +314,6 @@ typedef struct _VAEncMBMapBufferVP8 | ||
301 | 314 | */ |
302 | 315 | typedef struct _VAQMatrixBufferVP8 |
303 | 316 | { |
304 | - /* | |
305 | - * array first dimensional is segment and 2nd dimensional is Q index | |
306 | - */ | |
307 | 317 | unsigned short quantization_index[4]; |
308 | 318 | short quantization_index_delta[5]; |
309 | 319 | } VAQMatrixBufferVP8; |