summaryrefslogtreecommitdiff
path: root/va
AgeCommit message (Collapse)AuthorFilesLines
2015-09-06vatrace: add IVF header for VP8 coded buffer dumpAustin Yuan1-1/+60
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 575be3f0b5868f842b12473fe21ceab72360cde0)
2015-09-06va_trace.c : Fix VAIQMatrixBufferHEVC tracingTimo Rothenpieler1-1/+1
(cherry picked from commit ccfa82858b1a1dbf7ec212775a14f919ecf2d503)
2015-09-06va_trace.c : Fixes incorrect hardcode printfs message.Lim Siew Hoon1-3/+3
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> (cherry picked from commit 70b80c0dd2effb4956b208775641f7c68a67a9df)
2015-09-06va_trace.c: add vp9 decoder trace infoXu Guangxin1-0/+140
(cherry picked from commit c9ebdf432f154691464359caa7f37f8a2034f0ff) Conflicts: va/va_trace.c Signed-off-by: Xu Guangxin <Guangxin.Xu@intel.com> [Support VAProfileVP9Profile0 only on master] Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 319b0fcf6c1d7faf7d2cad9baf1a45d2a8f20880)
2015-09-06va_trace.c: fixes incorrect use of signed decimal conversion in printfs.Jonathan Bian1-30/+30
Signed-off-by: Jonathan Bian <jonathan.bian@intle.com> (cherry picked from commit 27812e7144d59603bd1c2d6dfc32dbcd0a37bc7a) (cherry picked from commit 1c47a86c36733d6b7bb4ea9df58309d6d1fd0f18)
2015-09-06Va_trace changes to dump the HEVC encode parameterssusheel1-0/+253
(cherry picked from commit c24b5da1a8296ca13aceb233b32eaf8bc1d47802) Conflicts: va/va_trace.c (cherry picked from commit 762aea574b596fcb5b8b1d335e9010fc343d9acc)
2015-09-06vatrace: print frame_type for VP8 encodingAustin Yuan1-1/+2
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 1a011ce5bb0b80506797a25a988854f3f81ce909) (cherry picked from commit 739d3ed0c15f93fe7404d3925d0ce2598effeb20)
2015-09-06vatrace: dump the right parameters for VP8 encodeXiang, Haihao1-38/+36
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit b7494802d94bf8af3577fbb5145f144892283585) Conflicts: va/va_trace.c (cherry picked from commit 92a9f37aaf241cb3ac585284dfa97834a7e13987)
2015-09-06Enhance LIBVA_TRACE to dump SPS/PPS/ for VP8 encode.Liu Bolun1-0/+109
Enhance LIBVA_TRACE tool to dump VP8 encode related parameters based on the new libva interface. Change-Id: I2c731761bb180061e18dac6b63d77572ca1abef6 Signed-off-by: Liu Bolun <bolun.liu@intel.com> (cherry picked from commit bc49c42bcbfb24286c06b3e7cdb171b2a01c6f80) Conflicts: va/va_trace.c (cherry picked from commit f4a05455a763e7918c23e64218ba42caab3db065)
2015-06-02va_enc_hevc.h: Fix the description for slice_segment_addressSreerenj Balachandran1-1/+1
The slice_segment_address field indicates the starting CTU address for the corresponding slice. Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2015-06-02va_dec_hevc.h: Fix the misleading documentationSreerenj Balachandran1-1/+0
The slice data buffer should always include the start code prefix. The comment section of VASliceParameterBufferHEVC is saying that the accompanying slice_data_buffer should include start code prefix. But the comment above slice_data_byte_offset is contradicting. Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
2015-05-22Bump VA API to 0.38Xiang, Haihao1-0/+1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2015-05-22Add one API to allow the user to specify the loaded backend driverZhao Yakui3-5/+99
Sometimes there exist multiple backend vaapi drivers on one system. In such case user hopes to load the specific driver based on the request. Currently it can be specified by using LIBVA_DRIVER_NAME environment. But it is not convenient. So one API is added to allow the user to specify the loaded backend vaapi driver. And it is called by using the following sequence: >vaGetDisplay( >vaSetDriverName(va_dpy, driver_name) >vaInitialize V1->V2: Use the reserved space to store override_driver_name based on Haihao's suggestion. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2015-04-29HEVC: type delta_chroma_log2_weight_denom as int8_t to match the specXiang, Haihao2-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 612fc3824158278336e6eb36d9af8028b839a569)
2015-04-03Add VAConfigAttribEncSkipFrame and corresponding structures to support ↵pylee1-0/+35
sending skip frame parameters to the encoder's rate control, when the user has externally skipped frames. (cherry picked from commit 959f462709c9c4cba3243805031cf8d836a940ed) Conflicts: va/va.h
2015-04-02Merge VP9 decode API from staging branchWang, Ce4-1/+321
Cherry-pick'ed from: 960352a: VP9 decode API 4b34eb6: Minor changes to the VP9 decode API to remove fields that are not needed 29fa9ec: Made VASliceParameterBufferVP9 consistent with other codecs 0302393: Rename symbols/fields in VP9 API (part of 0302393) Signed-off-by: Wang, Ce <ce.wang@intel.com> Signed-off-by: Jonathan Bian <jonathan.bian@intel.com> Signed-off-by: Sun, Maggie <maggie.sun@intel.com>
2015-04-02libva:Add the bits mask of color-sapce conversion standardsyakui.zhao@intel.com1-0/+1
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit e3f83e524264e073a9815c245a9f194a1651cff6) Conflicts: va/va.h
2015-04-02Add support for querying slice decoding mode supported by the underlying driverJonathan Bian1-0/+23
This is a part of commit d65d7157da6dcfab44e639bee4905f793d869a1c
2015-03-19HEVC encode APIWang, Ce4-0/+704
Signed-off-by: Wang, Ce <ce.wang@intel.com> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 9d128cf241830f7ead49fa5b104248b44c680873) Conflicts: va/Android.mk va/Makefile.am va/va.h
2015-03-19Include sub core APIs in va.h as wellXiang, Haihao1-2/+9
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 012838e07d99531c67e3798235b00437f5b67c02)
2015-03-19Move VAHuffmanTableBufferJPEGBaseline to va.hXiang, Haihao3-38/+39
VAHuffmanTableBufferJPEGBaseline is also used for JPEG encoding, so move it to va.h as we discussed before. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 504478e0bbc27cc529c96b168cae1fb9dd12c4a5) Conflicts: va/va.h
2015-03-10x11: dri2: fix double Unlocks/SyncHandleLionel Landwerlin1-4/+0
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2015-01-16Change comment for num_token_partionionsZhong Li1-1/+1
Signed-off-by: Zhong Li <zhong.li@intel.com> (cherry picked from commit d9626b77f865ce7bdbc8c78988a86d3e4f55d67b)
2014-12-29libva 1.5.0.pre1 for developmentXiang, Haihao1-0/+1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 2fb37255e7c9ccb76e65ea74466f5ffafe9c68c0) Conflicts: configure.ac
2014-12-04Add VA trace support for HEVCTang, XiaoxiX1-0/+313
BZ:189819 Change-Id: I505a9e638191494f7f69c9ef9995fabc9d82dffb Signed-off-by: Tang, XiaoxiX <xiaoxix.tang@intel.com> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2014-12-04Added HEVC decode APIWang, Ce4-1/+499
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>
2014-12-04x11: check x pixmap is still alive before DRI2DestroyDrawableLionel Landwerlin1-20/+80
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>
2014-12-04Fix while loopXiang, Haihao1-1/+2
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>
2014-11-19vatrace: trace JPEG encode parametersAustin Yuan1-1/+51
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit e468728f9e49603f91ccbce3a232aa3bd98d1fd4) Conflicts: va/va_trace.c va/va_trace.h
2014-11-19Extended existing JPEG encoding data structures and added configuration ↵Jonathan Bian5-20/+188
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>
2014-10-08va: hide most private va_Trace* symbolsEmil Velikov3-5/+28
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>
2014-10-08va_x11: hide private symbolsEmil Velikov5-1/+6
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>
2014-10-08glx: Hide private symbol va_glx_init_contextEmil Velikov3-1/+3
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>
2014-10-08Fix out of tree buildsEmil Velikov1-1/+1
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>
2014-09-26doc: fix scan order specification for quantization tables.Gwenole Beauchesne2-0/+16
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>
2014-09-25drm: add support for render nodes.Andrey Larionov4-11/+50
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>
2014-09-09Bump VA API to 0.361.4.0.pre1Xiang, Haihao1-0/+1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2014-09-09vatrace: fix segfault of VASurfaceAttribExternalBufferDescriptor dumppingAustin Yuan1-2/+2
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit e286c3264ebf7582792ff56537dd14c9f49903cf)
2014-09-09vafool: fix the vaMapBuffer for the buffer from vaDeriveImageAustin Yuan2-3/+13
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)
2014-09-09vatrace: fix a overwriteAustin Yuan1-1/+1
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 7f1b4be6623f5fe65063581252d2b68bd77fd076)
2014-09-09vafool: simplify VAFOOLAustin Yuan3-70/+58
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit ce00603a8d58f2e25c7a6bb312f60fda0833e042)
2014-09-09vatrace: make LIBVA_TRACE_SURFACE work even without LIBVA_TRACEAustin Yuan3-8/+14
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit e39ebdd95062995e4bdf082d50bd7d9005a3be6c)
2014-09-09vatrace: make standalone LIBVA_TRACE_CODEDBUF work w/o LIBVA_TRACEAustin Yuan1-1/+1
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 22925d9b7d1730468fc7435bee96d9d9c39f5987)
2014-09-09Enable 64bit build for Android, compatible with 32bit.Qiming Shi1-3/+9
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)
2014-09-07API: add support for buffer exports.Gwenole Beauchesne3-1/+147
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
2014-09-07Update comment for quality_levelXiang, Haihao1-1/+3
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
2014-09-07Added VAConfigEncQualityRange attribute and ↵Jonathan Bian1-0/+26
VAEncMiscParameterBufferQualityLevel to support encoder quality settings. (cherry picked from commit 24a14f9d13e6fe0c25d4094c4884aa4076ed05bc) Conflicts: va/va.h
2014-08-28Added OTC hybrid UMD driver to the list of supported driversSameer Kibey1-0/+1
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)
2014-07-18Add vaSurfaceAttribUsageHint to give the driver a hint of intended usage to ↵pylee1-0/+18
optimize allocation (e.g. tiling). (cherry picked from commit 6cdc2e54d40afeb1550b920a6a6221bafeec95ec)
2014-07-18Add frame_type to VP8 encoderAustin Yuan1-1/+2
From penne.y.lee at intel.com Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit c61d986851140a6d1e3f9a6d788bcb7a9407dffc)