summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libva 1.2.0libva-1.2.0Xiang, Haihao2013-06-251-1/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* NEWS: updatesXiang, Haihao2013-06-251-2/+15
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Remove the dummy driver dependency on X11Zhao Yakui2013-06-251-2/+2
| | | | | | Otherwise when x11 is disabled, it can't be compiled correctly. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
* Remove the EGL dependency on X11Zhao Yakui2013-06-251-2/+2
| | | | | | Otherwise when x11 is disabled, it can't be compiled correctly. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
* h264encode: fix mmap out of memmory issueAustin Yuan2013-06-251-80/+61
| | | | | Change-Id: I9d7047d5ac66efefb31509f3ee52a9db28aada23 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: add more cmdline optionsAustin Yuan2013-06-251-8/+34
| | | | | Change-Id: Ia0326c2649dcf6dfbce275539cb8f4221fa37501 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: fix ftell overflow issue when open large source YUV filesAustin Yuan2013-06-251-4/+13
| | | | | Change-Id: I30190d4e28bd643f00808a15846e50e8fca28764 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: coding 1920x1080 with cropAustin Yuan2013-06-251-9/+54
| | | | | Change-Id: I4ba61943c9f2d246deb4bcb69a4781680f63b046 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: print correct number of RefPicList0/1Austin Yuan2013-06-251-1/+2
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: fix thread lockup issueAustin Yuan2013-06-251-4/+1
| | | | | Change-Id: I6065525f76796603856f5cebf0468f4a59c4b5b5 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: fix thread lockup issueAustin Yuan2013-06-251-4/+11
| | | | | Change-Id: I3e0f23b5301d8405297b4b88b27e9edccdab6063 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: fix idr_pic_id issue when encode multiple IDR framesAustin Yuan2013-06-251-3/+3
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: reset IDR poc to 0Elaine Wang2013-06-251-1/+1
| | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com>
* h264encode: dump reconstructed frame and calc PSNRAustin Yuan2013-06-254-123/+405
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: use frame height not the height from VAImage which may be wrongAustin Yuan2013-06-251-3/+3
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: correct negative POC after a new IDRAustin Yuan2013-06-251-4/+6
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: fix encode corruption issue with multiple IDR (-idr_period XX)Austin Yuan2013-06-251-18/+28
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* h264encode: add some commentsElaine Wang2013-06-251-11/+3
| | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com>
* h264encode: refine calculation logic of reference frame settingElaine Wang2013-06-251-137/+263
| | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com>
* h264encode: fix wrong print informationElaine Wang2013-06-251-5/+7
| | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com>
* AVCENC: Pass the H264 RefPicList0/1 by using slice_param instead of hacked ↵Zhao Yakui2013-06-241-0/+19
| | | | | | | DPB reference Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit 968a9bf006679ad8d752fa1ddcd4bb80fc8c5e51)
* Fix possible memory leakXiang, Haihao2013-06-192-3/+10
| | | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 0b07495fc24646b47952b8df7d4e6d2df2a0f72c)
* va.c: need to check the symbol before calling itAustin Yuan2013-06-191-1/+1
| | | | | | | This is to fix Klockwork critical issue Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 40e5e45edf97049137bca014575607b52d3bca78)
* va: fix vaErrorStr() to support new error codes.Gwenole Beauchesne2013-06-191-0/+6
| | | | (cherry picked from commit 7b5c35273dc0e8e0e86cf40cf2a398119a766397)
* va_x11: fix klockscan issue (details is bellow)Austin Yuan2013-06-191-1/+3
| | | | | | | | | | | | | | | File: va_x11.c Function: va_DisplayContextGetDriverName -> va_DRI2GetDriverName -> dri2_util.c:isDRI2Connected Line: 154 -> 84 -> dri2_util.c:184 Code: TRACEBACK va_x11.c:151: driver_name is NULL va_x11.c:154: 'driver_name' is passed to function 'va_DRI2GetDriverName'. dri2_util.c:84: 'driver_name' is passed to function 'isDRI2Connected'. dri2_util.c:184: 'driver_name' is explicitly dereferenced. Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com> (cherry picked from commit c87699f32c6c79905a2fd8675cd19f22e1f4b024)
* vatrace: print target_percentageAustin Yuan2013-06-191-0/+1
| | | | | | Change-Id: I220b2fa7ad6907ab0ebda3671baeeab7fa36cc00 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 82e7dc8280da22c88a28f0a4d429f28fd99f9ced)
* vatrace: trace coded buffer create/destroyAustin Yuan2013-06-193-2/+81
| | | | | | Change-Id: If0388cd5e2e141184d88ff5de5612d15e51e3d20 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 880c916092c6d68096c95e49405714d8a21f9322)
* vatrace: dump unknonw private misc parametersAustin Yuan2013-06-191-1/+2
| | | | | | Change-Id: I33bbed3a1d3f297297687197f623d6c08ee8eba9 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit df5bfb6c6f248c0bcf6f2f9a74e9ffba4b0acf15)
* vatrace: remove the delimiter of every elements dumpAustin Yuan2013-06-191-6/+0
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 132f22ae9b42b4657361c87b5c7d5b14a26a52a9)
* vatrace: refine the format of buf data dumpElaine Wang2013-06-191-3/+3
| | | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit 2292299fe00036eb6055a84846f63f36cbae27d9)
* vatrace: refine VAEncPackedHeaderParameterBufferType formatAustin Yuan2013-06-191-2/+6
| | | | | | Change-Id: I1794a9c09a88b61d7abce970d7cb9a8f101162c6 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 4853e4a3a6cc5218e032a19d729096862db82bc6)
* vatrace: print VAEncPackedHeaderParameterBufferTypeAustin Yuan2013-06-191-0/+28
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 82ffa4b5bfb6cf59e90eedadbdfe3efdaced35e0)
* libva: Add VABuffer dumping for JPEG parametersCheng Yao2013-06-191-5/+140
| | | | | | | | | | BZ: 98966 Dump VABuffer of JPEG parameters in libva Change-Id: I87450d92db402a4730e0c0433215c857bc5b494d Signed-off-by: Cheng Yao <yao.cheng@intel.com> (cherry picked from commit 40ffef8d1fcbbc709472dc1342d7e3e983ae5d96)
* vatrace: only print info of valid reference framesAustin Yuan2013-06-191-6/+10
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 67c489f323188df1370f8ba2d4063bc86153cce7)
* vatrace: dump flags of VAPictureH264Elaine Wang2013-06-191-15/+21
| | | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit e1d86f000749d5fdbd6e36b55260d3fae096e457)
* LIBVA_DRIVER_NAME still needs va_getDriverName to open DRM deviceFei Jiang2013-06-191-6/+12
| | | | | | | | | va_getDriverName is bypassed when LIBVA_DRIVER_NAME is set, but driver needs DRM device fd which is only opened in va_getDriverName Change-Id: I4fe11edf9d8c328806255d4c93313cf99655a91d Signed-off-by: Fei Jiang <fei.jiang@intel.com> (cherry picked from commit 04706eb13ae410b53b6b38150413d544b7fdb524)
* va_trace: refine the log formatElaine Wang2013-06-194-26/+36
| | | | | Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit 15a0fca64456d8c7de1f7aca2cb747c4929690cd)
* vatrace: print function name for vaMapBuffer trace with coded bufferAustin Yuan2013-06-191-7/+9
| | | | | | | | also fall into default va_TraceVABuffers if the buffer type falls into "default" Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit acbf7d0c4830763e7c3be0e71c9da972f1aea7a5)
* vatrace: buffer_type_to_string: add missing VABufferTypeAdrian Marius Negreanu2013-06-191-0/+8
| | | | | | | | | sync with VABufferType in va/va.h. Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com> (cherry picked from commit d5160173f9dd5a37c793518d1d483b09d278d90c) [Remove unsupported types on master] Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* va_parseConfig: still need to check env_valueAustin Yuan2013-06-191-1/+2
| | | | | | | | | 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> (cherry picked from commit 2e11d2273b2974a7d1959cbcaf8db5b8e9aedd9e)
* vatrace: fix build issueAustin Yuan2013-06-191-3/+3
| | | | | | Change-Id: I1727528df6aaf48209774bada5cf136cfa1e4ee3 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 1e0421f5ce01790e700940310aafb05e4c18d8f0)
* va_trace: dump basic_unit_size/rc_flags in RateControl data structAustin Yuan2013-06-191-0/+4
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 4a78cb4e4a2d0e5c9231c7f532d2a733cf3bfce3)
* vatrace: Fix encoded coded buffer dump functionElaine Wang2013-06-191-8/+7
| | | | | | | | | | 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 (cherry picked from commit 202385430f29b3d3d356d86888a0f3979986b4e7)
* vatrace: fix vatrace crash during video recordingElaine Wang2013-06-191-7/+12
| | | | | | | | | | | 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 (cherry picked from commit b5b1933f60dfec8cf2cff19082362accbe6fce1d)
* va_trace: allow surface trace to dump part of surface contentAustin Yuan2013-06-191-9/+44
| | | | | | | | | | | | | | | | | | | | 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> (cherry picked from commit 5190a7465756a41808a562c8eccec521dbf77d8c)
* va_trace_surface: dumpe surface content after vaEndPicture callAustin Yuan2013-06-192-21/+16
| | | | | | | | | | | 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> (cherry picked from commit 0af365de4c03c12fc20183093a944f7513a1c7be)
* Fix va_fool.c klocwork issueElaine Wang2013-06-191-1/+1
| | | | | | | | | | 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>
* klockwork: Fix libva klocwork scaning issuesElaine Wang2013-06-193-21/+26
| | | | | | | | Fix NULL pointer dereference risk issues and uninitialized variables Signed-off-by: Elaine Wang <elaine.wang@intel.com> Change-Id: I839a9def7b08c41c1f075e4cd1cc06e8bb0c8c9e
* tests: cope with new vaQuerySurfaceAttributes() API.Gwenole Beauchesne2013-06-071-36/+152
| | | | | | | | Also factor the code to check whether a specific image format or surface attribute exists. Cache the list of supported image formats and surface attributes. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
* test: add color conversion test option in putsurfaceZhao Halley2013-06-071-16/+217
| | | | | | | | | | | | | - 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