platform/upstream/libva-intel-driver.git
12 years agoCheck the max resolution supported by hardware when create VA context
Xiang, Haihao [Tue, 27 Mar 2012 06:55:23 +0000 (14:55 +0800)]
Check the max resolution supported by hardware when create VA context

It will avoid GPU hang when try to play unsupported large resolution
videos.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 546fdcfa2f4dd162fdd19187255a57272d4f1745)

Conflicts:

src/i965_drv_video.c
src/i965_drv_video.h

12 years agoAllocate internal buffers with right size for SNB & IVB
Xiang, Haihao [Tue, 27 Mar 2012 06:48:36 +0000 (14:48 +0800)]
Allocate internal buffers with right size for SNB & IVB

The size is scalable with frame width or height

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit a97985da277cd48302cfcb0374604874fc77ef7d)

12 years agoAvoid moving objects in a heap to a new address when expanding this heap
Xiang, Haihao [Mon, 26 Mar 2012 06:12:27 +0000 (14:12 +0800)]
Avoid moving objects in a heap to a new address when expanding this heap

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit ef5efefaec8b3a4eafde2347b98a973f73745421)

12 years agoUse AVS kernel to implement normal scaling on Sandybridge
Xiang, Haihao [Thu, 22 Mar 2012 01:31:05 +0000 (09:31 +0800)]
Use AVS kernel to implement normal scaling on Sandybridge

Set parameter nlas to 0 to disable NLAS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 0b38176cda6047b05cf0eacd913f57ce501f4fdf)

12 years agoRemove weave method
Xiang, Haihao [Tue, 20 Mar 2012 01:47:26 +0000 (09:47 +0800)]
Remove weave method

The surface has been weaved for field coded picture.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the mapping of filter
Xiang, Haihao [Tue, 20 Mar 2012 01:09:46 +0000 (09:09 +0800)]
Fix the mapping of filter

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix compiler error after merge
Xiang, Haihao [Fri, 16 Mar 2012 05:29:02 +0000 (13:29 +0800)]
Fix compiler error after merge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoMerge branch 'vaapi-ext' into staging-work
Xiang, Haihao [Fri, 16 Mar 2012 05:28:01 +0000 (13:28 +0800)]
Merge branch 'vaapi-ext' into staging-work

Conflicts:
src/gen6_mfc.c

12 years agoFix VME output offset issue
Xiang, Haihao [Fri, 16 Mar 2012 05:00:02 +0000 (13:00 +0800)]
Fix VME output offset issue

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAlways append MI_BATCH_BUFFER_END at the end of a batchbuffer
Xiang, Haihao [Fri, 16 Mar 2012 01:26:03 +0000 (09:26 +0800)]
Always append MI_BATCH_BUFFER_END at the end of a batchbuffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoMore space for the header of picture & slice in the MFC batchbuffer
Xiang, Haihao [Fri, 16 Mar 2012 00:48:06 +0000 (08:48 +0800)]
More space for the header of picture & slice in the MFC batchbuffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoMFC: optimize the MFC batchbuffer shader
Xiang, Haihao [Thu, 15 Mar 2012 06:46:32 +0000 (14:46 +0800)]
MFC: optimize the MFC batchbuffer shader

12 years agoVME: dual start and adaptive search
Xiang, Haihao [Thu, 15 Mar 2012 06:05:48 +0000 (14:05 +0800)]
VME: dual start and adaptive search

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoVME: Handle multiple macroblocks in a single thread
Xiang, Haihao [Thu, 15 Mar 2012 01:46:37 +0000 (09:46 +0800)]
VME: Handle multiple macroblocks in a single thread

In addition, merge include files for GEN6 & GEN7

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoMerge branch 'vaapi-ext' into staging-work
Xiang, Haihao [Tue, 13 Mar 2012 00:47:44 +0000 (08:47 +0800)]
Merge branch 'vaapi-ext' into staging-work

Conflicts:
src/gen6_mfc.c
src/gen6_vme.c
src/gen7_mfc.c
src/gen7_mfc.h

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSetup pipeline to create MFC batchbuffer on Sandybridge
Xiang, Haihao [Fri, 9 Mar 2012 00:35:32 +0000 (08:35 +0800)]
Setup pipeline to create MFC batchbuffer on Sandybridge

Also clean up the source

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSetup pipeline to create MFC batchbuffer on IVB
Xiang, Haihao [Thu, 8 Mar 2012 05:00:35 +0000 (13:00 +0800)]
Setup pipeline to create MFC batchbuffer on IVB

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoNew shader for MFC batchbuffer
Xiang, Haihao [Thu, 8 Mar 2012 04:58:37 +0000 (12:58 +0800)]
New shader for MFC batchbuffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAdd two helper functions for batchbuffer
Xiang, Haihao [Fri, 2 Mar 2012 07:40:51 +0000 (15:40 +0800)]
Add two helper functions for batchbuffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSynced gen7 with gen6 for HRD.
teaonly [Fri, 2 Mar 2012 06:49:44 +0000 (14:49 +0800)]
Synced gen7 with gen6 for HRD.

12 years agoSynced gen7 with gen6 for HRD.
teaonly [Fri, 2 Mar 2012 06:41:44 +0000 (14:41 +0800)]
Synced gen7 with gen6 for HRD.

12 years agoFix the issue of vaGetImage()/vaPutImage() in multi-threads
Xiang, Haihao [Thu, 1 Mar 2012 05:17:54 +0000 (13:17 +0800)]
Fix the issue of vaGetImage()/vaPutImage() in multi-threads

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 0b60832061988c68e6a531e6852f02f6308d349c)

12 years agoFix map/unmap mismatches
Xiang, Haihao [Thu, 1 Mar 2012 04:57:21 +0000 (12:57 +0800)]
Fix map/unmap mismatches

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 918f26fc0c5c38fb8c1002dd48c857897931c5d5)

12 years agoFixed VME result offset issue for IVB.
Xiang, Haihao [Wed, 29 Feb 2012 07:59:46 +0000 (15:59 +0800)]
Fixed VME result offset issue for IVB.

Signe-off-by: Zhou Chang <chang.zhou@intel.com>
Signe-off-by: Xiang, Haihao <haihao.xiang@intel.com
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 18ffbe2b8adcafa62635efa84673d0f09f8278e2)

12 years agoPreprocess VME shader first
Xiang, Haihao [Wed, 29 Feb 2012 07:45:07 +0000 (15:45 +0800)]
Preprocess VME shader first

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 65f644f71422f38064677f2fed6e11ac04037936)

12 years agoFixed multipul slices issue, change end of coded buffer judge.
Zhou,Chang [Wed, 29 Feb 2012 05:54:52 +0000 (13:54 +0800)]
Fixed multipul slices issue, change end of coded buffer judge.
(cherry picked from commit 5da90f4cc14e24d6b0f2e1c69505b8bfa939b4cd)

12 years agoFix memory leak
Xiang, Haihao [Tue, 28 Feb 2012 03:19:10 +0000 (11:19 +0800)]
Fix memory leak

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 814424d03c88cd7aff57e886587a131f6bf8197f)

12 years agoFix the issue of vaGetImage()/vaPutImage() in multi-threads
Xiang, Haihao [Thu, 1 Mar 2012 05:17:54 +0000 (13:17 +0800)]
Fix the issue of vaGetImage()/vaPutImage() in multi-threads

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix map/unmap mismatches
Xiang, Haihao [Thu, 1 Mar 2012 04:57:21 +0000 (12:57 +0800)]
Fix map/unmap mismatches

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSynced IVB with SNB, added HRD and multipul slices support.
Zhou,Chang [Wed, 29 Feb 2012 05:57:42 +0000 (13:57 +0800)]
Synced IVB with SNB, added HRD and multipul slices support.

12 years agoFixed VME result offset issue for IVB.
Xiang, Haihao [Wed, 29 Feb 2012 07:59:46 +0000 (15:59 +0800)]
Fixed VME result offset issue for IVB.

Signe-off-by: Zhou Chang <chang.zhou@intel.com>
Signe-off-by: Xiang, Haihao <haihao.xiang@intel.com
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoPreprocess VME shader first
Xiang, Haihao [Wed, 29 Feb 2012 07:45:07 +0000 (15:45 +0800)]
Preprocess VME shader first

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFixed multipul slices issue, change end of coded buffer judge.
Zhou,Chang [Wed, 29 Feb 2012 05:54:52 +0000 (13:54 +0800)]
Fixed multipul slices issue, change end of coded buffer judge.

12 years agoCleanup VME
Xiang, Haihao [Wed, 29 Feb 2012 02:15:47 +0000 (10:15 +0800)]
Cleanup VME

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix memory leak
Xiang, Haihao [Tue, 28 Feb 2012 03:19:10 +0000 (11:19 +0800)]
Fix memory leak

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoUse the right slice parameters for multi-slice encoding
Xiang, Haihao [Mon, 27 Feb 2012 06:54:06 +0000 (14:54 +0800)]
Use the right slice parameters for multi-slice encoding

Previously it always fills SLICE_STATE with the first slice

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 73f11b0f369f74ea1fdccfd1a0818364cd196949)

Conflicts:

src/gen6_mfc.c

12 years agoUse the right slice parameters for multi-slice encoding
Xiang, Haihao [Mon, 27 Feb 2012 06:54:06 +0000 (14:54 +0800)]
Use the right slice parameters for multi-slice encoding

Previously it always fills SLICE_STATE with the first slice

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoReissue all states before executing VME
Xiang, Haihao [Thu, 23 Feb 2012 06:35:01 +0000 (14:35 +0800)]
Reissue all states before executing VME

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoReissue all states before executing VME
Xiang, Haihao [Thu, 23 Feb 2012 06:35:01 +0000 (14:35 +0800)]
Reissue all states before executing VME

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAlso support Main & High profile on Sandybridge
Xiang, Haihao [Wed, 22 Feb 2012 04:56:08 +0000 (12:56 +0800)]
Also support Main & High profile on Sandybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSet input/output color list
Xiang, Haihao [Wed, 22 Feb 2012 02:43:58 +0000 (10:43 +0800)]
Set input/output color list

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSupport Main & High profile
Xiang, Haihao [Wed, 22 Feb 2012 01:06:59 +0000 (09:06 +0800)]
Support Main & High profile

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoStore VAEncPackedHeaderParameterBuffer as other parameter buffer
Xiang, Haihao [Wed, 22 Feb 2012 01:06:11 +0000 (09:06 +0800)]
Store VAEncPackedHeaderParameterBuffer as other parameter buffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAdd support for the new version of vaCreateSurfaces()
Xiang, Haihao [Tue, 21 Feb 2012 08:04:40 +0000 (16:04 +0800)]
Add support for the new version of vaCreateSurfaces()

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAdd support for vaGetSurfaceAttributes()
Xiang, Haihao [Tue, 21 Feb 2012 07:07:09 +0000 (15:07 +0800)]
Add support for vaGetSurfaceAttributes()

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoRemove VAProcFilterParameterBufferType from vaRenderPicture()
Xiang, Haihao [Mon, 20 Feb 2012 08:27:17 +0000 (16:27 +0800)]
Remove VAProcFilterParameterBufferType from vaRenderPicture()

Now VAProcPipelineParameterBuffer::filters holds all Video filter parameter

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAdd support for VAEncMiscParameterBuffer
Xiang, Haihao [Mon, 20 Feb 2012 07:55:22 +0000 (15:55 +0800)]
Add support for VAEncMiscParameterBuffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoUse the bitrate control mode set in the current configuration
Xiang, Haihao [Mon, 20 Feb 2012 07:08:59 +0000 (15:08 +0800)]
Use the bitrate control mode set in the current configuration

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the interface for internal context initialization
Xiang, Haihao [Wed, 22 Feb 2012 02:33:28 +0000 (10:33 +0800)]
Fix the interface for internal context initialization

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix i965_update_attribute
Xiang, Haihao [Mon, 20 Feb 2012 06:01:18 +0000 (14:01 +0800)]
Fix i965_update_attribute

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the supported bit rate control mode
Xiang, Haihao [Mon, 20 Feb 2012 05:51:35 +0000 (13:51 +0800)]
Fix the supported bit rate control mode

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoSwitch to the new interface in staging branch.
Xiang, Haihao [Mon, 20 Feb 2012 05:42:34 +0000 (13:42 +0800)]
Switch to the new interface in staging branch.

Only fix compile error in this commit

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoMerge branch 'master' into staging
Xiang, Haihao [Wed, 22 Feb 2012 02:23:29 +0000 (10:23 +0800)]
Merge branch 'master' into staging

Conflicts:
src/i965_drv_video.c

12 years agoh264: always submit MFX_QM_STATE for flat scaling lists (IVB).
Gwenole Beauchesne [Tue, 14 Feb 2012 09:56:20 +0000 (10:56 +0100)]
h264: always submit MFX_QM_STATE for flat scaling lists (IVB).

If codec layer does not provide a VAIQMatrixBufferH264, this means
flat scaling lists shall be used. The MFX_QM_STATE command still has
to be submitted since IVB+ does not have a means to use HW generated
scaling lists.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agojpeg: fix memory leak of huffman tables.
Gwenole Beauchesne [Tue, 14 Feb 2012 13:18:41 +0000 (14:18 +0100)]
jpeg: fix memory leak of huffman tables.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoFix build with older VA-API (libva).
Gwenole Beauchesne [Tue, 14 Feb 2012 13:16:31 +0000 (14:16 +0100)]
Fix build with older VA-API (libva).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoMerge branch 'master' into vaapi-ext
Xiang, Haihao [Tue, 14 Feb 2012 05:56:05 +0000 (13:56 +0800)]
Merge branch 'master' into vaapi-ext

Conflicts:
src/gen6_mfc.c
src/gen7_mfd.c
src/gen7_mfd.h
src/i965_drv_video.c
src/i965_drv_video.h
src/i965_encoder.c
src/i965_post_processing.c

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoUse the same the binding table index on Sandybridge & Ivybridge
Xiang, Haihao [Tue, 14 Feb 2012 01:14:17 +0000 (09:14 +0800)]
Use the same the binding table index on Sandybridge & Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoCreate batchbuffer for VME via GPU shader on Sandybridge
Xiang, Haihao [Tue, 14 Feb 2012 01:41:16 +0000 (09:41 +0800)]
Create batchbuffer for VME via GPU shader on Sandybridge

It is the same of commits a4ff1bd and a4ff1bd

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFill VME batchbuffer by GPU instead of CPU
Xiang, Haihao [Mon, 13 Feb 2012 01:09:04 +0000 (09:09 +0800)]
Fill VME batchbuffer by GPU instead of CPU

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoA new shader to create VME batchbuffer on Ivybridge
Xiang, Haihao [Tue, 14 Feb 2012 01:28:57 +0000 (09:28 +0800)]
A new shader to create VME batchbuffer on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoClean up
Xiang, Haihao [Tue, 7 Feb 2012 07:43:43 +0000 (15:43 +0800)]
Clean up

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the address of the surface state for vme output buffer
Xiang, Haihao [Fri, 10 Feb 2012 06:08:23 +0000 (14:08 +0800)]
Fix the address of the surface state for vme output buffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix surface state size
Xiang, Haihao [Fri, 10 Feb 2012 06:07:33 +0000 (14:07 +0800)]
Fix surface state size

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix compile error after cherry-pick
Xiang, Haihao [Tue, 7 Feb 2012 01:27:05 +0000 (09:27 +0800)]
Fix compile error after cherry-pick

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoA workaround for JPEG decoding on Ivybridge
Xiang, Haihao [Mon, 6 Feb 2012 06:39:08 +0000 (14:39 +0800)]
A workaround for JPEG decoding on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix y offset for Cb/Cr
Xiang, Haihao [Thu, 19 Jan 2012 08:28:37 +0000 (16:28 +0800)]
Fix y offset for Cb/Cr

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoJPEG component id macros are removed, so don't use them in driver
Xiang, Haihao [Thu, 19 Jan 2012 01:17:13 +0000 (09:17 +0800)]
JPEG component id macros are removed, so don't use them in driver

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix frame height/width for YUV400/YUV444/YUV422V_2Y JPEG image
Xiang, Haihao [Thu, 19 Jan 2012 01:01:59 +0000 (09:01 +0800)]
Fix frame height/width for YUV400/YUV444/YUV422V_2Y JPEG image

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoMap JPEG component id to Y, Cb, Cr
Xiang, Haihao [Thu, 19 Jan 2012 01:00:48 +0000 (09:00 +0800)]
Map JPEG component id to Y, Cb, Cr

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoRender YUV400 image on Ivybridge
Xiang, Haihao [Thu, 19 Jan 2012 00:59:09 +0000 (08:59 +0800)]
Render YUV400 image on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix graphics memory allocation for VA surface
Xiang, Haihao [Tue, 7 Feb 2012 01:19:03 +0000 (09:19 +0800)]
Fix graphics memory allocation for VA surface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agouse the revised JPEG decoding interface
Xiang, Haihao [Thu, 12 Jan 2012 05:30:34 +0000 (13:30 +0800)]
use the revised JPEG decoding interface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the bug for IVB jpeg decoding
Hai Lan [Wed, 21 Dec 2011 22:03:44 +0000 (06:03 +0800)]
Fix the bug for IVB jpeg decoding

When call i965_BeginPicture for JPEG decoding, Assertion `0' failed.
Signed-off-by: Hai Lan <hai.lan@intel.com>
12 years agouse the new JPEG decoding interface
Xiang, Haihao [Mon, 24 Oct 2011 05:28:42 +0000 (13:28 +0800)]
use the new JPEG decoding interface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoi965_drv_video: support JPEG decoding on Ivybridge
Xiang, Haihao [Wed, 7 Sep 2011 08:18:19 +0000 (16:18 +0800)]
i965_drv_video: support JPEG decoding on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoi965_drv_video: Postpone releasing internal buffer.
Xiang, Haihao [Mon, 20 Jun 2011 06:15:14 +0000 (14:15 +0800)]
i965_drv_video: Postpone releasing internal buffer.

Also fix memory leak in driver

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoi965_drv_video: Simplify render buffer function
Xiang, Haihao [Mon, 20 Jun 2011 02:09:15 +0000 (10:09 +0800)]
i965_drv_video: Simplify render buffer function

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAdded HRD support for Gen6.
Zhou Chang [Mon, 6 Feb 2012 15:50:38 +0000 (23:50 +0800)]
Added HRD support for Gen6.

12 years agoInitail HRD control framwork.
Zhou Chang [Mon, 6 Feb 2012 15:49:44 +0000 (23:49 +0800)]
Initail HRD control framwork.

12 years agoAdded SEI header help functions.
Zhou Chang [Mon, 6 Feb 2012 13:29:23 +0000 (21:29 +0800)]
Added SEI header help functions.

12 years agoA workaround for JPEG decoding on Ivybridge
Xiang, Haihao [Mon, 6 Feb 2012 06:39:08 +0000 (14:39 +0800)]
A workaround for JPEG decoding on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoPixel format conversion for IMC1/IMC3
Xiang, Haihao [Mon, 6 Feb 2012 06:36:21 +0000 (14:36 +0800)]
Pixel format conversion for IMC1/IMC3

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agovc1: fix motion vector mode (IVB).
Gwenole Beauchesne [Tue, 29 Nov 2011 16:26:35 +0000 (17:26 +0100)]
vc1: fix motion vector mode (IVB).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoThe software implementation of vaPutImage() on G4x
Gwenole Beauchesne [Thu, 2 Feb 2012 03:34:03 +0000 (11:34 +0800)]
The software implementation of vaPutImage() on G4x

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the surface format in vaPutImage()
Xiang, Haihao [Thu, 2 Feb 2012 03:09:40 +0000 (11:09 +0800)]
Fix the surface format in vaPutImage()

Set the format of surface format to the format
of the input image if the usage is unknown

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoGuess the format of a VA surface in vaDeriveImage()
Xiang, Haihao [Thu, 2 Feb 2012 02:37:38 +0000 (10:37 +0800)]
Guess the format of a VA surface in vaDeriveImage()

Sometimes we don't know the usage of a VA surface, so we have to
guess the format according to the current valid context (a hint).

Note it is not always right, pixel format conversion is
needed internally for mismatched pixel format.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoh264: fix and simplify REF_IDX_STATE (ILK, SNB, IVB).
Gwenole Beauchesne [Sun, 29 Jan 2012 18:07:37 +0000 (19:07 +0100)]
h264: fix and simplify REF_IDX_STATE (ILK, SNB, IVB).

Original code was parsing RefPicList0/1 over what is actually available
and filled in, i.e. wrt. num_ref_idx_l0/1_minus1 + 1. Besides, bit 5 of
Reference List Entry set to 1 means a frame, not a field.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoFactor out type definitions (GenFrameStore, GenBuffer).
Gwenole Beauchesne [Mon, 30 Jan 2012 10:05:17 +0000 (11:05 +0100)]
Factor out type definitions (GenFrameStore, GenBuffer).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAdd support for I420, YV12 etc. formatted YUV surface for encoding
Xiang, Haihao [Wed, 1 Feb 2012 06:26:51 +0000 (14:26 +0800)]
Add support for I420, YV12 etc. formatted YUV surface for encoding

MFX only supports NV12 formatted YUV surface, so the driver converts
I420/YV12 formatted surface to NV12 surface internally.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix the base offset of cr(V) surface
Xiang, Haihao [Wed, 1 Feb 2012 06:22:56 +0000 (14:22 +0800)]
Fix the base offset of cr(V) surface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAccelerated vaGetImage() on Sandybridge & Ivybridge
Xiang, Haihao [Mon, 30 Jan 2012 08:38:13 +0000 (16:38 +0800)]
Accelerated vaGetImage() on Sandybridge & Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoReuse AVS kernel for pixel format conversion on Ivybridge
Xiang, Haihao [Mon, 30 Jan 2012 07:17:30 +0000 (15:17 +0800)]
Reuse AVS kernel for pixel format conversion on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoAdd support for I420/YV12/IMC1/IMC3 input/output surface for AVS on Ivybridge
Xiang, Haihao [Mon, 30 Jan 2012 07:07:58 +0000 (15:07 +0800)]
Add support for I420/YV12/IMC1/IMC3 input/output surface for AVS on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoBuild new shaders for Ivybridge
Xiang, Haihao [Thu, 19 Jan 2012 02:44:33 +0000 (10:44 +0800)]
Build new shaders for Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoNormal scaling on Ivybridge
Xiang, Haihao [Mon, 30 Jan 2012 05:52:51 +0000 (13:52 +0800)]
Normal scaling on Ivybridge

Need to adjust parameters later

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoClear target surface with specified color
Xiang, Haihao [Mon, 30 Jan 2012 05:33:06 +0000 (13:33 +0800)]
Clear target surface with specified color

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix AVS parameters for Ivybridge
Xiang, Haihao [Mon, 30 Jan 2012 05:42:09 +0000 (13:42 +0800)]
Fix AVS parameters for Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoFix y offset for Cb/Cr
Xiang, Haihao [Thu, 19 Jan 2012 08:28:37 +0000 (16:28 +0800)]
Fix y offset for Cb/Cr

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoRemove whitespace following trailing backslash
Xiang, Haihao [Thu, 19 Jan 2012 08:25:33 +0000 (16:25 +0800)]
Remove whitespace following trailing backslash

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>