diff options
author | David Rosca <nowrep@gmail.com> | 2024-10-22 17:26:58 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2024-12-17 21:36:01 +0100 |
commit | bcfbf2bac8f9eeeedc407b40596f5c7aaa0d5b47 (patch) | |
tree | 542da92257ba4ee8e70a25abccd290f255f2162d /libavcodec/vaapi_encode.h | |
parent | 72a3656e8468a394373b6397aacc906d7f7794c2 (diff) | |
download | ffmpeg-bcfbf2bac8f9eeeedc407b40596f5c7aaa0d5b47.tar.gz |
lavc/vaapi_encode: Query surface alignment
It needs to create temporary config to query surface attribute.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/vaapi_encode.h')
-rw-r--r-- | libavcodec/vaapi_encode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode.h b/libavcodec/vaapi_encode.h index 40a3f4e064..8e3eab9f27 100644 --- a/libavcodec/vaapi_encode.h +++ b/libavcodec/vaapi_encode.h @@ -260,6 +260,10 @@ typedef struct VAAPIEncodeContext { * This is a RefStruct reference. */ VABufferID *coded_buffer_ref; + + // Surface alignment required by driver. + int surface_alignment_width; + int surface_alignment_height; } VAAPIEncodeContext; typedef struct VAAPIEncodeType { |