summaryrefslogtreecommitdiff
path: root/va/va_trace.c
Commit message (Collapse)AuthorAgeFilesLines
* va/va_trace: Dump VP9 parameters for profile 1~3Haihao Xiang2019-09-121-0/+3
| | | | Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* trace: fix memory leak on closing the traceDmitry Rogozhkin2019-08-191-7/+0
| | | | | | | | | | | Fixes: #327 This removes redundunt check for the number of log files. The whole 'struct va_trace' is being calloc-d and we can just check that pointers to log files are valid instead of relying on number of active log files. Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
* Add missing argumentJiri Kucera2019-06-141-1/+1
|
* va_trace: hevc profiles addedIlya Sergeyev2019-06-031-0/+6
| | | | Signed-off-by: isergee <ilya.sergeev@intel.com>
* va/va_trace: add trace support for VAEncMiscParameterTypeSkipFrame structure.Decai Lin2019-05-091-0/+9
| | | | Signed-off-by: Decai Lin <decai.lin@intel.com>
* va/va_trace: add MPEG2 trace support for MiscParam and SequenceParamLinjie Fu2019-05-091-0/+27
| | | | | | | Add MPEG2 trace support for VAEncMiscParameterBufferType and VAEncSequenceParameterBufferType. Signed-off-by: Linjie Fu <linjie.fu@intel.com>
* add return value into logsintel2019-05-091-0/+11
| | | | | | only take effect when the call failed Signed-off-by: intel <carl.zhang@intel.com>
* va/va_trace: add trace support for VAEncMiscParameterEncQuality structure.Decai Lin2019-05-091-0/+41
| | | | Signed-off-by: Decai Lin <decai.lin@intel.com>
* va_trace: add missing <sys/time.h> includeRodger Combs2019-05-061-1/+1
| | | | Replaces <time.h>, which was unused
* va/va_trace: unbreak with C89 after b3694671c784Jan Beich2019-04-161-1/+2
| | | | | va/va_trace.c: In function 'va_TraceVAEncMiscParameterBuffer': va/va_trace.c:3281: error: 'for' loop initial declaration used outside C99 mode
* va/va_trace: add trace support for RIR(rolling intra refresh).Decai Lin2019-03-041-0/+12
| | | | Signed-off-by: Decai Lin <decai.lin@intel.com>
* va/va_trace: add trace support for ROI(region of interest).Decai Lin2019-03-041-0/+18
| | | | Signed-off-by: Decai Lin <decai.lin@intel.com>
* va/va_trace: add va_TraceSurface support for VA_FOURCC_P010Linjie Fu2018-12-261-3/+11
| | | | | | | | | Add va_TraceSurface support for VA_FOURCC_P010. Currently, va_TraceSurface could only support nv12. Add pixel_byte to indicate the bytes per pixel according to FOURCC. Signed-off-by: Linjie Fu <linjie.fu@intel.com>
* Fix compilation warning (uninit and wrong variable types) for Android O MR1Badiuzzaman Iskhandar2018-12-191-3/+3
| | | | Signed-off-by: Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@intel.com>
* compile: fix sign/unsign compare in va_trace.cXu Guangxin2018-12-101-1/+1
| | | | Change-Id: I8d38a37dc6a8a1bf190f206ce61f3b26e2f4e887
* Add max frame size parameters for multiple pass case in legacy modeWang, Chengwei C2018-09-201-0/+12
| | | | | | Add new data structure and parameter buffer type for max frame size parameters in multiple pass case. Signed-off-by: Wang, Chengwei C <chengwei.c.wang@intel.com>
* Add missing rate control parameters to trace output2.1.1.pre1-20180601Mark Thompson2018-05-141-1/+7
| | | | Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Remove executable mode from source filesMark Thompson2018-05-141-0/+0
| | | | | | | | va.h and va_dec_hevc.h were incorrectly marked as executable in commit d6fd111e. va_trace.c was incorrectly marked as executable in commit b65a3d9d. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* va_trace: Remove unused variableVictor Toso2018-01-171-1/+0
| | | | | | | | | | Leftover from recent commit 35d7d312d45f9fd42dd > va_trace.c:270:31: warning: unused variable 'pconfig_info' > struct trace_config_info *pconfig_info; > ^ Signed-off-by: Victor Toso <victortoso@redhat.com>
* Fix tracing index allocation issuepeng.chen2018-01-031-27/+34
| | | | | | Fixes #142 Signed-off-by: peng.chen <peng.c.chen@intel.com>
* trace: init mutex before attempting to lock itU. Artie Eoff2017-12-011-3/+3
| | | | | | | | | | | Call pthread_mutex_init before any calls to pthread_mutex_lock. va_TraceInit(...) calls start_tracing2log_file(...) which calls pthread_mutex_lock on the pva_trace->resource_mutex. Thus, we need to ensure the mutex is initialized properly via pthread_mutex_init before attempting to lock it. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* New VAAPI definition for multi-frame processing applicable for Encode, FEI ↵Artem Shaporenko2017-11-211-0/+59
| | | | | | Encode/ENC/Pre-ENC, and VPP in future. Signed-off-by: Artem Shaporenko artem.shaporenko@intel.com
* Fix segmentation fault in VA tracerXiang, Haihao2017-09-281-6/+8
| | | | | | | | 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>
* va: Use new va*Str() functionsKelly Ledford2017-09-271-36/+6
| | | | Signed-off-by: Kelly Ledford <kelly.ledford@intel.com>
* Fix deprecated warningXiang, Haihao2017-09-271-1/+0
| | | | | | enums marked as deprecated should not be used any more. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Add namespace prefix to globalsMark Thompson2017-09-271-22/+22
| | | | | | | 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>
* Deprecate H.264 baseline profile and FMO supportMark Thompson2017-09-271-3/+0
| | | | | | | This is not now and never will be supported by any hardware, nor is it supported by any current software. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* Make logging callbacks library-safeMark Thompson2017-09-271-12/+14
| | | | | | | | | | | | | | 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_trace: remove unused variablesVíctor Manuel Jáquez Leal2017-08-101-5/+2
| | | | | | | | Remove unused variables detected by clang-3.8 Fixes #89 Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
* va_trace: add quality_level trace logZhong Li2017-06-271-0/+8
| | | | Signed-off-by: Zhong Li <zhong.li@intel.com>
* va_trace: add traces for MB rate control/temporal layerJun Zhao2017-05-091-0/+2
| | | | | | | add trace information for mb_rate_control/temporal_id in VAEncMiscParameterRateControl Signed-off-by: Jun Zhao <jun.zhao@intel.com>
* Add the suffix_str back into the tracing file namepeng.chen2017-05-041-1/+1
| | | | Fix #44
* va_trace: add traces for vp9encoderDaniel Charles2016-08-081-0/+126
| | | | | | | | | | add trace information for VAEncPictureParameterBufferVP9 and VAEncSequenceParameterBufferVP9 also add the case for VAEncMiscParameterBufferType on va_TraceVP9Buf Signed-off-by: Daniel Charles <daniel.charles@intel.com>
* Properly terminate parsed environment values with '\0'.Tobias Stoeckmann2016-08-011-0/+2
| | | | | | | | | | | The function strncpy() does not guarantee to nul terminate the destination. In most cases, this cannot be triggered, but it is also used to parse user environment variables. These are allowed to be longer than 1023 characters, effectively resulting in an unterminated string. I've adjusted other places as well, because it won't hurt. https://bugs.freedesktop.org/show_bug.cgi?id=96677
* Fix the p->load_huffman_table[0] keep print first element in for loopLim Siew Hoon2016-07-221-1/+1
| | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
* Remove unused 'i' in va_TraceVAEncPackedHeaderParameterBufferTypeLim Siew Hoon2016-06-241-1/+0
| | | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* Remove unused 'trace_index' in va_TraceInitLim Siew Hoon2016-06-241-1/+0
| | | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* Remove unused 'j' in va_TraceVAPictureParameterBufferVP9.Lim Siew Hoon2016-06-241-1/+1
| | | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* Remove unused 'check_sum' and 'j' in va_TraceSurfaceLim Siew Hoon2016-06-241-2/+1
| | | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* Remove unused 'i' and 'buf_list' in va_TraceDestroyBufferLim Siew Hoon2016-06-241-3/+0
| | | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* fix check NULL issuespeng.chen2016-05-271-3/+16
| | | | | | | | | | v2: code clean up v1: initial Signed-off-by: peng.chen <peng.c.chen@intel.com>
* Fix missing parameter of vatrace DisplayAttribute printAustin Yuan2016-05-241-4/+5
| | | | | | | | | | [49270.199330] ==========va_TraceMaxNumDisplayAttributes [49270.199334] max_display_attributes = 6 [49270.199362] num_attributes = 5 [49270.199365] attr_list[-1429804448] = [49270.199367] typ = 0x00000000 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* trace: Cleanup some HEVC printsScott D Phillips2016-05-221-46/+62
| | | | | | | | Some fields in HEVC buffers had extraneous timestamps interspersed with the traced data. Signed-off-by: Scott D Phillips <scott.d.phillips@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* trace: Add `va_TracePrint`, `va_TraceVPrint` static functionsScott D Phillips2016-05-221-16/+34
| | | | | | | | These functions are similar to va_TraceMsg() but without emitting a timestamp. Signed-off-by: Scott D Phillips <scott.d.phillips@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
* add the support of multiple context tracingpeng.chen2016-05-131-217/+1043
| | | | | | | | | | | | | | | Libva has a limited tracing function before. If more than one context is created in one instance, then this tracing can't work and output wrong log messages. This patch fixes this problem. Tracing is possible while multiple contexts are being used. Each log file name is suffixed by thread id. This file has all log message from this thread. Each surface or codedbuf dump file name is suffixed by context id. This file has all surface or codedbuf data of this context. Signed-off-by: peng.chen <peng.c.chen@intel.com> Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com> Tested-by: Daniel Charles <daniel.charles@intel.com>
* vatrace: add IVF header for VP8 coded buffer dumpAustin Yuan2015-09-061-1/+60
| | | | Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
* va_trace.c : Fix VAIQMatrixBufferHEVC tracingTimo Rothenpieler2015-09-061-1/+1
|
* va_trace.c : Fixes incorrect hardcode printfs message.Lim Siew Hoon2015-07-171-3/+3
| | | | Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
* va_trace.c: add vp9 decoder trace infoXu Guangxin2015-07-141-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>