summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-27libva 1.2.1Xiang, Haihao2-2/+6
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-06-27dummy_drv_video: add back VA_DRIVER_INIT_FUNC definition for __vaDriverInit_*()Vincent Bernat1-0/+5
Since commit ca1798e77b6fa99dbb010f202a057f75415afd52, dummy driver was defining VA_DRIVER_INIT_FUNC symbol instead of __vaDriverInit_0_33 and therefore cannot be used for testing anymore. We restore the definition of this symbol in configure.ac. Signed-off-by: Vincent Bernat <bernat@luffy.cx>
2013-06-27tests: rename mpeg2enc to mpeg2vaencXiang, Haihao2-4/+4
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>
2013-06-25New version for developmentXiang, Haihao1-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-06-25libva 1.2.0Xiang, Haihao1-1/+1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-06-25NEWS: updatesXiang, Haihao1-2/+15
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-06-25Remove the dummy driver dependency on X11Zhao Yakui1-2/+2
Otherwise when x11 is disabled, it can't be compiled correctly. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-06-25Remove the EGL dependency on X11Zhao Yakui1-2/+2
Otherwise when x11 is disabled, it can't be compiled correctly. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-06-25h264encode: fix mmap out of memmory issueAustin Yuan1-80/+61
Change-Id: I9d7047d5ac66efefb31509f3ee52a9db28aada23 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: add more cmdline optionsAustin Yuan1-8/+34
Change-Id: Ia0326c2649dcf6dfbce275539cb8f4221fa37501 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: fix ftell overflow issue when open large source YUV filesAustin Yuan1-4/+13
Change-Id: I30190d4e28bd643f00808a15846e50e8fca28764 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: coding 1920x1080 with cropAustin Yuan1-9/+54
Change-Id: I4ba61943c9f2d246deb4bcb69a4781680f63b046 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: print correct number of RefPicList0/1Austin Yuan1-1/+2
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: fix thread lockup issueAustin Yuan1-4/+1
Change-Id: I6065525f76796603856f5cebf0468f4a59c4b5b5 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: fix thread lockup issueAustin Yuan1-4/+11
Change-Id: I3e0f23b5301d8405297b4b88b27e9edccdab6063 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: fix idr_pic_id issue when encode multiple IDR framesAustin Yuan1-3/+3
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: reset IDR poc to 0Elaine Wang1-1/+1
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
2013-06-25h264encode: dump reconstructed frame and calc PSNRAustin Yuan4-123/+405
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: use frame height not the height from VAImage which may be wrongAustin Yuan1-3/+3
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: correct negative POC after a new IDRAustin Yuan1-4/+6
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: fix encode corruption issue with multiple IDR (-idr_period XX)Austin Yuan1-18/+28
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
2013-06-25h264encode: add some commentsElaine Wang1-11/+3
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
2013-06-25h264encode: refine calculation logic of reference frame settingElaine Wang1-137/+263
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
2013-06-25h264encode: fix wrong print informationElaine Wang1-5/+7
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
2013-06-24AVCENC: Pass the H264 RefPicList0/1 by using slice_param instead of hacked ↵Zhao Yakui1-0/+19
DPB reference Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> (cherry picked from commit 968a9bf006679ad8d752fa1ddcd4bb80fc8c5e51)
2013-06-19Fix possible memory leakXiang, Haihao2-3/+10
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 0b07495fc24646b47952b8df7d4e6d2df2a0f72c)
2013-06-19va.c: need to check the symbol before calling itAustin Yuan1-1/+1
This is to fix Klockwork critical issue Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 40e5e45edf97049137bca014575607b52d3bca78)
2013-06-19va: fix vaErrorStr() to support new error codes.Gwenole Beauchesne1-0/+6
(cherry picked from commit 7b5c35273dc0e8e0e86cf40cf2a398119a766397)
2013-06-19va_x11: fix klockscan issue (details is bellow)Austin Yuan1-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)
2013-06-19vatrace: print target_percentageAustin Yuan1-0/+1
Change-Id: I220b2fa7ad6907ab0ebda3671baeeab7fa36cc00 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 82e7dc8280da22c88a28f0a4d429f28fd99f9ced)
2013-06-19vatrace: trace coded buffer create/destroyAustin Yuan3-2/+81
Change-Id: If0388cd5e2e141184d88ff5de5612d15e51e3d20 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 880c916092c6d68096c95e49405714d8a21f9322)
2013-06-19vatrace: dump unknonw private misc parametersAustin Yuan1-1/+2
Change-Id: I33bbed3a1d3f297297687197f623d6c08ee8eba9 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit df5bfb6c6f248c0bcf6f2f9a74e9ffba4b0acf15)
2013-06-19vatrace: remove the delimiter of every elements dumpAustin Yuan1-6/+0
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 132f22ae9b42b4657361c87b5c7d5b14a26a52a9)
2013-06-19vatrace: refine the format of buf data dumpElaine Wang1-3/+3
Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit 2292299fe00036eb6055a84846f63f36cbae27d9)
2013-06-19vatrace: refine VAEncPackedHeaderParameterBufferType formatAustin Yuan1-2/+6
Change-Id: I1794a9c09a88b61d7abce970d7cb9a8f101162c6 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 4853e4a3a6cc5218e032a19d729096862db82bc6)
2013-06-19vatrace: print VAEncPackedHeaderParameterBufferTypeAustin Yuan1-0/+28
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 82ffa4b5bfb6cf59e90eedadbdfe3efdaced35e0)
2013-06-19libva: Add VABuffer dumping for JPEG parametersCheng Yao1-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)
2013-06-19vatrace: only print info of valid reference framesAustin Yuan1-6/+10
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 67c489f323188df1370f8ba2d4063bc86153cce7)
2013-06-19vatrace: dump flags of VAPictureH264Elaine Wang1-15/+21
Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit e1d86f000749d5fdbd6e36b55260d3fae096e457)
2013-06-19LIBVA_DRIVER_NAME still needs va_getDriverName to open DRM deviceFei Jiang1-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)
2013-06-19va_trace: refine the log formatElaine Wang4-26/+36
Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit 15a0fca64456d8c7de1f7aca2cb747c4929690cd)
2013-06-19vatrace: print function name for vaMapBuffer trace with coded bufferAustin Yuan1-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)
2013-06-19vatrace: buffer_type_to_string: add missing VABufferTypeAdrian Marius Negreanu1-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>
2013-06-19va_parseConfig: still need to check env_valueAustin Yuan1-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)
2013-06-19vatrace: fix build issueAustin Yuan1-3/+3
Change-Id: I1727528df6aaf48209774bada5cf136cfa1e4ee3 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 1e0421f5ce01790e700940310aafb05e4c18d8f0)
2013-06-19va_trace: dump basic_unit_size/rc_flags in RateControl data structAustin Yuan1-0/+4
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 4a78cb4e4a2d0e5c9231c7f532d2a733cf3bfce3)
2013-06-19vatrace: Fix encoded coded buffer dump functionElaine Wang1-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)
2013-06-19vatrace: fix vatrace crash during video recordingElaine Wang1-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)
2013-06-19va_trace: allow surface trace to dump part of surface contentAustin Yuan1-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)
2013-06-19va_trace_surface: dumpe surface content after vaEndPicture callAustin Yuan2-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)