aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext.c
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2025-07-06 16:05:38 +0800
committerZhao Zhili <zhilizhao@tencent.com>2025-07-18 14:44:39 +0800
commitfbda5ffb95382ed3b51a3577f9287c8eb548b0b7 (patch)
treecc1a58849100f2f194f74a4595dfcee66dc2e876 /libavutil/hwcontext.c
parent7b13d17b6d88190c49e887134bba6a43d716d50a (diff)
downloadffmpeg-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.c4
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 {