From f24804c1e2938e0e2fe85ecab9199615b6fa1416 Mon Sep 17 00:00:00 2001 From: Austin Yuan Date: Fri, 2 Aug 2013 11:28:33 +0800 Subject: va_enc_vp8: update the vp8 interface again previous update missed some changes Signed-off-by: Austin Yuan (cherry picked from commit 34035a18a7e963da536e15e9dea32f77cde8577f) --- va/va_enc_vp8.h | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/va/va_enc_vp8.h b/va/va_enc_vp8.h index 35b31d9..56dda84 100644 --- a/va/va_enc_vp8.h +++ b/va/va_enc_vp8.h @@ -122,12 +122,25 @@ typedef struct _VAEncPictureParameterBufferVP8 struct { /* force this frame to be a keyframe */ unsigned int force_kf : 1; - /* don't reference the last frame */ + /* don't reference the last frame */ unsigned int no_ref_last : 1; - /* don't reference the golden frame */ + /* don't reference the golden frame */ unsigned int no_ref_gf : 1; - /* don't reference the alternate reference frame */ + /* don't reference the alternate reference frame */ unsigned int no_ref_arf : 1; + unsigned int reserved : 28; + } bits; + unsigned int value; + } ref_flags; + + union { + struct { + /* version */ + unsigned int version : 3; + /* show_frame */ + unsigned int show_frame : 1; + /* color_space */ + unsigned int color_space : 1; /* 0: bicubic, 1: bilinear, other: none */ unsigned int recon_filter_type : 2; /* 0: no loop fitler, 1: simple loop filter */ @@ -216,7 +229,7 @@ typedef struct _VAEncPictureParameterBufferVP8 * Encoder application is advised to set this flag to 1 at key frames. */ unsigned int forced_lf_adjustment : 1; - unsigned int reserved : 4; + unsigned int reserved : 3; } bits; unsigned int value; } pic_flags; @@ -301,9 +314,6 @@ typedef struct _VAEncMBMapBufferVP8 */ typedef struct _VAQMatrixBufferVP8 { - /* - * array first dimensional is segment and 2nd dimensional is Q index - */ unsigned short quantization_index[4]; short quantization_index_delta[5]; } VAQMatrixBufferVP8; -- cgit v1.2.1