lavc/vaapi_encode: Query surface alignment

It needs to create temporary config to query surface attribute.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
David Rosca 2024-10-22 17:26:58 +02:00 committed by Timo Rothenpieler
parent 72a3656e84
commit bcfbf2bac8
2 changed files with 70 additions and 0 deletions

View file

@ -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 {