profile/ivi/libva.git
11 years agospec update for wayland 2.0-wayland 2.0alpha-wayland-backup accepted/2.0-wayland/20130306.231340 accepted/2.0/20130306.231319 accepted/2.0alpha-wayland/20121130.182408 submit/2.0-wayland/20130306.234138 submit/2.0/20130306.234115 submit/2.0alpha-wayland/20121130.015433
Zhao Halley [Fri, 30 Nov 2012 01:39:19 +0000 (09:39 +0800)]
spec update for wayland

11 years agoinit libva from upstream staging branch, clean spec file 2.0alpha accepted/2.0/20130307.024053 accepted/2.0alpha/20121130.182353 submit/2.0/20130221.233146 submit/2.0/20130223.005714 submit/2.0/20130306.234024 submit/2.0/20130307.030911 submit/2.0alpha/20121130.011532
Zhao Halley [Fri, 10 Aug 2012 07:38:35 +0000 (15:38 +0800)]
init libva from upstream staging branch, clean spec file

11 years agowayland: port to 1.0 protocol.
Rob Bradford [Fri, 2 Nov 2012 10:57:47 +0000 (10:57 +0000)]
wayland: port to 1.0 protocol.

With the change in protocol the hash of globals maintained by the client was
dropped. Instead we must setup a listener on the registry and get the globals
in a stream from that.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agowayland: add initial support for EMGD driver.
Gwenole Beauchesne [Fri, 13 Jul 2012 05:27:11 +0000 (07:27 +0200)]
wayland: add initial support for EMGD driver.

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agowayland: merge Wayland 0.95 support from master.
Gwenole Beauchesne [Thu, 15 Nov 2012 12:53:47 +0000 (13:53 +0100)]
wayland: merge Wayland 0.95 support from master.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: fix printf in putsurface_wayland test
Rob Bradford [Fri, 2 Nov 2012 11:39:33 +0000 (11:39 +0000)]
tests: fix printf in putsurface_wayland test

Signed-off-by: Rob Bradford <rob@linux.intel.com>
11 years agoAdded new VAEncPackedHeaderRawData value to VAEncPackedHeaderType
Jonathan Bian [Mon, 22 Oct 2012 04:49:51 +0000 (21:49 -0700)]
Added new VAEncPackedHeaderRawData value to VAEncPackedHeaderType

11 years agotests: add missing -lpthread link option.
Gwenole Beauchesne [Tue, 9 Oct 2012 04:21:59 +0000 (06:21 +0200)]
tests: add missing -lpthread link option.

Some tests (avcenc, mpeg2transcode) were using the pthread library but
were missing -lpthread link option. This regression was exhausted on
Fedora 15+ thanks to Yakui.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: fix build with alternate X11 paths.
Gwenole Beauchesne [Thu, 4 Oct 2012 13:28:07 +0000 (15:28 +0200)]
tests: fix build with alternate X11 paths.

If a program explicitly uses libfoo functions (libX11 for instance here),
then it shall be explicitly linked against that library. So, fix all
instances where X11 functions are called to include the right paths
to headers and libraries.

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

11 years agoandroid: fix build of test programs.
Gwenole Beauchesne [Fri, 28 Sep 2012 08:31:34 +0000 (10:31 +0200)]
android: fix build of test programs.

Cope with the recent changes to use "sysdeps.h" wherever possible
in test programs.

Change-Id: Id2fd2567fae4ee0f9e5a8a562e994598685ac86b
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoandroid: use common DRM driver detection code.
Haitao Huang [Tue, 21 Aug 2012 18:26:28 +0000 (13:26 -0500)]
android: use common DRM driver detection code.

Change the driver used for android. Libva has to load the correct
driver and retain the vendor and device id's.

This change is to re-use common drm utils code for driver name
detection. Also removed non-android code in android specific files
and unneeded files in android directory.

Change-Id: I2893d8fcadfbf911e7c0b421a4e90d5aeb0d619e
Signed-off-by: Daniel Charles <daniel.charles@intel.com> (change driver)
Signed-off-by: Haitao Huang <haitao.huang@intel.com> (update using drm util)
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> (add missing headers)
11 years agotests: include "sysdeps.h" wherever necessary.
Gwenole Beauchesne [Fri, 28 Sep 2012 08:09:51 +0000 (10:09 +0200)]
tests: include "sysdeps.h" wherever necessary.

Use "sysdeps.h" header instead of "config.h" so that to include the
necessary definitions for Android.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: drop extraneous libva-x11.la dependency.
Gwenole Beauchesne [Fri, 28 Sep 2012 08:05:00 +0000 (10:05 +0200)]
tests: drop extraneous libva-x11.la dependency.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoautogen: modernize configure script generator.
Gwenole Beauchesne [Fri, 28 Sep 2012 07:53:20 +0000 (09:53 +0200)]
autogen: modernize configure script generator.

Make it possible to run autogen.sh from a different location from the
original source directory. Make execution of the `configure' script
optional. i.e. don't run it by default if NO_CONFIGURE variable is set.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoandroid: fix tests for Android ICS.
Haitao Huang [Tue, 21 Aug 2012 18:26:26 +0000 (13:26 -0500)]
android: fix tests for Android ICS.

Change-Id: I478063713883fbb5fb1fac372dbc418b19ff7d2b
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: sanitize build of test cases.
Gwenole Beauchesne [Thu, 27 Sep 2012 13:40:11 +0000 (15:40 +0200)]
tests: sanitize build of test cases.

Fix compiler paths when searching for dependencies, especially when they
are in non-standard locations. Drop _DEPENDENCIES that are automatically
generated. Also include a few cosmetics (vertical alignment).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agobuild: drop useless Makefile variables.
Gwenole Beauchesne [Thu, 27 Sep 2012 13:16:59 +0000 (15:16 +0200)]
build: drop useless Makefile variables.

libvacorelib and libvabackendlib variables are totally useless nowadays
since test cases use a common infrastructure for VA display options and
that other test cases are X11 specific anyway.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoSanitize build dependencies.
Gwenole Beauchesne [Thu, 27 Sep 2012 12:26:03 +0000 (14:26 +0200)]
Sanitize build dependencies.

Fix build dependencies for all backends (DRM, X11, GLX, EGL, Wayland),
especially when they don't live in standard locations.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAdd the SEI segment for CBR mode to pass HRD test
Zhao Yakui [Mon, 24 Sep 2012 21:17:19 +0000 (17:17 -0400)]
Add the SEI segment for CBR mode to pass HRD test

Otherwise the encoded h264 video stream can't be parsed by HRD test software.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoandroid: export JPEG decode header.
Haitao Huang [Tue, 21 Aug 2012 18:26:27 +0000 (13:26 -0500)]
android: export JPEG decode header.

Change-Id: Ic9aec3c23a3c1b40a0147aec88cbe14627591562
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoandroid: rename the LOG_TAG per module.
Daniel Charles [Fri, 17 Aug 2012 16:50:18 +0000 (09:50 -0700)]
android: rename the LOG_TAG per module.

LOG_TAG is defined per module compiled so that tracing back errors
from the Android logcat can be understood easily

Change-Id: I9353c27593ce92ae4e87e4412f033d4f487b9346
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 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.

11 years agoFix GL dependency for lib-egl
Xiang, Haihao [Fri, 31 Aug 2012 08:20:46 +0000 (04:20 -0400)]
Fix GL dependency for lib-egl

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Tested-by: Zhao Halley <halley.zhao@intel.com>
11 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

11 years agotest: add YUY2 support in loadsurface.h
Zhao Halley [Wed, 5 Sep 2012 09:23:20 +0000 (17:23 +0800)]
test: add YUY2 support in loadsurface.h

11 years agotest: refine loadsurface.h, conveninent for new format support
Zhao Halley [Wed, 5 Sep 2012 09:23:19 +0000 (17:23 +0800)]
test: refine loadsurface.h, conveninent for new format support

11 years agotest: fix an issue in loading YV12 surface
Zhao Halley [Wed, 5 Sep 2012 09:23:18 +0000 (17:23 +0800)]
test: fix an issue in loading YV12 surface

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

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

11 years agoavcenc: Fix constraint flag
Xiang, Haihao [Fri, 7 Sep 2012 08:52:22 +0000 (04:52 -0400)]
avcenc: Fix constraint flag

This fixes the issue that the output file can't be play correctly by mplayer.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 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>

11 years agoAdded baseline to the list of profiles for the documentation.
Jonathan Bian [Wed, 29 Aug 2012 04:03:08 +0000 (21:03 -0700)]
Added baseline to the list of profiles for the documentation.

11 years agoAdd maximum type number define, and one addition VPP flag
Binglin Chen [Wed, 8 Aug 2012 06:42:23 +0000 (14:42 +0800)]
Add maximum type number define, and one addition VPP flag

Add maximum type number define for VAEntryPoint,
VAConfigAttribTypeMax, VABufferTypeMax, which can be used as
the current total number of entrypoint/attribute/buffer type.

Add END of stream flag for VPP pipeline which indicates it's
the last frames in the pipeline.

Signed-off-by: Binglin Chen <binglin.chen@intel.com>
11 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>
11 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>
11 years agova_trace.c: fix a wrong conditional check
Austin Yuan [Thu, 2 Aug 2012 10:24:20 +0000 (18:24 +0800)]
va_trace.c: fix a wrong conditional check

Should check trace_fp_codedbuf instead of trace_fp_log because
we write to trace_fp_codedbuf

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
11 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>
11 years agoandroid: use Android logging utilities.
Daniel Charles [Thu, 2 Aug 2012 17:30:44 +0000 (10:30 -0700)]
android: use Android logging utilities.

Log functions available are now Android compatible and log statements
will show on user space android logging system.

Defined a LOG_TAG and make it available for all versions of Android.

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agowayland: don't export internal functions.
Gwenole Beauchesne [Mon, 6 Aug 2012 16:32:17 +0000 (18:32 +0200)]
wayland: don't export internal functions.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agowayland: allow de-interlaced picture buffers.
Gwenole Beauchesne [Mon, 6 Aug 2012 08:24:33 +0000 (10:24 +0200)]
wayland: allow de-interlaced picture buffers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agowayland: ship with wayland-drm protocol.
Zhao halley [Thu, 24 May 2012 09:13:31 +0000 (17:13 +0800)]
wayland: ship with wayland-drm protocol.

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: add PutSurface test for Wayland.
Benjamin Franzke [Tue, 21 Feb 2012 05:11:42 +0000 (13:11 +0800)]
tests: add PutSurface test for Wayland.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: add support for Wayland.
Gwenole Beauchesne [Fri, 6 Apr 2012 15:23:55 +0000 (17:23 +0200)]
tests: add support for Wayland.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAPI: add support for Wayland.
Gwenole Beauchesne [Fri, 6 Apr 2012 15:23:55 +0000 (17:23 +0200)]
API: add support for Wayland.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoconfigure: fix EGL check.
Gwenole Beauchesne [Mon, 6 Aug 2012 16:36:15 +0000 (18:36 +0200)]
configure: fix EGL check.

This fixes the following error:
checking EGL/egl.h presence... no
configure: WARNING: EGL/egl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: EGL/egl.h: proceeding with the compiler's result

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agodrm: don't export internal functions.
Gwenole Beauchesne [Mon, 6 Aug 2012 16:22:40 +0000 (18:22 +0200)]
drm: don't export internal functions.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoconfigure: check for visibility attribute.
Gwenole Beauchesne [Mon, 6 Aug 2012 16:16:58 +0000 (18:16 +0200)]
configure: check for visibility attribute.

Add a check for GCC "visibility" attribute. Also define DLL_HIDDEN helper
so that to declare functions as internal to a particular shared library.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotest/avcenc: link with -lpthread.
Zhao Yakui [Wed, 1 Aug 2012 19:52:56 +0000 (15:52 -0400)]
test/avcenc: link with -lpthread.

Otherwise it will complain during compiling:
usr/bin/ld: avcenc.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agotests: fix JPEG decoding test to match the latest API.
Gwenole Beauchesne [Tue, 31 Jul 2012 09:04:24 +0000 (11:04 +0200)]
tests: fix JPEG decoding test to match the latest API.

Fix bug in parsing Huffman DC table and also sync the code to match
the latest API change. In particular, pad the Huffman table with
zero to suit 4-byte boundaries.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agojpeg: pad Huffman table to 4-byte boundaries (Haihao).
Gwenole Beauchesne [Tue, 31 Jul 2012 08:48:27 +0000 (10:48 +0200)]
jpeg: pad Huffman table to 4-byte boundaries (Haihao).

Some VA driver implementations require alignment to 4-byte boundaries
so that to allow for direct memory transfers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agodrm: move driver name detection to utilities.
Gwenole Beauchesne [Fri, 27 Jul 2012 15:56:56 +0000 (17:56 +0200)]
drm: move driver name detection to utilities.

Move VA driver name characterisation into a dedicated utilities file.
This is also meant to be useful to VA/Android that can re-use the same
file as is since it is self-contained.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agodrm: fix build without X11 headers.
Dmitry Ermilov [Tue, 3 Jul 2012 13:34:24 +0000 (15:34 +0200)]
drm: fix build without X11 headers.

Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agodrm: allow authentication through X11 server.
Gwenole Beauchesne [Mon, 2 Jul 2012 12:44:28 +0000 (14:44 +0200)]
drm: allow authentication through X11 server.

Make it possible to authenticate a DRM connection through an X server
that may already be running.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agodrm: ensure DRM connection is authenticated.
Gwenole Beauchesne [Mon, 2 Jul 2012 11:44:40 +0000 (13:44 +0200)]
drm: ensure DRM connection is authenticated.

Make sure the DRM connection is authenticated prior to returning a
valid display from vaGetDisplayDRM(). If an X or Wayland server is
running then authentication will also fail.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAllow build without VA/X11 API.
Dmitry Ermilov [Thu, 7 Jun 2012 15:37:21 +0000 (19:37 +0400)]
Allow build without VA/X11 API.

In this case, VA/GLX API is disabled and another backend shall be
built instead.

Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: add support for raw DRM.
Dmitry Ermilov [Thu, 7 Jun 2012 15:41:16 +0000 (19:41 +0400)]
tests: add support for raw DRM.

Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAPI: add support for raw DRM.
Dmitry Ermilov [Thu, 7 Jun 2012 15:29:14 +0000 (19:29 +0400)]
API: add support for raw DRM.

This API makes it possible to use DRM-based VA drivers without an X server.
Since this is a renderless API, vaPutSurface() is not available.

Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotest/basic: fix make dist.
Gwenole Beauchesne [Wed, 25 Jul 2012 22:56:41 +0000 (00:56 +0200)]
test/basic: fix make dist.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAPI: backend: add VA display types.
Gwenole Beauchesne [Fri, 6 Apr 2012 12:31:42 +0000 (14:31 +0200)]
API: backend: add VA display types.

Make it possible to easily find how the VA display was created. This
helps implement multiple backends in VA drivers. e.g. X11, Wayland
while keeping a single generated binary.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAPI: backend: rename VADriverContext.dri_state to drm_state.
Gwenole Beauchesne [Fri, 6 Apr 2012 11:19:46 +0000 (13:19 +0200)]
API: backend: rename VADriverContext.dri_state to drm_state.

VADriverContext.drm_state holds data structures derived from struct
drm_state, thus also including struct dri_state for VA/X11 drivers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoAPI: introduce DRM common utilities and data structures.
Benjamin Franzke [Fri, 6 Apr 2012 09:45:28 +0000 (11:45 +0200)]
API: introduce DRM common utilities and data structures.

Add <va/va_drmcommon.h> header for DRM-based drivers to use common
base utilities and data structures. So far, only the DRM state is
shared so that to maintain binary compatibility.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: update JPEG decoding test case.
Xiang, Haihao [Tue, 24 Jul 2012 21:56:31 +0000 (05:56 +0800)]
tests: update JPEG decoding test case.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agojpeg: drop sample_precision since P=8 for baseline profile.
Gwenole Beauchesne [Thu, 26 Jul 2012 04:16:15 +0000 (06:16 +0200)]
jpeg: drop sample_precision since P=8 for baseline profile.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agojpeg: drop JPEG-2000 fields from structures for Baseline profile.
Gwenole Beauchesne [Wed, 25 Jul 2012 22:13:32 +0000 (00:13 +0200)]
jpeg: drop JPEG-2000 fields from structures for Baseline profile.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agojpeg: include <va/va_dec_jpeg.h> into core VA header.
Gwenole Beauchesne [Wed, 25 Jul 2012 14:46:14 +0000 (16:46 +0200)]
jpeg: include <va/va_dec_jpeg.h> into core VA header.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agojpeg: document decoding API is only suitable to baseline profile.
Gwenole Beauchesne [Wed, 25 Jul 2012 14:45:37 +0000 (16:45 +0200)]
jpeg: document decoding API is only suitable to baseline profile.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agojpeg: add "Baseline" suffix the existing data structures.
Xiang, Haihao [Tue, 24 Jul 2012 21:51:25 +0000 (05:51 +0800)]
jpeg: add "Baseline" suffix the existing data structures.

These structures are for Baseline profile only.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agotests: avcenc: allow selection of display.
Gwenole Beauchesne [Mon, 16 Jul 2012 10:57:30 +0000 (12:57 +0200)]
tests: avcenc: allow selection of display.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agorename NativeDisplay to VANativeDisplay
Xiang, Haihao [Tue, 8 Nov 2011 02:22:43 +0000 (10:22 +0800)]
rename NativeDisplay to VANativeDisplay

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
[cherry-pick'ed from commit a65acb298894fa90e3cb7692795027143d6b1dbe]

11 years agotests: allow selection of display.
Gwenole Beauchesne [Tue, 10 Jul 2012 13:58:31 +0000 (15:58 +0200)]
tests: allow selection of display.

Make it possible to select display for test applications that need
to render the decoded surfaces. Usage: --display <name> args.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotests: avcenc: use common VA display creation routines.
Dmitry Ermilov [Thu, 7 Jun 2012 15:45:15 +0000 (19:45 +0400)]
tests: avcenc: use common VA display creation routines.

Signed-off-by: Dmitry Ermilov <dmitry.ermilov@intel.com>
11 years agotests: simplify VA display construction.
Gwenole Beauchesne [Fri, 6 Apr 2012 14:45:34 +0000 (16:45 +0200)]
tests: simplify VA display construction.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotest: fix avcenc build on Android.
Gwenole Beauchesne [Fri, 13 Jul 2012 08:43:28 +0000 (10:43 +0200)]
test: fix avcenc build on Android.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agotest/basic: changed build target to noinst so they are built by default
Haitao Huang [Wed, 11 Jul 2012 08:42:45 +0000 (16:42 +0800)]
test/basic: changed build target to noinst so they are built by default

Signed-off-by: Haitao Huang <haitao.huang@intel.com>
(cherry picked from commit cc86031259117b3cd5607865858c9054cd44db0e)

11 years agotest/encode: add avcenc target for Android.mk.
Haitao Huang [Fri, 6 Jul 2012 12:02:05 +0000 (14:02 +0200)]
test/encode: add avcenc target for Android.mk.

Signed-off-by: Haitao Huang <haitao.huang@intel.com>
11 years agotest/encode/avcenc: rename swap32() to va_swap32().
Haitao Huang [Fri, 6 Jul 2012 12:08:47 +0000 (14:08 +0200)]
test/encode/avcenc: rename swap32() to va_swap32().

Signed-off-by: Haitao Huang <haitao.huang@intel.com>
11 years agotest: remove trailing whitespaces in Android.mk files.
Haitao Huang [Fri, 6 Jul 2012 11:52:18 +0000 (13:52 +0200)]
test: remove trailing whitespaces in Android.mk files.

Signed-off-by: Haitao Huang <haitao.huang@intel.com>
11 years agotest/basic: fix build of basic tests.
Haitao Huang [Fri, 6 Jul 2012 11:41:29 +0000 (13:41 +0200)]
test/basic: fix build of basic tests.

Signed-off-by: Haitao Huang <haitao.huang@intel.com>
11 years agotest/basic: update to new API.
Haitao Huang [Fri, 6 Jul 2012 11:38:56 +0000 (13:38 +0200)]
test/basic: update to new API.

Signed-off-by: Haitao Huang <haitao.huang@intel.com>
11 years ago.gitignore: update.
Gwenole Beauchesne [Sun, 8 Apr 2012 05:29:59 +0000 (07:29 +0200)]
.gitignore: update.

- Add new tests and generated files.
- Sort the lines by alphabetical order.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
[cherry-pick'ed from master 09533757aca8b8764a925dfa92204a8bb3c396f4]

11 years agobuild: fix make dist.
Gwenole Beauchesne [Thu, 28 Jun 2012 08:54:08 +0000 (10:54 +0200)]
build: fix make dist.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoFix build with alternate X11, GLX and EGL prefixes.
Gwenole Beauchesne [Mon, 16 Apr 2012 08:41:56 +0000 (10:41 +0200)]
Fix build with alternate X11, GLX and EGL prefixes.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoFix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6
Xiang, Haihao [Thu, 10 May 2012 05:03:16 +0000 (13:03 +0800)]
Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6

VA/EGL depends on EGL/egl.h, so checking for eglGetDisplay in -lEGL
doesn't mean it could be compiled or not.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoconfigure: fix GLX and EGL tests.
Gwenole Beauchesne [Sat, 7 Apr 2012 05:15:07 +0000 (07:15 +0200)]
configure: fix GLX and EGL tests.

Migrate checks for GLX and EGL to pkg-config checks or use default
include and libraries for testing.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agofix the check for EGL
Xiang, Haihao [Fri, 13 Jan 2012 07:00:45 +0000 (15:00 +0800)]
fix the check for EGL

It is possible that EGL/egl.h doesn't exist however EGL library is
available. We don't want to build EGL related stuff in this case

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
[Gwenole: removed the non-existing check for the testcase]

11 years agoAPI for MPEG-2 encoding
Xiang, Haihao [Tue, 19 Jun 2012 01:07:03 +0000 (09:07 +0800)]
API for MPEG-2 encoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agojpeg: mark default Huffman table as valid.
Gwenole Beauchesne [Mon, 18 Jun 2012 11:54:06 +0000 (13:54 +0200)]
jpeg: mark default Huffman table as valid.

When no Huffman table is defined in the JPEG segments, then the default
Huffman tables are used, but values were not marked as valid. Fixed this
to notify HW decoder that it needs to load the default tables.

Note: this is not specifically needed to be handled at the application
level. The driver also ought to generate default tables, should the HW
decoder require so and no table was provided from the application.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agojpeg: fix display of dimensions.
Gwenole Beauchesne [Mon, 18 Jun 2012 11:49:47 +0000 (13:49 +0200)]
jpeg: fix display of dimensions.

Use human-readable form for image dimensions. i.e. use decimal representation
instead of hexadecimal one.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 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>
11 years agoAdd Deblocking and FRC filter to VPP API
Jonathan Bian [Thu, 26 Apr 2012 20:51:31 +0000 (13:51 -0700)]
Add Deblocking and FRC filter to VPP API

Added Deblocking and FRC filter types and data structures

Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
11 years agolicense header: add the missing license header to files
Austin Yuan [Mon, 21 May 2012 01:05:07 +0000 (21:05 -0400)]
license header: add the missing license header to files

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
12 years agojpeg: fix IQ matrix and Huffman table buffer name.
Gwenole Beauchesne [Fri, 11 May 2012 15:21:48 +0000 (17:21 +0200)]
jpeg: fix IQ matrix and Huffman table buffer name.

Align quantiser matrix and Huffman table buffer names for JPEG to existing
practice for other codecs. i.e. drop the "Parameter" suffix in the name.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoUpdate JPEG decode demo to match current API.
Gwenole Beauchesne [Fri, 11 May 2012 14:07:06 +0000 (16:07 +0200)]
Update JPEG decode demo to match current API.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoA simple JPEG example to use VAAPI
Zhao Halley [Tue, 7 Feb 2012 05:01:53 +0000 (13:01 +0800)]
A simple JPEG example to use VAAPI

It is based on Luc Saillard <luc@saillard.org>'s JPEG program

Usage: loadjpeg <input_filename.jpeg>

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Singed-off-by: Wind Yuan <feng.yuan@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agojpeg: cosmetics (vertical align).
Gwenole Beauchesne [Fri, 11 May 2012 15:04:10 +0000 (17:04 +0200)]
jpeg: cosmetics (vertical align).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAndroid.mk: install VPP header files
Austin Yuan [Wed, 25 Apr 2012 06:26:03 +0000 (23:26 -0700)]
Android.mk: install VPP header files

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
12 years agoVAEncXXXH264Baseline: start to drop VAEncXXXXBaseline
Austin Yuan [Wed, 25 Apr 2012 06:17:03 +0000 (23:17 -0700)]
VAEncXXXH264Baseline: start to drop VAEncXXXXBaseline

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
12 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>
12 years agoandroid backend: add the new device ID into it
Austin Yuan [Wed, 25 Apr 2012 05:56:28 +0000 (22:56 -0700)]
android backend: add the new device ID into it

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
12 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>