summaryrefslogtreecommitdiff
path: root/src/i965_drv_video.h
diff options
context:
space:
mode:
authorZhao, Yakui <yakui.zhao@intel.com>2014-05-26 08:40:15 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-06-16 11:53:35 +0800
commit107274f309c6c3a7c59b70d5140b781341c7e9c2 (patch)
tree375b1ae53ffa90401250da01a4f282c50801b307 /src/i965_drv_video.h
parentee4b8c3ec1e5b5f126d8bdb7021eb15630de751e (diff)
downloadlibva-intel-driver-107274f309c6c3a7c59b70d5140b781341c7e9c2.tar.gz
libva-intel-driver-107274f309c6c3a7c59b70d5140b781341c7e9c2.tar.bz2
libva-intel-driver-107274f309c6c3a7c59b70d5140b781341c7e9c2.zip
H264_Encoding: Add the support of packed slice header to be flexible
Under some encoding scenario, the user hopes to generate the packed slice header data by themself and then the driver can insert the passed slice header packed data into the coded clip. 1.The VA_ENC_PACKED_HEADER_SLICE flag is exported and it is treated as optional. This is to say: if packed slice header data is passed, it will be inserted directly. If no packed slice header data is passed, the driver will help to generate it. 2.Another restriction is that the packed slice header data is inserted after the packed rawdata for one slice. That is to say: If it needs to insert the packed rawdata and slice header data, the packed rawdata will be inserted firstly(This is handled by the driver). Signed-off-by: Zhao, Yakui <yakui.zhao@intel.com> (cherry picked from commit 00111e8a8bfa67b971419b72577eaa1b9f47bc34) Conflicts: src/gen75_mfc.c src/gen8_mfc.c
Diffstat (limited to 'src/i965_drv_video.h')
-rw-r--r--src/i965_drv_video.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h
index 9827209..29e550f 100644
--- a/src/i965_drv_video.h
+++ b/src/i965_drv_video.h
@@ -165,6 +165,9 @@ struct encode_state
/* This is to store the number of packed data for one slice */
int *slice_rawdata_count;
+ /* This is to store the index of packed slice header for one slice */
+ int *slice_header_index;
+
int last_packed_header_type;
struct buffer_store *misc_param[16];