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_oh.h | |
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_oh.h')
-rw-r--r-- | libavutil/hwcontext_oh.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libavutil/hwcontext_oh.h b/libavutil/hwcontext_oh.h new file mode 100644 index 0000000000..2794f85b7d --- /dev/null +++ b/libavutil/hwcontext_oh.h @@ -0,0 +1,34 @@ +/* + * This file is part of FFmpeg. + * + * Copyright (c) 2025 Zhao Zhili <quinkblack@foxmail.com> + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVUTIL_HWCONTEXT_OH_H +#define AVUTIL_HWCONTEXT_OH_H + +/** + * OpenHarmony codec device + */ +typedef struct AVOHCodecDeviceContext { + /** + * Pointer to OHNativeWindow + */ + void *native_window; +} AVOHCodecDeviceContext; + +#endif /* AVUTIL_HWCONTEXT_OH_H */ |