platform/upstream/libva.git
10 years agoDump max frame size in libva trace.
liubolun [Wed, 22 Jan 2014 07:10:23 +0000 (15:10 +0800)]
Dump max frame size in libva trace.

Change-Id: I4b38bc5930d653c96b45e4ce91856bfaf0cb277a
Signed-off-by: liubolun <bolun.liu@intel.com>
(cherry picked from commit 753421b8b3e9bd4529986dc0418e39e05dc2f394)

10 years agoAdd more VA Buffer print to ease debug
wfeng6 [Thu, 16 Jan 2014 08:58:06 +0000 (16:58 +0800)]
Add more VA Buffer print to ease debug

Add more VA Buffer print to ease debug:
1) correct the RefList1 print
2) the luma_weight, luma_offset, chroma_weight and
chroma_offset should always be printed

Change-Id: Id122e5fa186d24623d1c541c24c761ab2d807aac
Signed-off-by: wfeng6 <wei.feng@intel.com>
(cherry picked from commit 8d1eec87d3bf1e4ce13e4302c944569a22129c5d)

10 years agovatrace: add trace for VP8 decoding
Zhao Halley [Thu, 24 Oct 2013 07:22:21 +0000 (15:22 +0800)]
vatrace: add trace for VP8 decoding
(cherry picked from commit 303ab444365e7de29d471b28331e1c214877b63a)

Conflicts:

va/va_trace.c

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Signed-off-by: Liu Bolun <bolun.liu@intel.com>
[Haihao: fix conflicts with some modifications come from bc49c42bcbfb24286c06b3e7cdb171b2a01c6f80]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agovatrace: fix UV data offset issue of LIBVA_TRACE_SURFACE_GEOMETRY
Austin Yuan [Thu, 17 Oct 2013 02:42:54 +0000 (10:42 +0800)]
vatrace: fix UV data offset issue of LIBVA_TRACE_SURFACE_GEOMETRY

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit c954ff868057e02f620470d64c1f2071e2cfbb4e)

10 years agovatrace: refine the log format
Austin Yuan [Thu, 17 Oct 2013 02:40:23 +0000 (10:40 +0800)]
vatrace: refine the log format

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit f78e4a6a84178c4561a5b1c8dbb7773e5a575d0f)

10 years agovatrace: Partial dumping of VAProcPipelineParameterBuffer
Xiang, Haihao [Mon, 16 Sep 2013 05:08:04 +0000 (13:08 +0800)]
vatrace: Partial dumping of VAProcPipelineParameterBuffer

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

Conflicts:

va/va_trace.c

10 years agovatrace: check the pointer against NULL before using it
Xiang, Haihao [Mon, 12 Aug 2013 06:52:14 +0000 (14:52 +0800)]
vatrace: check the pointer against NULL before using it

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

10 years agovatrace: Initialize the local variable 'i'
Xiang, Haihao [Mon, 12 Aug 2013 06:28:01 +0000 (14:28 +0800)]
vatrace: Initialize the local variable 'i'

Otherwise the variable is used without being initialized.

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

10 years agovatrace: fix compile warnings and refine some format
Austin Yuan [Sun, 14 Jul 2013 04:04:09 +0000 (12:04 +0800)]
vatrace: fix compile warnings and refine some format

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit d68c9fb7eebe195d96e113abbf654f782a1450d8)

Conflicts:

va/va_trace.c

10 years agovatrace/vafool: save the context data into display context
Austin Yuan [Thu, 4 Jul 2013 04:59:25 +0000 (12:59 +0800)]
vatrace/vafool: save the context data into display context

The static allocation of context data has issue in
multiple threads environment. Put the allocation into
display context strcuture

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit e1ab961b20583c6c54ad05e2fe6bab619462106f)

Conflicts:

va/va_trace.c

10 years agovatrace: always printf RefPicList
Austin Yuan [Fri, 28 Jun 2013 07:24:18 +0000 (15:24 +0800)]
vatrace: always printf RefPicList

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit e9e685fe752b9865ba9e28cb63e18ce3f8aed2a0)

10 years agova_trace: avoid to dereference a NULL pointer
Xiang, Haihao [Thu, 20 Jun 2013 06:31:57 +0000 (14:31 +0800)]
va_trace: avoid to dereference a NULL pointer

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

10 years agovatrace: trace vaQuerySurfaceAttributes
Austin Yuan [Sat, 8 Jun 2013 03:16:03 +0000 (11:16 +0800)]
vatrace: trace vaQuerySurfaceAttributes

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit e468728f9e49603f91ccbce3a232aa3bd98d1fd4)
[Haihao: Remove JPEG encode from this commit]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agovainfo: Query the supported profile list before listing profile/entrypoint
Xiang, Haihao [Fri, 14 Feb 2014 04:36:16 +0000 (12:36 +0800)]
vainfo: Query the supported profile list before listing profile/entrypoint

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agovainfo: clean up resource in the error handling path
Xiang, Haihao [Fri, 14 Feb 2014 04:15:25 +0000 (12:15 +0800)]
vainfo: clean up resource in the error handling path

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agovainfo: Add the support for the new VA profiles
Xiang, Haihao [Wed, 27 Feb 2013 05:12:40 +0000 (13:12 +0800)]
vainfo: Add the support for the new VA profiles

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agotests: basic: add missing string representation for VP8 profiles.
Gwenole Beauchesne [Mon, 3 Mar 2014 09:15:23 +0000 (10:15 +0100)]
tests: basic: add missing string representation for VP8 profiles.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agova: drop VAEntrypointMax enumeration.
Gwenole Beauchesne [Mon, 3 Mar 2014 09:11:58 +0000 (10:11 +0100)]
va: drop VAEntrypointMax enumeration.

This is an oversight, and that was supposed to be removed earlier.
User applications cannot rely on this value to statically allocate
an array of possible VA entrypoints. The correct interface is to
use vaMaxNumEntrypoints() and dynamically allocate that array.

Rationale: VA entrypoints values are maintained sparsely, so this
can yield to a large number overall.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agova: include <stdint.h> header.
Gwenole Beauchesne [Mon, 3 Mar 2014 09:05:00 +0000 (10:05 +0100)]
va: include <stdint.h> header.

Always include <stdint.h> header by default as we are using standard
fixed-size integral types from now on.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agovp8 dec: add clear notation for qindex
Zhong Li [Mon, 20 Jan 2014 03:07:16 +0000 (11:07 +0800)]
vp8 dec: add clear notation for qindex

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agovp8 dec: refine va_dec_vp8.h
Zhao, Halley [Tue, 3 Dec 2013 05:43:56 +0000 (13:43 +0800)]
vp8 dec: refine va_dec_vp8.h

add clear notation for: key_frame/VABoolCoderContextVPX.count/num_of_partitions/partition_size[0]
remove mb_skip_coeff since it can be deduced from mb_no_coeff_skip if it is required

Signed-off-by: Zhao, Halley <halley.zhao@intel.com>
10 years agolibva: change the types of all fields in VABoolCoderContextVPX
Tianmi Chen [Mon, 1 Jul 2013 09:38:35 +0000 (17:38 +0800)]
libva: change the types of all fields in VABoolCoderContextVPX

BZ: 120268

Change the types of all fields in VABoolCoderContextVPX to
"unsigned char" to avoid potential bugs.

Change-Id: I483f115080cefe45ae49503ff5737c7dfff305a8
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
10 years agoChanges to VASliceParameterBufferVP8 to make it consistent with slice parameter buffe...
Jonathan Bian [Thu, 14 Mar 2013 23:36:38 +0000 (16:36 -0700)]
Changes to VASliceParameterBufferVP8 to make it consistent with slice parameter buffer structure for other formats.

10 years agoAdded VASliceParameterBufferVP8 to describe data partition related fields.
Jonathan Bian [Mon, 11 Mar 2013 05:34:51 +0000 (22:34 -0700)]
Added VASliceParameterBufferVP8 to describe data partition related fields.

10 years agoAdd VP8 decoding API
Jonathan Bian [Thu, 26 Apr 2012 17:21:49 +0000 (10:21 -0700)]
Add VP8 decoding API

Added new profile, buffer types and data structures for VP8 decoding

Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
[Fixed conflicts and remove unused profiles]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agodo not request any GLX_DEPTH_SIZE in create_tfp_surface
Rinat Ibragimov [Sun, 12 Jan 2014 15:45:17 +0000 (19:45 +0400)]
do not request any GLX_DEPTH_SIZE in create_tfp_surface

Window depth was confused with OpenGL depth buffer.

Signed-off-by: Rinat <ibragimovrinat@mail.ru>
10 years agoMPEG2ENC: Initialize the f_code based on supported level instead of hacked setting
Zhao Yakui [Fri, 5 Jul 2013 02:46:25 +0000 (10:46 +0800)]
MPEG2ENC: Initialize the f_code based on supported level instead of hacked setting

The f_code of MPEG2 picture parameter indicates the max search range of the
motion vector prediction. The small value will cause the unoptimized motion
vector prediction. So remove the hack setting.

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

10 years agova: add new ABGR/XBGR fourcc codes.
Victor Ying [Tue, 23 Jul 2013 06:25:00 +0000 (08:25 +0200)]
va: add new ABGR/XBGR fourcc codes.

Add VA_FOURCC_ABGR and its companion VA_FOURCC_XBGR definition. This
represents a packed RGB format with 32 bpp, i.e. 8-bit per component.
The components order in memory is A B G R.

Signed-off-by: Victor Ying <victor.ying@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agodrm: improve check for authentication.
Gwenole Beauchesne [Mon, 15 Jul 2013 08:45:16 +0000 (10:45 +0200)]
drm: improve check for authentication.

On Linux systems, the drmGetClient() function would return the thread ID
instead of the actual process ID.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agobuild: fix make dist.
Gwenole Beauchesne [Thu, 27 Jun 2013 09:12:54 +0000 (11:12 +0200)]
build: fix make dist.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agolibva: bump version for development.
Gwenole Beauchesne [Thu, 27 Jun 2013 09:12:00 +0000 (11:12 +0200)]
libva: bump version for development.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agolibva 1.2.1 libva-1.2.1 upstream/1.2.1
Xiang, Haihao [Thu, 27 Jun 2013 01:36:39 +0000 (09:36 +0800)]
libva 1.2.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agodummy_drv_video: add back VA_DRIVER_INIT_FUNC definition for __vaDriverInit_*()
Vincent Bernat [Thu, 13 Jun 2013 06:20:05 +0000 (08:20 +0200)]
dummy_drv_video: add back VA_DRIVER_INIT_FUNC definition for __vaDriverInit_*()

Since commit ca1798e77b6fa99dbb010f202a057f75415afd52, dummy driver
was defining VA_DRIVER_INIT_FUNC symbol instead of __vaDriverInit_0_33
and therefore cannot be used for testing anymore. We restore the
definition of this symbol in configure.ac.

Signed-off-by: Vincent Bernat <bernat@luffy.cx>
10 years agotests: rename mpeg2enc to mpeg2vaenc
Xiang, Haihao [Thu, 27 Jun 2013 01:02:08 +0000 (09:02 +0800)]
tests: rename mpeg2enc to mpeg2vaenc

This fixes namespace issue with mpeg2enc from the mjpegtools.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66221
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoNew version for development
Xiang, Haihao [Tue, 25 Jun 2013 07:20:10 +0000 (15:20 +0800)]
New version for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agolibva 1.2.0
Xiang, Haihao [Tue, 25 Jun 2013 07:17:39 +0000 (15:17 +0800)]
libva 1.2.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoNEWS: updates
Xiang, Haihao [Tue, 25 Jun 2013 07:02:11 +0000 (15:02 +0800)]
NEWS: updates

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoRemove the dummy driver dependency on X11
Zhao Yakui [Sun, 28 Apr 2013 01:03:44 +0000 (09:03 +0800)]
Remove the dummy driver dependency on X11

Otherwise when x11 is disabled, it can't be compiled correctly.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRemove the EGL dependency on X11
Zhao Yakui [Sun, 28 Apr 2013 01:03:43 +0000 (09:03 +0800)]
Remove the EGL dependency on X11

Otherwise when x11 is disabled, it can't be compiled correctly.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoh264encode: fix mmap out of memmory issue
Austin Yuan [Tue, 21 May 2013 08:20:17 +0000 (16:20 +0800)]
h264encode: fix mmap out of memmory issue

Change-Id: I9d7047d5ac66efefb31509f3ee52a9db28aada23
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: add more cmdline options
Austin Yuan [Wed, 15 May 2013 09:58:00 +0000 (17:58 +0800)]
h264encode: add more cmdline options

Change-Id: Ia0326c2649dcf6dfbce275539cb8f4221fa37501
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: fix ftell overflow issue when open large source YUV files
Austin Yuan [Tue, 14 May 2013 02:02:13 +0000 (10:02 +0800)]
h264encode: fix ftell overflow issue when open large source YUV files

Change-Id: I30190d4e28bd643f00808a15846e50e8fca28764
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: coding 1920x1080 with crop
Austin Yuan [Mon, 13 May 2013 09:10:15 +0000 (17:10 +0800)]
h264encode: coding 1920x1080 with crop

Change-Id: I4ba61943c9f2d246deb4bcb69a4781680f63b046
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: print correct number of RefPicList0/1
Austin Yuan [Fri, 10 May 2013 08:51:33 +0000 (16:51 +0800)]
h264encode: print correct number of RefPicList0/1

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: fix thread lockup issue
Austin Yuan [Thu, 9 May 2013 10:36:04 +0000 (18:36 +0800)]
h264encode: fix thread lockup issue

Change-Id: I6065525f76796603856f5cebf0468f4a59c4b5b5
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: fix thread lockup issue
Austin Yuan [Thu, 9 May 2013 10:15:49 +0000 (18:15 +0800)]
h264encode: fix thread lockup issue

Change-Id: I3e0f23b5301d8405297b4b88b27e9edccdab6063
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: fix idr_pic_id issue when encode multiple IDR frames
Austin Yuan [Thu, 9 May 2013 07:26:50 +0000 (15:26 +0800)]
h264encode: fix idr_pic_id issue when encode multiple IDR frames

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: reset IDR poc to 0
Elaine Wang [Fri, 10 May 2013 11:04:37 +0000 (19:04 +0800)]
h264encode: reset IDR poc to 0

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
10 years agoh264encode: dump reconstructed frame and calc PSNR
Austin Yuan [Wed, 8 May 2013 04:45:57 +0000 (12:45 +0800)]
h264encode: dump reconstructed frame and calc PSNR

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: use frame height not the height from VAImage which may be wrong
Austin Yuan [Sun, 28 Apr 2013 04:34:01 +0000 (12:34 +0800)]
h264encode: use frame height not the height from VAImage which may be wrong

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: correct negative POC after a new IDR
Austin Yuan [Sun, 28 Apr 2013 03:58:54 +0000 (11:58 +0800)]
h264encode: correct negative POC after a new IDR

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: fix encode corruption issue with multiple IDR (-idr_period XX)
Austin Yuan [Sat, 27 Apr 2013 08:48:13 +0000 (16:48 +0800)]
h264encode: fix encode corruption issue with multiple IDR (-idr_period XX)

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoh264encode: add some comments
Elaine Wang [Sat, 27 Apr 2013 13:43:06 +0000 (21:43 +0800)]
h264encode: add some comments

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
10 years agoh264encode: refine calculation logic of reference frame setting
Elaine Wang [Sat, 27 Apr 2013 10:08:23 +0000 (18:08 +0800)]
h264encode: refine calculation logic of reference frame setting

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
10 years agoh264encode: fix wrong print information
Elaine Wang [Thu, 18 Apr 2013 17:25:50 +0000 (01:25 +0800)]
h264encode: fix wrong print information

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
10 years agoAVCENC: Pass the H264 RefPicList0/1 by using slice_param instead of hacked DPB reference
Zhao Yakui [Thu, 9 May 2013 06:21:32 +0000 (14:21 +0800)]
AVCENC: Pass the H264 RefPicList0/1 by using slice_param instead of hacked DPB reference

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

10 years agoFix possible memory leak
Xiang, Haihao [Fri, 15 Mar 2013 08:22:57 +0000 (16:22 +0800)]
Fix possible memory leak

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

10 years agova.c: need to check the symbol before calling it
Austin Yuan [Thu, 2 Aug 2012 10:16:35 +0000 (18:16 +0800)]
va.c: need to check the symbol before calling it

This is to fix Klockwork critical issue

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 40e5e45edf97049137bca014575607b52d3bca78)

10 years agova: fix vaErrorStr() to support new error codes.
Gwenole Beauchesne [Wed, 1 Feb 2012 23:13:48 +0000 (00:13 +0100)]
va: fix vaErrorStr() to support new error codes.
(cherry picked from commit 7b5c35273dc0e8e0e86cf40cf2a398119a766397)

10 years agova_x11: fix klockscan issue (details is bellow)
Austin Yuan [Tue, 5 Feb 2013 06:00:15 +0000 (14:00 +0800)]
va_x11: fix klockscan issue (details is bellow)

File:        va_x11.c
Function:    va_DisplayContextGetDriverName -> va_DRI2GetDriverName -> dri2_util.c:isDRI2Connected
Line:        154 -> 84 -> dri2_util.c:184
Code:
TRACEBACK
va_x11.c:151: driver_name is NULL
va_x11.c:154: 'driver_name' is passed to function 'va_DRI2GetDriverName'.
dri2_util.c:84: 'driver_name' is passed to function 'isDRI2Connected'.
dri2_util.c:184: 'driver_name' is explicitly dereferenced.

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
(cherry picked from commit c87699f32c6c79905a2fd8675cd19f22e1f4b024)

10 years agovatrace: print target_percentage
Austin Yuan [Mon, 20 May 2013 09:56:51 +0000 (17:56 +0800)]
vatrace: print target_percentage

Change-Id: I220b2fa7ad6907ab0ebda3671baeeab7fa36cc00
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 82e7dc8280da22c88a28f0a4d429f28fd99f9ced)

10 years agovatrace: trace coded buffer create/destroy
Austin Yuan [Thu, 16 May 2013 08:41:03 +0000 (16:41 +0800)]
vatrace: trace coded buffer create/destroy

Change-Id: If0388cd5e2e141184d88ff5de5612d15e51e3d20
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 880c916092c6d68096c95e49405714d8a21f9322)

10 years agovatrace: dump unknonw private misc parameters
Austin Yuan [Fri, 10 May 2013 10:27:58 +0000 (18:27 +0800)]
vatrace: dump unknonw private misc parameters

Change-Id: I33bbed3a1d3f297297687197f623d6c08ee8eba9
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit df5bfb6c6f248c0bcf6f2f9a74e9ffba4b0acf15)

10 years agovatrace: remove the delimiter of every elements dump
Austin Yuan [Fri, 10 May 2013 05:14:21 +0000 (13:14 +0800)]
vatrace: remove the delimiter of every elements dump

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 132f22ae9b42b4657361c87b5c7d5b14a26a52a9)

10 years agovatrace: refine the format of buf data dump
Elaine Wang [Fri, 10 May 2013 10:58:47 +0000 (18:58 +0800)]
vatrace: refine the format of buf data dump

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
(cherry picked from commit 2292299fe00036eb6055a84846f63f36cbae27d9)

10 years agovatrace: refine VAEncPackedHeaderParameterBufferType format
Austin Yuan [Wed, 8 May 2013 06:52:38 +0000 (14:52 +0800)]
vatrace: refine VAEncPackedHeaderParameterBufferType format

Change-Id: I1794a9c09a88b61d7abce970d7cb9a8f101162c6
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 4853e4a3a6cc5218e032a19d729096862db82bc6)

10 years agovatrace: print VAEncPackedHeaderParameterBufferType
Austin Yuan [Wed, 8 May 2013 05:21:38 +0000 (13:21 +0800)]
vatrace: print VAEncPackedHeaderParameterBufferType

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 82ffa4b5bfb6cf59e90eedadbdfe3efdaced35e0)

10 years agolibva: Add VABuffer dumping for JPEG parameters
Cheng Yao [Wed, 17 Apr 2013 06:58:11 +0000 (14:58 +0800)]
libva: Add VABuffer dumping for JPEG parameters

BZ: 98966

Dump VABuffer of JPEG parameters in libva

Change-Id: I87450d92db402a4730e0c0433215c857bc5b494d
Signed-off-by: Cheng Yao <yao.cheng@intel.com>
(cherry picked from commit 40ffef8d1fcbbc709472dc1342d7e3e983ae5d96)

10 years agovatrace: only print info of valid reference frames
Austin Yuan [Sun, 28 Apr 2013 03:57:59 +0000 (11:57 +0800)]
vatrace: only print info of valid reference frames

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 67c489f323188df1370f8ba2d4063bc86153cce7)

10 years agovatrace: dump flags of VAPictureH264
Elaine Wang [Wed, 24 Apr 2013 10:57:09 +0000 (18:57 +0800)]
vatrace: dump flags of VAPictureH264

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
(cherry picked from commit e1d86f000749d5fdbd6e36b55260d3fae096e457)

10 years agoLIBVA_DRIVER_NAME still needs va_getDriverName to open DRM device
Fei Jiang [Wed, 27 Mar 2013 20:29:36 +0000 (04:29 +0800)]
LIBVA_DRIVER_NAME still needs va_getDriverName to open DRM device

va_getDriverName is bypassed when LIBVA_DRIVER_NAME is set, but driver
needs DRM device fd which is only opened in va_getDriverName

Change-Id: I4fe11edf9d8c328806255d4c93313cf99655a91d
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
(cherry picked from commit 04706eb13ae410b53b6b38150413d544b7fdb524)

10 years agova_trace: refine the log format
Elaine Wang [Wed, 17 Apr 2013 16:02:10 +0000 (00:02 +0800)]
va_trace: refine the log format

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
(cherry picked from commit 15a0fca64456d8c7de1f7aca2cb747c4929690cd)

10 years agovatrace: print function name for vaMapBuffer trace with coded buffer
Austin Yuan [Sun, 7 Apr 2013 10:09:36 +0000 (18:09 +0800)]
vatrace: print function name for vaMapBuffer trace with coded buffer

also fall into default va_TraceVABuffers if the buffer type falls into
"default"

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit acbf7d0c4830763e7c3be0e71c9da972f1aea7a5)

10 years agovatrace: buffer_type_to_string: add missing VABufferType
Adrian Marius Negreanu [Mon, 11 Feb 2013 08:21:33 +0000 (10:21 +0200)]
vatrace: buffer_type_to_string: add missing VABufferType

sync with VABufferType in va/va.h.

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
(cherry picked from commit d5160173f9dd5a37c793518d1d483b09d278d90c)
[Remove unsupported types on master]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agova_parseConfig: still need to check env_value
Austin Yuan [Thu, 27 Dec 2012 10:00:30 +0000 (18:00 +0800)]
va_parseConfig: still need to check env_value

env_value may be NULL which means the caller doens't
care the value of the environment variable, just check
if it is set.

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 2e11d2273b2974a7d1959cbcaf8db5b8e9aedd9e)

10 years agovatrace: fix build issue
Austin Yuan [Wed, 5 Dec 2012 05:41:36 +0000 (13:41 +0800)]
vatrace: fix build issue

Change-Id: I1727528df6aaf48209774bada5cf136cfa1e4ee3
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 1e0421f5ce01790e700940310aafb05e4c18d8f0)

10 years agova_trace: dump basic_unit_size/rc_flags in RateControl data struct
Austin Yuan [Wed, 5 Dec 2012 05:24:22 +0000 (13:24 +0800)]
va_trace: dump basic_unit_size/rc_flags in RateControl data struct

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 4a78cb4e4a2d0e5c9231c7f532d2a733cf3bfce3)

10 years agovatrace: Fix encoded coded buffer dump function
Elaine Wang [Fri, 9 Nov 2012 07:35:23 +0000 (15:35 +0800)]
vatrace: Fix encoded coded buffer dump function

libva trace can't dump coded buffer. It's caused by the wrong
decison in vaTraceEndPicture function which only dump coded buffer
when surface dumping is enabled.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: I8b0ec01e59faff3bfd5345d95cbf0e781f6f3706
(cherry picked from commit 202385430f29b3d3d356d86888a0f3979986b4e7)

10 years agovatrace: fix vatrace crash during video recording
Elaine Wang [Tue, 23 Oct 2012 08:04:59 +0000 (16:04 +0800)]
vatrace: fix vatrace crash during video recording

Video recording crash when va trace is enabled. It's caused by
using wrong buffer type to trace slice buffer. This patch distinguish buffer
type VAEncSliceParameterBuffer from VAEncSliceParameterBufferH264 by
the buffer size.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: Ibc5c6a17b155e305151a25580b4e613702665ad1
(cherry picked from commit b5b1933f60dfec8cf2cff19082362accbe6fce1d)

10 years agova_trace: allow surface trace to dump part of surface content
Austin Yuan [Wed, 8 Aug 2012 03:34:00 +0000 (11:34 +0800)]
va_trace: allow surface trace to dump part of surface content

To debug/isolate video record quality issue (blocky/corruption, etc),
we always need to dump the YUV image from camera. LibVA has such
functionality, but due to storage bandwidth issue (~10M Byte/second),
it is hard to write 1080P 30fps YUV data to disk (~88M Byte/second).
Now refine the functionality to only dump part of the image, and
won't need to modify the code in the default build.

The method is:
edit /etc/libva.conf to include bellow (all export them):
LIBVA_TRACE_SURFACE=/data/enc-XXX.yuv
LIBVA_TRACE_GEOMETRY=320x240+20+20

It will only save 320x240 from (20,20) of the source surface to file
/data/enc-XXX.yuv.

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 5190a7465756a41808a562c8eccec521dbf77d8c)

10 years agova_trace_surface: dumpe surface content after vaEndPicture call
Austin Yuan [Thu, 2 Aug 2012 10:32:20 +0000 (18:32 +0800)]
va_trace_surface: dumpe surface content after vaEndPicture call

vaEndPicture will kick HW decode/encode, and at this time use CPU
to dump surface content can keep GPU/CPU in parallel.

Also for encode trace, don't need to wait current frame completions
but for decode, we must wait decode till it is completed

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 0af365de4c03c12fc20183093a944f7513a1c7be)

10 years agoFix va_fool.c klocwork issue
Elaine Wang [Thu, 31 Jan 2013 14:52:13 +0000 (22:52 +0800)]
Fix va_fool.c klocwork issue

BZ: 83882

Fix klocwork issue that complaine array 'fool_context[idx].fool_buf'
of size 43 may use index value(s) 0..255

Change-Id: I196a36c0067e2b7e390567a203ef1520af5b873f
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
10 years agoklockwork: Fix libva klocwork scaning issues
Elaine Wang [Thu, 27 Dec 2012 07:18:15 +0000 (15:18 +0800)]
klockwork: Fix libva klocwork scaning issues

Fix NULL pointer dereference risk issues and uninitialized variables

Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: I839a9def7b08c41c1f075e4cd1cc06e8bb0c8c9e

10 years agotests: cope with new vaQuerySurfaceAttributes() API.
Gwenole Beauchesne [Mon, 27 May 2013 17:27:36 +0000 (19:27 +0200)]
tests: cope with new vaQuerySurfaceAttributes() API.

Also factor the code to check whether a specific image format or
surface attribute exists. Cache the list of supported image formats
and surface attributes.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agotest: add color conversion test option in putsurface
Zhao Halley [Wed, 5 Sep 2012 09:23:22 +0000 (17:23 +0800)]
test: add color conversion test option in putsurface

- command line:  ./putsurface --fmt1 format1 --fmt2 format2
              or ./putsurface -1 format1 -2 format2
- example:       ./putsurface -1 NV12 -2 YV12
- implementation:
  - vaSurface is created with fmt1
  - get image (with fmt2) from vaSurface,
    it leads to color conversion
  - put the above image to a temp surface
    color conversion may happen
  - render the above temp surface instead of original one

10 years agotests: cope with new vaCreateSurfaces() API.
Gwenole Beauchesne [Sun, 18 Dec 2011 22:51:46 +0000 (23:51 +0100)]
tests: cope with new vaCreateSurfaces() API.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoAdd default implementation for vaQuerySurfaceAttributes().
Gwenole Beauchesne [Mon, 27 May 2013 18:39:29 +0000 (20:39 +0200)]
Add default implementation for vaQuerySurfaceAttributes().

Add an initial implementation for vaQuerySurfaceAttributes() in terms
of vaGetSurfaceAttributes(). This is an inefficient approach because
it dynamically allocates the whole set of surface attributes we guessed
are available.

This code is to be removed once the VA drivers are updated.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agoAPI: add vaQuerySurfaceAttributes().
Gwenole Beauchesne [Tue, 2 Apr 2013 15:47:27 +0000 (17:47 +0200)]
API: add vaQuerySurfaceAttributes().

vaQuerySurfaceAttributes() is the recommended way to query the driver for
all surface attributes that are supported by the underlying hardware. This
is more useful than guessing the attribute values and testing them through
vaGetSurfaceAttributes().

The older vaGetSurfaceAttributes() function is hereby removed. However, the
relevant VA driver hook is kept for now, and will be removed/replaced for a
future update.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agoAdded new VA_RT_FORMAT_RGBP and VA_FOURCC_411R
Jonathan Bian [Mon, 11 Mar 2013 05:46:32 +0000 (22:46 -0700)]
Added new VA_RT_FORMAT_RGBP and VA_FOURCC_411R

10 years agoSurfaceAttribMemoryType: add ION memory type for Android
Austin Yuan [Fri, 1 Mar 2013 02:45:40 +0000 (10:45 +0800)]
SurfaceAttribMemoryType: add ION memory type for Android

ION is the new Android memory manager for cross-components buffer
sharing. Adding this memory type for it.

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoASurfaceAttribExternalBuffers flags: add more memory attribute flags
Austin Yuan [Fri, 1 Mar 2013 00:42:22 +0000 (08:42 +0800)]
ASurfaceAttribExternalBuffers flags: add more memory attribute flags

The external user pointer buffers may be allocated as cacheable or
non-cacheable, with the addtitional cache attribute flags, it can help
driver implementation to set correct cache attribute into device
memory controller (e.g. MMU)

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoChanged values for VASurfaceAttribMemoryType from fourcc to bit fields.
Jonathan Bian [Mon, 17 Sep 2012 04:26:00 +0000 (21:26 -0700)]
Changed values for VASurfaceAttribMemoryType from fourcc to bit fields.

10 years agoAdded new RT formats and fourcc codes for pixel formats.
Jonathan Bian [Thu, 6 Sep 2012 23:50:27 +0000 (16:50 -0700)]
Added new RT formats and fourcc codes for pixel formats.

10 years agoAdded new surface attributes to enable VA surface creation from external buffers.
Jonathan Bian [Thu, 6 Sep 2012 23:07:31 +0000 (16:07 -0700)]
Added new surface attributes to enable VA surface creation from external buffers.

10 years agoAdd RGB RT format definition for video process
Li,Xiaowei [Mon, 27 Aug 2012 00:47:33 +0000 (08:47 +0800)]
Add RGB RT format definition for video process

RGB format surface is required for color
space conversion from YUV to RGB.

signed-off-by: Li,Xiaowei <xiaowei.a.li@intel.com>

10 years agotpi: clean the old interface, and use new one
Austin Yuan [Wed, 25 Apr 2012 06:00:03 +0000 (23:00 -0700)]
tpi: clean the old interface, and use new one

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoAdd new fourcc codes
Jonathan Bian [Tue, 24 Apr 2012 23:51:55 +0000 (16:51 -0700)]
Add new fourcc codes

Added fourcc codes for YV24 and YV32 (4:4:4 planar formats)

Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
10 years agova_TraceCreateSurface->va_TraceCreateSurfaces: correct name change
Austin Yuan [Thu, 1 Mar 2012 06:21:12 +0000 (22:21 -0800)]
va_TraceCreateSurface->va_TraceCreateSurfaces: correct name change

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
10 years agoAPI: add compat glue for older vaCreateSurfaces().
Gwenole Beauchesne [Mon, 2 Jan 2012 16:28:45 +0000 (17:28 +0100)]
API: add compat glue for older vaCreateSurfaces().

10 years agoAPI: add surface attributes.
Gwenole Beauchesne [Sun, 18 Dec 2011 22:50:25 +0000 (23:50 +0100)]
API: add surface attributes.