summaryrefslogtreecommitdiff
path: root/va/va_fool.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix compilation warning (uninit and wrong variable types) for Android O MR1Badiuzzaman Iskhandar2018-12-191-2/+2
| | | | Signed-off-by: Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@intel.com>
* va_fool: check fstat resultU. Artie Eoff2017-11-161-10/+20
| | | | | | | Check fstat return value for errors before attempting to use the result. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* Fix segmentation fault in VA tracerXiang, Haihao2017-09-281-10/+10
| | | | | | | | The first parameter of va_{error,info}Message is VADisplay This fixes https://github.com/01org/libva/issues/123 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Fix deprecated warningXiang, Haihao2017-09-271-2/+1
| | | | | | enums marked as deprecated should not be used any more. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Detect short reads when filling fool buffersMark Thompson2017-09-271-2/+8
| | | | | | | | Mainly to fix the warning (glibc marks read(2) with warn_unused_result). The function continues anyway when this happens (matching current behaviour when the file can't be opened at all). Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Add namespace prefix to globalsMark Thompson2017-09-271-12/+12
| | | | | | | Add "va_" prefix to trace_flag, fool_codec and fool_postp to avoid polluting the global namespace. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Make logging callbacks library-safeMark Thompson2017-09-271-6/+6
| | | | | | | | | | | | | | Move the logging callbacks into the display context, rather than having them as global state. Add user-context parameter as well so that users can distinguish between callbacks in different instances. The default behaviour does not change, and LIBVA_MESSAGING_LEVEL continues to be respected in that case. Since we're breaking API here, also rename vaMessageCallback to VAMessageCallback to be consistent with all other types. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Move declarations for internal functions to new headerMark Thompson2017-09-271-6/+1
| | | | | | The new header is internal-only and will not be installed. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* va: hide most private va_Trace* symbolsEmil Velikov2014-10-081-0/+1
| | | | | | | 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>
* vafool: fix the vaMapBuffer for the buffer from vaDeriveImageAustin Yuan2014-09-091-1/+11
| | | | | | | | 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)
* vafool: simplify VAFOOLAustin Yuan2014-09-091-35/+42
| | | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit ce00603a8d58f2e25c7a6bb312f60fda0833e042)
* vatrace/vafool: save the context data into display contextAustin Yuan2014-03-171-77/+67
| | | | | | | | | | | | | 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> (cherry picked from commit e1ab961b20583c6c54ad05e2fe6bab619462106f) Conflicts: va/va_trace.c
* 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-191-15/+15
| | | | | | | | Fix NULL pointer dereference risk issues and uninitialized variables Signed-off-by: Elaine Wang <elaine.wang@intel.com> Change-Id: I839a9def7b08c41c1f075e4cd1cc06e8bb0c8c9e
* vatrace/vafool: refine itAustin Yuan2011-09-221-389/+179
| | | | | | | | | remove va_fool_getframe.c which looks strange correct some coding style for file va.c simplify va_fool.c for both decode and encode refine the surface dump of va_trace.c Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
* va: fix warning about memset.Xiang, Haihao2011-06-241-1/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* 1. add interface VARenderDevice for output the video into an external ↵Austin Yuan2011-04-011-3/+3
| | | | | | | | | | | | device when the WM is not aware of it 2. add interface VARenderMode for APP to swith between overlay and GPU post-processing 3. add VADisplayAttribOverlayColorKey/VADisplayAttribOverlayAutoPaintColorKey which is simliar to Xv for overlay post-processing 4. fix the build issue on Android 2.3 Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com> Signed-off-by: Jason Hu <jason.hu@intel.com> Signed-off-by: Zhaohan Ren <zhaohan.ren@intel.com>
* 1) cleanup for VA_FOOLAustin Yuan2011-02-081-4/+20
| | | | | | | | | | 2) initial EGL support 3) libva.spec update for RPM build Signed-off-by: Guoliang Ji <guoliangx.ji@intel.com> Signed-off-by: Jason Hu <jason.hu@intel.com> Signed-off-by: Stephen Ware <stephen.e.ware@intel.com> Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
* Refine VA_FOOL, and delete the hard coded clip va_fool_264.hAustin Yuan2011-01-141-182/+198
| | | | | | | | | | | | | | Move test/vainfo into test/vainfo/* Add prototype of vaCreateSurfacesForUserPtr for V4L2 user pointer support Fix klocwork critical issues. Use strnlen and snprintf instead of strlen and sprintf. New interface vaQuerySrufaceError for decode error report and concealment Encode data structure change (long term reference picture interface) Add h264 constrained baseline profile support. Signed-off-by: Elaine Wang <elaine.wang@intel.com> Signed-off-by: Bignlin Chen <binglin.chen.wang@intel.com> Signed-off-by: Yan Zhuang <yanx.zhunag@intel.com> Signed-off-by: Guoliang Ji <guoliangx.ji@intel.com>
* Added the missing fileslibva-1.0.6Austin Yuan2010-10-281-0/+545