H264_encoding: Add the support of inserting the packed raw data passed from user
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)
commit89507c06c7ed03d829cf2526e621d844e174c90c
tree52816c0e5a076d7bae585a4ab8c54439d41e999f
parent558e904bc5c471795b09f6c2dcf65ba31590b19b
H264_encoding: Add the support of inserting the packed raw data passed from user

Under some encoding scenario, the user-space application hopes that the driver
can insert the passed packed rawdata into the coded clip. This is to allow the
insertion of packed rawdata passed from user. As the position of packed rawdata
is related with the slice. So the following restrictions are added:
1. the packed rawdata header type/data should be paired.
2. the packed rawdata data is inserted by following the passed order
3. the packed rawdata header type/data is split by using VAEncSliceParameterBuffer.
That is to say: The packed rawdata for slice 0 should be passed before the first
VAEncSliceParameterBuffer. After one VAEncSliceParameterBuffer is parsed,
the subseuquent packed rawdata is for another new slice. The subsequent
packed rawdata after the last VAEncSliceParameterBuffer is ignored.
4. it does not change the rule for the packed data of SPS/PPS/MISC type.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 974597ef64dc9a283d4787e1484a75d1610414f4)

Conflicts:
src/gen75_mfc.c
src/gen8_mfc.c
src/gen6_mfc.c
src/gen6_mfc.h
src/gen6_mfc_common.c
src/gen75_mfc.c
src/gen8_mfc.c
src/i965_drv_video.c