platform/upstream/libva.git
9 years agoadd VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM_BO in va_drmcommon.h
Zhao, Halley [Sun, 16 Feb 2014 19:35:30 +0000 (03:35 +0800)]
add VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM_BO in va_drmcommon.h

with small fixes

9 years agotest: update putsurface for wayland only build
Zhao, Halley [Sun, 16 Feb 2014 19:21:46 +0000 (03:21 +0800)]
test: update putsurface for wayland only build

History:

- adapted to 1.3.0

Forwarded: no
Change-Id: I35ab443f040bfca31f4c6ccdf0fe1c59003bd84d
Author:    Zhao, Halley <halley.zhao@intel.com>
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
9 years agopackaging: Initial packaging on 1.2.1 for Tizen
Zhao, Halley [Sun, 16 Feb 2014 19:06:16 +0000 (03:06 +0800)]
packaging: Initial packaging on 1.2.1 for Tizen

Change-Id: I7a6e8abf7f22fa69aae047940e9b5ed46ac64626

10 years agolibva 1.4.1 libva-1.4.1
Xiang, Haihao [Fri, 24 Oct 2014 06:58:57 +0000 (14:58 +0800)]
libva 1.4.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agodoc: fix scan order specification for quantization tables. 1.4.1.pre1
Gwenole Beauchesne [Fri, 26 Sep 2014 09:53:07 +0000 (11:53 +0200)]
doc: fix scan order specification for quantization tables.

Fix the VA-API specification to define all quantization tables, resp.
matrices, to be supplied in zig-zag scan order, except for the H.264
codec where scaling lists shall be provided in raster scan order.

This clarifies the existing usage inherited from the primary VA driver
implementation (Intel Poulsbo), and subsequently adopted by the major
multimedia frameworks.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit 835cf1ceef84cd48edddfb07bb1d2348c7b35940)

10 years agodoc: add Encoding, VPP and some of Core APIs.
Gwenole Beauchesne [Fri, 4 Nov 2011 16:33:48 +0000 (17:33 +0100)]
doc: add Encoding, VPP and some of Core APIs.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit 1846d6f73b3e7f46737d794d9d0b09d25302b64a)

10 years agodoc: improve Doxyfile configuration.
Gwenole Beauchesne [Thu, 24 Nov 2011 14:16:37 +0000 (14:16 +0000)]
doc: improve Doxyfile configuration.

(cherry picked from commit 1f72a26774316af0e5b277271261213e02972234)

10 years agodoc: don't add timestamps in generated documentation.
Gwenole Beauchesne [Fri, 18 Nov 2011 12:17:50 +0000 (12:17 +0000)]
doc: don't add timestamps in generated documentation.

(cherry picked from commit 3a5a1c46404354f3a8911149f65c568a3166395c)

10 years agotests: try a render-node device first for VA/DRM displays.
Gwenole Beauchesne [Wed, 24 Sep 2014 08:31:21 +0000 (10:31 +0200)]
tests: try a render-node device first for VA/DRM displays.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
(cherry picked from commit e5d6c49c54ed7f6e1dacf9bafaae8fa0ba88db5d)

10 years agodrm: add support for render nodes.
Andrey Larionov [Tue, 23 Sep 2014 15:42:39 +0000 (17:42 +0200)]
drm: add support for render nodes.

Allow vaGetDisplayDRM() to accept DRM Render-Nodes file descriptors,
thus skipping authentication burdens in that case. This also allows
remote users, connected through ssh for instance, to enjoy hardware
acceleration even if there is a local display opened (user logged in).

Signed-off-by: Andrey Larionov <andrey.larionov@intel.com>
[checked if fd is a render-node, fixed VA_DISPLAY_DRM_RENDERNODES]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Tested-by: Rafal A Sapala <rafal.a.sapala@intel.com>
(cherry picked from commit 936f548d999afc44918f869f8c54fc82c5400ad9)

10 years agoBump libva to libva 1.4.1.pre1
Xiang, Haihao [Tue, 30 Sep 2014 02:32:09 +0000 (10:32 +0800)]
Bump libva to libva 1.4.1.pre1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agolibva 1.4.0 libva-1.4.0
Xiang, Haihao [Tue, 30 Sep 2014 01:42:06 +0000 (09:42 +0800)]
libva 1.4.0

Don't support DRM Render-Nodes in this version of libva

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoNEWS: updates.
Gwenole Beauchesne [Fri, 26 Sep 2014 11:59:23 +0000 (13:59 +0200)]
NEWS: updates.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agoBump VA API to 0.36 1.4.0.pre1
Xiang, Haihao [Mon, 8 Sep 2014 17:37:28 +0000 (01:37 +0800)]
Bump VA API to 0.36

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoTest/encode/avcenc: Follow the H264 spec to fix wrong SEI parameter setting for CBR HRD
Zhao, Yakui [Wed, 14 May 2014 01:45:06 +0000 (09:45 +0800)]
Test/encode/avcenc: Follow the H264 spec to fix wrong SEI parameter setting for CBR HRD

V1->V2: Follow Haihao's comments to add some comments and remove some
magic number.

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

10 years agotest/encode/avcenc: Follow the idea in h264encode to generalize avcenc test case
Zhao Yakui [Wed, 23 Apr 2014 07:41:25 +0000 (15:41 +0800)]
test/encode/avcenc: Follow the idea in h264encode to generalize avcenc test case

The following is generalized:
a. the switch between encoding order and displaying order.
b. Reference list0/1
c. It can insert more IDR frames intead of one IDR frame.

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

Conflicts:
test/encode/avcenc.c

10 years agotest/encode/avcenc: update the SPS parameter for encoding
Zhao Yakui [Wed, 23 Apr 2014 07:41:24 +0000 (15:41 +0800)]
test/encode/avcenc: update the SPS parameter for encoding

It will simplify the calculation of POC and frame_num.

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

10 years agotest/avcenc: Fix the incorrect parameter setting for SPS under CBR mode
Zhao Yakui [Wed, 16 Apr 2014 04:17:24 +0000 (12:17 +0800)]
test/avcenc: Fix the incorrect parameter setting for SPS under CBR mode

Currently the parameter setting is incorrect for CBR, which causes that
it will complain the underflow/overflow during encoding.

V1->V2: Follow Haihao's comment to update some incorrect usage about the
frame_bit_rate.

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

10 years agotest/avcenc: Remove the dynamic shrink of coded buffer
Zhao Yakui [Wed, 16 Apr 2014 04:17:23 +0000 (12:17 +0800)]
test/avcenc: Remove the dynamic shrink of coded buffer

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

10 years agovatrace: fix segfault of VASurfaceAttribExternalBufferDescriptor dumpping
Austin Yuan [Tue, 25 Mar 2014 23:44:03 +0000 (07:44 +0800)]
vatrace: fix segfault of VASurfaceAttribExternalBufferDescriptor dumpping

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

10 years agovafool: fix the vaMapBuffer for the buffer from vaDeriveImage
Austin Yuan [Thu, 27 Feb 2014 07:36:17 +0000 (15:36 +0800)]
vafool: fix the vaMapBuffer for the buffer from vaDeriveImage

It is not desired to run into FOOL path for the vaMapBuffer
from vaDeriveImage

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

10 years agovatrace: fix a overwrite
Austin Yuan [Wed, 26 Feb 2014 08:47:09 +0000 (16:47 +0800)]
vatrace: fix a overwrite

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

10 years agovafool: simplify VAFOOL
Austin Yuan [Wed, 26 Feb 2014 08:40:41 +0000 (16:40 +0800)]
vafool: simplify VAFOOL

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

10 years agovatrace: make LIBVA_TRACE_SURFACE work even without LIBVA_TRACE
Austin Yuan [Thu, 17 Oct 2013 02:57:23 +0000 (10:57 +0800)]
vatrace: make LIBVA_TRACE_SURFACE work even without LIBVA_TRACE

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

10 years agovatrace: make standalone LIBVA_TRACE_CODEDBUF work w/o LIBVA_TRACE
Austin Yuan [Tue, 25 Feb 2014 00:50:50 +0000 (08:50 +0800)]
vatrace: make standalone LIBVA_TRACE_CODEDBUF work w/o LIBVA_TRACE

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

10 years agoEnable 64bit build for Android, compatible with 32bit.
Qiming Shi [Mon, 18 Aug 2014 04:38:14 +0000 (12:38 +0800)]
Enable 64bit build for Android, compatible with 32bit.

Refined the Android.mk to compatible with both 32 and 64 bit android
build.

Signed-off-by: Tinghong Li <tinghong.li@intel.com>
Signed-off-by: Qiming Shi <qiming.shi@intel.com>
(cherry picked from commit 03de01dce6f2b88b9c5ee54705aeebe17c6c5919)

10 years agoAPI: add support for buffer exports.
Gwenole Beauchesne [Tue, 3 Dec 2013 23:00:57 +0000 (00:00 +0100)]
API: add support for buffer exports.

Add interfaces for low-level buffer exports to suport interop with
external APIs like EGL or OpenCL (OCL). Theory of operations:

- vaAcquireBufferHandle(): locks buffer for external API usage. This
  is a synchronization point. Upon successful return, useful buffer
  details are returned in a somewhat implementation-specific way to
  support interop with external APIs.

- vaReleaseBufferHandle(): unlocks buffer after usage from external
  API, and deallocates any resources that were needed.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit 544d31d2fc096a838c21f4684cec05746cfdd7b6)

Conflicts:
va/va.h

10 years agoUpdate comment for quality_level
Xiang, Haihao [Wed, 30 Jul 2014 02:13:03 +0000 (10:13 +0800)]
Update comment for quality_level

Allow user set VAEncMiscParameterBufferQualityLevel::quality_level
to 0 to use default quality level

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

Conflicts:
va/va.h

10 years agoAdded VAConfigEncQualityRange attribute and VAEncMiscParameterBufferQualityLevel...
Jonathan Bian [Fri, 14 Jun 2013 05:04:30 +0000 (22:04 -0700)]
Added VAConfigEncQualityRange attribute and VAEncMiscParameterBufferQualityLevel to support encoder quality settings.

(cherry picked from commit 24a14f9d13e6fe0c25d4094c4884aa4076ed05bc)

Conflicts:
va/va.h

10 years agoAdded OTC hybrid UMD driver to the list of supported drivers
Sameer Kibey [Wed, 27 Aug 2014 16:45:49 +0000 (00:45 +0800)]
Added OTC hybrid UMD driver to the list of supported drivers

This will be used for hybrid codecs like VP8 h-encode. No change
to existing KMD interface.

Signed-off-by: Sameer Kibey <sameer.kibey@intel.com>
(cherry picked from commit 98669760e62f50ca3e38e99835692aee5f89a4bf)

10 years agoavcenc: only support chroma_format_idc with 1
Xiang, Haihao [Mon, 4 Aug 2014 02:41:59 +0000 (10:41 +0800)]
avcenc: only support chroma_format_idc with 1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoh264encode: check driver supports the RateControl control mode or not
Xiang, Haihao [Mon, 4 Aug 2014 02:00:13 +0000 (10:00 +0800)]
h264encode: check driver supports the RateControl control mode or not

https://bugs.freedesktop.org/show_bug.cgi?id=76720

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoh264encode: Make it runnable with the latest libva-intel-driver (1.3.2)
Xiang, Haihao [Thu, 31 Jul 2014 07:20:05 +0000 (15:20 +0800)]
h264encode: Make it runnable with the latest libva-intel-driver (1.3.2)

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoAdd vaSurfaceAttribUsageHint to give the driver a hint of intended usage to optimize...
pylee [Wed, 30 Oct 2013 15:41:33 +0000 (08:41 -0700)]
Add vaSurfaceAttribUsageHint to give the driver a hint of intended usage to optimize allocation (e.g. tiling).

(cherry picked from commit 6cdc2e54d40afeb1550b920a6a6221bafeec95ec)

10 years agoAdd frame_type to VP8 encoder
Austin Yuan [Sat, 7 Sep 2013 10:22:04 +0000 (18:22 +0800)]
Add frame_type to VP8 encoder

From penne.y.lee at intel.com

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

10 years agova_enc_vp8: update the vp8 interface again
Austin Yuan [Fri, 2 Aug 2013 03:28:33 +0000 (11:28 +0800)]
va_enc_vp8: update the vp8 interface again

previous update missed some changes

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

10 years agoRemoved fields in VP8 structures that duplicate VAEncMiscParameter structures. Added...
Jonathan Bian [Thu, 18 Jul 2013 20:13:38 +0000 (13:13 -0700)]
Removed fields in VP8 structures that duplicate VAEncMiscParameter structures. Added reference frames to support non auto reference frame implementation. Changed VAQMatrixBufferVP8 to use quantization index deltas.

(cherry picked from commit fbd3de9b22491689c6c3e5f1c305d7af76444e45)

10 years agoAdded support for VP8 encoding.
Jonathan Bian [Wed, 10 Apr 2013 23:26:37 +0000 (16:26 -0700)]
Added support for VP8 encoding.

(cherry picked from commit d46a07340a641770487e7624bebc49f3258ea2ec)

Conflicts:
va/Android.mk

10 years agova: release VADisplayContext at the end of vaTerminate()
Xiang, Haihao [Thu, 18 Jul 2013 05:13:31 +0000 (13:13 +0800)]
va: release VADisplayContext at the end of vaTerminate()

Otherwise it will result in invalid reading in va_TraceEnd()

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit d4988142a3f2256e38c5c5cdcdfc1b4f5f3c1ea9)
Tested-by: Daniel Charles <daniel.charles@intel.com> on ChromiumOS
10 years agoBump VA-API to 0.35.2.
Gwenole Beauchesne [Tue, 3 Jun 2014 14:57:13 +0000 (16:57 +0200)]
Bump VA-API to 0.35.2.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agoMerge H.264 MVC profiles from staging branch.
Gwenole Beauchesne [Tue, 3 Jun 2014 14:50:58 +0000 (16:50 +0200)]
Merge H.264 MVC profiles from staging branch.

Cherry-pick'ed from:
64f0223: vainfo: add the support for the new VA profiles
b6a6e24: reorder VAProfile{H264MultiviewHigh,StereoHighVP8Version0_3}
7a5a81b: test/basic: update to new API

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agobva: bump version to 1.3.2.pre1 for development upstream/1.3.1+1+g0337703
Xiang, Haihao [Fri, 9 May 2014 04:53:26 +0000 (12:53 +0800)]
bva: bump version to 1.3.2.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agolibva 1.3.1 libva-1.3.1
Xiang, Haihao [Fri, 9 May 2014 04:38:02 +0000 (12:38 +0800)]
libva 1.3.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoUpdate NEWS
Xiang, Haihao [Mon, 5 May 2014 04:17:46 +0000 (12:17 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoBump VA-API to 0.35.1
Xiang, Haihao [Mon, 5 May 2014 04:07:33 +0000 (12:07 +0800)]
Bump VA-API to 0.35.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFix VA_ENC_PACKED_HEADER_RAW_DATA value.
Gwenole Beauchesne [Fri, 25 Apr 2014 09:20:32 +0000 (11:20 +0200)]
Fix VA_ENC_PACKED_HEADER_RAW_DATA value.

Attribute values for VAConfigAttribEncPackedHeaders config shall
represent a valid maskable set of bits. So, make sure "raw" packed
header mask is 0x10, not 0x0c.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agoFix the broken install upstream/1.3.0+5+g254f05c
Xiang, Haihao [Wed, 6 Feb 2013 04:35:57 +0000 (12:35 +0800)]
Fix the broken install

install -d /usr/share/doc/libva/html
install -m 0644 html-out/* /usr/share/doc/libva/html
install: omitting directory `html-out/search'
make[2]: *** [install-html-local] Error 1
make[2]: Leaving directory `/home/xhh/graphics/ex/vaapi/libva/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/xhh/graphics/ex/vaapi/libva/doc'
make: *** [install-recursive] Error 1

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

10 years agoAdded STE filter to the VPP pipeline.
Jonathan Bian [Mon, 8 Apr 2013 04:00:13 +0000 (21:00 -0700)]
Added STE filter to the VPP pipeline.

10 years agoAdd a workaround for a bug in xorg-server/glx
Rinat Ibragimov [Tue, 15 Apr 2014 03:01:43 +0000 (11:01 +0800)]
Add a workaround for a bug in xorg-server/glx

See details at https://bugs.freedesktop.org/show_bug.cgi?id=76755

Signed-off-by: Rinat Ibragimov <ibragimovrinat@mail.ru>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoDoxygen tags in libva.
Sameer Kibey [Mon, 24 Mar 2014 22:57:51 +0000 (15:57 -0700)]
Doxygen tags in libva.

Updated the doxygen tags in libva for generating
doxygen based documentation.

Signed-off-by: Sameer Kibey <sameer.kibey@intel.com>
10 years agolibva: bump version for development
Xiang, Haihao [Tue, 25 Mar 2014 00:53:14 +0000 (08:53 +0800)]
libva: bump version for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agolibva 1.3.0 sandbox/pcoval/upstream libva-1.3.0
Xiang, Haihao [Mon, 24 Mar 2014 08:10:07 +0000 (16:10 +0800)]
libva 1.3.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agova: keep compatibility with the backend driver built against 0.34.x
Xiang, Haihao [Tue, 18 Mar 2014 03:04:47 +0000 (11:04 +0800)]
va: keep compatibility with the backend driver built against 0.34.x

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agova: Bump VA-API to 0.35 and libva to 1.3.0.pre1
Xiang, Haihao [Mon, 17 Mar 2014 04:26:04 +0000 (12:26 +0800)]
va: Bump VA-API to 0.35 and libva to 1.3.0.pre1

Update NEWS as well

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agovatrace: fix a missing field of va_TraceMsg
Austin Yuan [Tue, 25 Feb 2014 01:01:42 +0000 (09:01 +0800)]
vatrace: fix a missing field of va_TraceMsg

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

10 years agovatrace: simplify coded buffer trace
Austin Yuan [Fri, 21 Feb 2014 05:57:30 +0000 (13:57 +0800)]
vatrace: simplify coded buffer trace

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

Conflicts:

va/va_trace.c

10 years agovatrace: Remove VA_TRACE_LOGSIZE because it is useless
Austin Yuan [Fri, 21 Feb 2014 05:22:36 +0000 (13:22 +0800)]
vatrace: Remove VA_TRACE_LOGSIZE because it is useless

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

Conflicts:

va/va_trace.c

10 years agovatrace: print VASurfaceAttribExternalBufferDescriptor
Austin Yuan [Tue, 18 Feb 2014 02:39:00 +0000 (10:39 +0800)]
vatrace: print VASurfaceAttribExternalBufferDescriptor

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

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>
11 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)

11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>