.gitignore: add mpeg2vaenc

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Fix out of tree builds

Prefix the libva.sym file or it will not be found when doing out of
tree builds.

Spotted by 'make distcheck'.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
configure: use top_builddir for wayland_scanner_rules

Autotools already copies the files appropriately, and using
top_srcdir causes the files to be generated in the source
tree rather than the build one.

Spotted by 'make dist'

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
debian: distclean the *install files

MAINTCLEAN wraps around DISTCLEAN, so we can drop the files from the
former.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
glx: Hide private symbol va_glx_init_context

There is a note below the symbol ATTRIBUTE_HIDDEN,
additionally the header providing it is not installed.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
va_x11: hide private symbols

The following are not part of the API thus should be hidden.
 - dri2Close
 - VA_FGLRXGetClientDriverName
 - VA_NVCTRLQueryDirectRenderingCapable
 - VA_NVCTRLGetClientDriverName

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
va: hide most private va_Trace* symbols

Hide all but va_TracePutSurface symbols from the user.
The latter one is used internally by va_x11 and va_android.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
libva 1.4.2.pre1 for development

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

Conflicts:
	configure.ac
Extended existing JPEG encoding data structures and added configuration attribute for JPEG encoding.

It is the combination of 1d93d44 and 970064cf

Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
[Resovle conflicts & remove irrelevant attributes]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
vatrace: trace JPEG encode parameters

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

Conflicts:
	va/va_trace.c
	va/va_trace.h
JPEG Encode: Added Unit Test for testing jpeg encode feature.

(cherry picked from commit 9d01b4468f89391892e31efc5bbec774ea781242)
Encoding/avcenc: Optimize the allocated VA surfaces to reduce the memory pressure

When it needs to encode one new frame, it will try to reuse the previously
used surface for the reconstructed frame. In such case it is helpfl to
reduce the memory pressure under multi-channel 4K encoding.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Fix while loop

Otherwise i may be 32 after enter the loop and access
dri_state->drawable_hash[32].

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
x11: check x pixmap is still alive before DRI2DestroyDrawable

Calling vaTerminate() after the pixmaps, given to vaPutSurface(), have
been destroyed results in errors coming from the X server.

These errors happens because LibVA tries to destroy the DRI2Drawables
related to the XPixmaps passed to vaPutSurface(). VA_DRI2Error() has
some code to catch these errors and ignore them. The problem is that
LibX11 doesn't trigger the extension error handlers unless you're
waiting for a response using _XReply(), and there is no defined answer
to a DRI2DestroyDrawable message in the DRI2 protocol.

The attached patch tries to work around that issue by checking whether
the XPixmap is still alive before proceeding with DRI2DestroyDrawable.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Added HEVC decode API

Signed-off-by: Wang, Ce <ce.wang@intel.com>
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
Signed-off-by: Penne <penne.y.lee@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Add VA trace support for HEVC

BZ:189819

Change-Id: I505a9e638191494f7f69c9ef9995fabc9d82dffb
Signed-off-by: Tang, XiaoxiX <xiaoxix.tang@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>