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>
Jonathan Bian [Wed, 9 Jan 2013 22:44:18 +0000 (14:44 -0800)]
Added "flags" field to VAProcFilterParameterBufferDeinterlacing to indicate TOP/BOTTOM field in the input frame and which field to use for BOB deinterlacing.
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>
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
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>
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>
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
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
Gwenole Beauchesne [Tue, 3 Apr 2012 12:28:40 +0000 (14:28 +0200)]
API: vpp: add blend state for composition.
Add a new VABlendState structure that defines the blending operations for
composition. So far, only luma keying, alpha blending and premultiplied
alpha are supported.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Gwenole Beauchesne [Tue, 3 Apr 2012 09:32:54 +0000 (11:32 +0200)]
API: vpp: add rotation state.
Add the ability to rotate a source surface clockwise by a fixed number
of degrees (VA_ROTATION_xxx flags). The outcome of this operation is
scaled to fit the specified output_region.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Xiang, Haihao [Fri, 7 Dec 2012 08:00:04 +0000 (16:00 +0800)]
mpeg2enc: find the proper profile and level
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 6 Dec 2012 08:13:35 +0000 (16:13 +0800)]
mpeg2enc: Fix the picture header for B frame
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 6 Dec 2012 08:12:45 +0000 (16:12 +0800)]
mpeg2enc: Fix time_code_seconds in time_code
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 6 Dec 2012 07:56:12 +0000 (15:56 +0800)]
mpeg2enc: temporal_referenc and GOP header follow MPEG-2 Spec.
temporal_reference is reset to zero at each group of pictures header
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 6 Dec 2012 07:19:02 +0000 (15:19 +0800)]
mpeg2enc: Silence compiler warning
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 6 Dec 2012 07:17:27 +0000 (15:17 +0800)]
test/encode: Add -Wall option to default build flags
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 6 Dec 2012 07:15:07 +0000 (15:15 +0800)]
mpeg2enc: Simplify the mapping between display order and encoding order
mode 0:
D: IIIII...
E: IIIII...
mode 1:
D: IPPPP...
E: IPPPP...
mode 2:
D: IBBPBBPBBPBBPBBPIBBP...
E: IPBBPBBPBBPBBPBBIPBB...
B frame is supported now
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Wed, 5 Dec 2012 08:18:20 +0000 (16:18 +0800)]
mpeg2enc: set the frames between I and P frames
The default valude is 2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Wed, 5 Dec 2012 08:15:32 +0000 (16:15 +0800)]
mpeg2enc: forward and backword referenc follow the picture type
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 29 Nov 2012 02:02:28 +0000 (10:02 +0800)]
mpeg2enc: Remove the assertion for mode 1
P frame is supported now
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 29 Nov 2012 01:56:06 +0000 (09:56 +0800)]
mpeg2enc: f_code[s][t] follows the picture coding type
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 29 Nov 2012 01:37:44 +0000 (09:37 +0800)]
mpeg2enc: level and profile follow the user setting
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 29 Nov 2012 01:30:47 +0000 (09:30 +0800)]
mpeg2enc: Options for profile and level
--profile <0|1> specify the profile 0(Simple), or 1(Main, default)
--level <0|1|2> specify the level 0(Low), 1(Main, default) or 2(High)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 29 Nov 2012 01:11:39 +0000 (09:11 +0800)]
mpeg2enc: enumerate mode type
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 29 Nov 2012 00:41:18 +0000 (08:41 +0800)]
mpeg2enc: fix a typo
s/patter/pattern
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Wed, 28 Nov 2012 03:32:02 +0000 (11:32 +0800)]
mpeg2enc: Set default qp to 8
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Wed, 28 Nov 2012 00:27:41 +0000 (08:27 +0800)]
mpeg2enc: Keep the packed data consistent with each parameters
So update paramters before packing SPS/PPS data buffers
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Tue, 27 Nov 2012 08:24:07 +0000 (16:24 +0800)]
mpeg2enc: update time_code for the new GOP
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 08:16:00 +0000 (16:16 +0800)]
mpeg2enc: update temporal_reference
Insert a GOP header once temporal_reference is 0
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 08:05:38 +0000 (16:05 +0800)]
mpeg2enc: Fix the period between I frames
1 for mode 0, and 16 for mode 1 and mode 2. Also temporarily
assert mode 1 and mode 2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 08:00:37 +0000 (16:00 +0800)]
mpeg2enc: add --mode option to command line
Usage: --mode <0|1|2>
0 means I frames only
1 means I and P frames
2 means I, P and B frames
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 07:23:40 +0000 (15:23 +0800)]
mpeg2enc: insert picture header for each picture
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 03:12:22 +0000 (11:12 +0800)]
mpeg2enc: Fix top_field_first
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 03:05:57 +0000 (11:05 +0800)]
mpeg2enc: f_code[s][t] takes the value 15 for I frame
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 02:55:55 +0000 (10:55 +0800)]
mpeg2enc: make sure start codes are byte aligned
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 02:15:27 +0000 (10:15 +0800)]
mpeg2enc: VBV buffer size
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Mon, 26 Nov 2012 01:54:59 +0000 (09:54 +0800)]
mpeg2enc: find the right frame_rate_code
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Fri, 23 Nov 2012 02:39:14 +0000 (10:39 +0800)]
mpeg2enc: Update intra slice flag
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Fri, 23 Nov 2012 02:36:34 +0000 (10:36 +0800)]
mpeg2enc: Pass slice parameters in a group
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Fri, 19 Oct 2012 02:56:09 +0000 (10:56 +0800)]
mpeg2enc: A simple MPEG-2 encoder based on VA-API
Support I frame firstly
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
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>
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>
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>
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>
Jonathan Bian [Mon, 22 Oct 2012 04:49:51 +0000 (21:49 -0700)]
Added new VAEncPackedHeaderRawData value to VAEncPackedHeaderType
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>
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)
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jonathan Bian [Mon, 17 Sep 2012 04:26:00 +0000 (21:26 -0700)]
Changed values for VASurfaceAttribMemoryType from fourcc to bit fields.
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>
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
Zhao Halley [Wed, 5 Sep 2012 09:23:20 +0000 (17:23 +0800)]
test: add YUY2 support in loadsurface.h
Zhao Halley [Wed, 5 Sep 2012 09:23:19 +0000 (17:23 +0800)]
test: refine loadsurface.h, conveninent for new format support
Zhao Halley [Wed, 5 Sep 2012 09:23:18 +0000 (17:23 +0800)]
test: fix an issue in loading YV12 surface
Jonathan Bian [Thu, 6 Sep 2012 23:50:27 +0000 (16:50 -0700)]
Added new RT formats and fourcc codes for pixel formats.
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.
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>
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>
Jonathan Bian [Wed, 29 Aug 2012 04:03:08 +0000 (21:03 -0700)]
Added baseline to the list of profiles for the documentation.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>