OSDN Git Service

add VC-1 intensity compensation for SNB
[android-x86/hardware-intel-common-vaapi.git] / src / gen6_mfd.h
index 6e20364..fd7b40f 100644 (file)
 #include <intel_bufmgr.h>
 #include "i965_decoder.h"
 
-struct gen6_avc_surface
-{
-    dri_bo *dmv_top;
-    dri_bo *dmv_bottom;
-    int dmv_bottom_flag;
-};
-
 #define GEN6_VC1_I_PICTURE              0
 #define GEN6_VC1_P_PICTURE              1
 #define GEN6_VC1_B_PICTURE              2
@@ -53,22 +46,24 @@ struct gen6_avc_surface
 #define GEN6_VC1_ADVANCED_PROFILE       2
 #define GEN6_VC1_RESERVED_PROFILE       3
 
-struct gen6_vc1_surface
-{
+struct gen6_vc1_surface {
     dri_bo *dmv;
     int picture_type;
+    int intensity_compensation;
+    int luma_scale;
+    int luma_shift;
 };
 
 struct hw_context;
 
-struct gen6_mfd_context
-{
+struct gen6_mfd_context {
     struct hw_context base;
 
     union {
         VAIQMatrixBufferMPEG2 mpeg2;
     } iq_matrix;
 
+    GenFrameStoreContext fs_ctx;
     GenFrameStore       reference_surface[MAX_GEN_REFERENCE_FRAMES];
     GenBuffer           post_deblocking_output;
     GenBuffer           pre_deblocking_output;