[FFmpeg-devel] [PATCH] lavu/log: fix color for AV_CLASS_CATEGORY_HWDEVICE on non-Win32 (PR #20196)
nyanmisaka
code at ffmpeg.org
Sat Aug 9 16:04:21 EEST 2025
PR #20196 opened by nyanmisaka
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20196
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20196.patch
AV_CLASS_CATEGORY_HWDEVICE was introduced in the past but
no corresponding colors were added for non-Win32 platforms.
Fixes bf1579c ("avutil/log,hwcontext: Add AV_CLASS_CATEGORY_HWDEVICE")
Signed-off-by: nyanmisaka <nst799610810 at gmail.com>
Use orange/yellow here to match the colors used on Win32:
<img src="/attachments/61a13a17-de76-4eb1-af80-3e16b8f4acee" width="550">
From c7649b13107ca10c033d84b79b051a349bce8393 Mon Sep 17 00:00:00 2001
From: nyanmisaka <nst799610810 at gmail.com>
Date: Sat, 9 Aug 2025 20:39:15 +0800
Subject: [PATCH] lavu/log: fix color for AV_CLASS_CATEGORY_HWDEVICE on
non-Win32
AV_CLASS_CATEGORY_HWDEVICE was introduced in the past but
no corresponding colors were added for non-Win32 platforms.
Fixes bf1579c ("avutil/log,hwcontext: Add AV_CLASS_CATEGORY_HWDEVICE")
Signed-off-by: nyanmisaka <nst799610810 at gmail.com>
---
libavutil/log.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/log.c b/libavutil/log.c
index 2b721aea5a..af893dde17 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -114,6 +114,7 @@ static const uint32_t color[16 + AV_CLASS_CATEGORY_NB] = {
[16+AV_CLASS_CATEGORY_BITSTREAM_FILTER] = 192 << 8 | 0x14,
[16+AV_CLASS_CATEGORY_SWSCALER ] = 153 << 8 | 0x14,
[16+AV_CLASS_CATEGORY_SWRESAMPLER ] = 147 << 8 | 0x14,
+ [16+AV_CLASS_CATEGORY_HWDEVICE ] = 214 << 8 | 0x13,
[16+AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT ] = 213 << 8 | 0x15,
[16+AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT ] = 207 << 8 | 0x05,
[16+AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT ] = 213 << 8 | 0x15,
--
2.49.1
More information about the ffmpeg-devel
mailing list