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

ffmpegagent ffmpegagent at gmail.com
Sat Apr 19 17:43:17 EEST 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


V3
==

TWO QUESTIONS BEFORE PUSHING:

 1. Adding an enum member without affecting the value of the last member
    (_NB)

=>Is that a MINOR or a MICRO version bump?

 2. The date in doc/APIchanges

=> Should I adjust it to the date when pushing or keep the date it had in
the submitted patchset?

Thanks, sw

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: ec3f3457fdfdf49b64e57c1e6c8cefd0603bc309
Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-61%2Fsoftworkz%2Fsubmit_hwdevice_logging-v3
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-61/softworkz/submit_hwdevice_logging-v3
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/61

Range-diff vs v2:

 1:  3547fc2de7 ! 1:  5d0366d826 avutil/log,hwcontext: Add AV_CLASS_CATEGORY_HWDEVICE
     @@ doc/APIchanges: The last version increases of all libraries were on 2025-03-28
       
       API changes, most recent first:
       
     -+2025-03-12 - xxxxxxxxxx - lavu 60.1.100 - log.h
     ++2025-03-12 - xxxxxxxxxx - lavu 60.2.100 - log.h
      +  Add AV_CLASS_CATEGORY_HWDEVICE.
      +
     - 2025-03-17 - xxxxxxxxxx - lavu 59.60.100 - pixfmt.h
     -   Add AV_PIX_FMT_GBRAP32BE and AV_PIX_FMT_GBRAP32LE.
     + 2025-04-16 - c818c67991 - libpostproc 59.1.100 - postprocess.h
     +   Deprecate PP_CPU_CAPS_3DNOW.
       
      
       ## libavutil/hwcontext.c ##
     @@ libavutil/version.h
        */
       
       #define LIBAVUTIL_VERSION_MAJOR  60
     --#define LIBAVUTIL_VERSION_MINOR   0
     -+#define LIBAVUTIL_VERSION_MINOR   1
     +-#define LIBAVUTIL_VERSION_MINOR   1
     ++#define LIBAVUTIL_VERSION_MINOR   2
       #define LIBAVUTIL_VERSION_MICRO 100
       
       #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
 2:  600d0e65a4 = 2:  a907d39ca2 avutil/hwcontext: Add item_name function for AVHWDeviceContext

-- 
ffmpeg-codebot


More information about the ffmpeg-devel mailing list