OSDN Git Service

enhence enc feature for vp8
authorxfengcarl <carl.zhang@intel.com>
Wed, 7 Jun 2017 17:54:46 +0000 (01:54 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 22 Nov 2017 06:02:34 +0000 (22:02 -0800)
add tempral_id for current frame

Signed-off-by: xfengcarl <carl.zhang@intel.com>
va/va_enc_vp8.h

index f7cab40..71cddf3 100644 (file)
@@ -130,8 +130,21 @@ typedef struct  _VAEncPictureParameterBufferVP8
             uint32_t no_ref_gf                      : 1;
             /* don't reference the alternate reference frame */
             uint32_t no_ref_arf                     : 1;
+            /* The temporal id the frame belongs to. */
+            uint32_t temporal_id                    : 8;
+            /**
+            *  following two flags indicate the reference order
+            *  LastRef is specified by 01b;
+            *  GoldRef is specified by 10b;
+            *  AltRef  is specified by 11b;
+            *  first_ref specifies the reference frame which is searched first.
+            *  second_ref specifies the reference frame which is searched second
+            *  if there is.
+            */
+            uint32_t first_ref                      : 2;
+            uint32_t second_ref                     : 2;
             /** \brief Reserved for future use, must be zero */
-            uint32_t reserved                       : 28;
+            uint32_t reserved                       : 16;
         } bits;
         uint32_t value;
     } ref_flags;