diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2025-07-06 16:05:38 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2025-07-18 14:44:39 +0800 |
commit | fbda5ffb95382ed3b51a3577f9287c8eb548b0b7 (patch) | |
tree | cc1a58849100f2f194f74a4595dfcee66dc2e876 /libavutil/hwcontext.c | |
parent | 7b13d17b6d88190c49e887134bba6a43d716d50a (diff) | |
download | ffmpeg-fbda5ffb95382ed3b51a3577f9287c8eb548b0b7.tar.gz |
avutil/hwcontext: Add ohcodec device and pixel format
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavutil/hwcontext.c')
-rw-r--r-- | libavutil/hwcontext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index 3111a44651..83bd7457e8 100644 --- a/libavutil/hwcontext.c +++ b/libavutil/hwcontext.c @@ -69,6 +69,9 @@ static const HWContextType * const hw_table[] = { #if CONFIG_AMF &ff_hwcontext_type_amf, #endif +#if CONFIG_OHCODEC + &ff_hwcontext_type_oh, +#endif NULL, }; @@ -86,6 +89,7 @@ static const char *const hw_type_names[] = { [AV_HWDEVICE_TYPE_MEDIACODEC] = "mediacodec", [AV_HWDEVICE_TYPE_VULKAN] = "vulkan", [AV_HWDEVICE_TYPE_AMF] = "amf", + [AV_HWDEVICE_TYPE_OHCODEC] = "ohcodec", }; typedef struct FFHWDeviceContext { |