H264_Encoding: Add the support of packed slice header to be flexible
authorZhao, Yakui <yakui.zhao@intel.com>
Mon, 26 May 2014 00:40:15 +0000 (08:40 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 16 Jun 2014 03:53:35 +0000 (11:53 +0800)
commit107274f309c6c3a7c59b70d5140b781341c7e9c2
tree375b1ae53ffa90401250da01a4f282c50801b307
parentee4b8c3ec1e5b5f126d8bdb7021eb15630de751e
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
src/gen6_mfc.c
src/gen6_mfc_common.c
src/gen75_mfc.c
src/gen8_mfc.c
src/i965_drv_video.c
src/i965_drv_video.h