AVCENC: Pass the H264 RefPicList0/1 by using slice_param instead of hacked DPB reference

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
va: Allow attribute-by-attribute configuration of the TCC filter

A VA buffer can hold several total color correction attributes
by creating a VA buffer of the desired number of elements, in
such a way that you can independently modify the attribute or
attributes (out of R, G, B, C, M and Y) that you need.

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
vatrace: always printf RefPicList

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Added additional output surfaces to the pipeline parameter and cap structures, in case the VPP supports multiple outputs in a single iteration.
Added additional fields needed by certain types of hardware to the VAPictureParameterBufferMPEG4 structure.
Added VAConfigEncQualityRange attribute and VAEncMiscParameterBufferQualityLevel to support encoder quality settings.
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>
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>
(cherry picked from commit 908f6a7e6bdd162b40d83279a54195652339ecdf)
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>
vatrace: fix compile warnings and refine some format

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