[FFmpeg-devel] [PATCH v2 0/2] Improve HWDeviceContext logging

ffmpegagent ffmpegagent at gmail.com
Sat Mar 29 20:36:51 EET 2025


This changeset

 * adds an av class category for hw device contexts
 * assigns a color to it
 * adds an item_name function to the av class for hw device context


Before
======

[AVHWDeviceContext @ 00000260A9C63E00] Selecting d3d11va adapter 2
[AVHWDeviceContext @ 00000260A9C63E00] Using device 8086:4c8a (Intel(R) UH..
[AVHWDeviceContext @ 00000260A9BFFC40] Use Intel(R) Media SDK to create MF..
[AVHWDeviceContext @ 00000260A9BFFC40] Initialize MFX session: implementat..
[h264 @ 00000260AC0DC640] Reinit context to 1920x800, pix_fmt: yuv420p


After
=====

[D3D11VA @ 00000184942C25C0] Selecting d3d11va adapter 2 [D3D11VA @
00000184942C25C0] Using device 8086:4c8a (Intel(R) UHD Graphics.. [QSV @
00000184942601C0] Use Intel(R) Media SDK to create MFX session, API.. [QSV @
00000184942601C0] Initialize MFX session: implementation version is.. [h264
@ 00000184964BA9C0] Reinit context to 1920x800, pix_fmt: yuv420p

(..unable to show the terminal color change in plain text e-mail)


V2
==

 * Resolved merge conflicts
 * PING

softworkz (2):
  avutil/log,hwcontext: Add AV_CLASS_CATEGORY_HWDEVICE
  avutil/hwcontext: Add item_name function for AVHWDeviceContext

 doc/APIchanges        | 3 +++
 libavutil/hwcontext.c | 9 ++++++++-
 libavutil/log.c       | 1 +
 libavutil/log.h       | 1 +
 libavutil/version.h   | 2 +-
 5 files changed, 14 insertions(+), 2 deletions(-)


base-commit: 5fac8d062d2bfe74b8844dd2538137b087b985e5
Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-61%2Fsoftworkz%2Fsubmit_hwdevice_logging-v2
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-61/softworkz/submit_hwdevice_logging-v2
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/61

Range-diff vs v1:

 1:  6213faa209 ! 1:  3547fc2de7 avutil/log,hwcontext: Add AV_CLASS_CATEGORY_HWDEVICE
     @@ Commit message
          Signed-off-by: softworkz <softworkz at hotmail.com>
      
       ## doc/APIchanges ##
     -@@ doc/APIchanges: The last version increases of all libraries were on 2024-03-07
     +@@ doc/APIchanges: The last version increases of all libraries were on 2025-03-28
       
       API changes, most recent first:
       
     -+2025-03-12 - xxxxxxxxxx - lavu 59.60.100 - log.h
     ++2025-03-12 - xxxxxxxxxx - lavu 60.1.100 - log.h
      +  Add AV_CLASS_CATEGORY_HWDEVICE.
      +
     - 2025-03-10 - xxxxxxxxxx - lavu 59.59.100 - pixfmt.h
     -   Add AV_PIX_FMT_YAF16BE, AV_PIX_FMT_YAF16LE, AV_PIX_FMT_YAF32BE,
     -   and AV_PIX_FMT_YAF32LE.
     + 2025-03-17 - xxxxxxxxxx - lavu 59.60.100 - pixfmt.h
     +   Add AV_PIX_FMT_GBRAP32BE and AV_PIX_FMT_GBRAP32LE.
     + 
      
       ## libavutil/hwcontext.c ##
      @@ libavutil/hwcontext.c: enum AVHWDeviceType av_hwdevice_iterate_types(enum AVHWDeviceType prev)
     @@ libavutil/version.h
      @@
        */
       
     - #define LIBAVUTIL_VERSION_MAJOR  59
     --#define LIBAVUTIL_VERSION_MINOR  59
     -+#define LIBAVUTIL_VERSION_MINOR  60
     + #define LIBAVUTIL_VERSION_MAJOR  60
     +-#define LIBAVUTIL_VERSION_MINOR   0
     ++#define LIBAVUTIL_VERSION_MINOR   1
       #define LIBAVUTIL_VERSION_MICRO 100
       
       #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
 2:  92fe05ca35 = 2:  600d0e65a4 avutil/hwcontext: Add item_name function for AVHWDeviceContext

-- 
ffmpeg-codebot


More information about the ffmpeg-devel mailing list