It needs to create temporary config to query surface attribute.
Showing the changes to libavcodec/vaapi_encode.h (1 of 2 files). Show all
Unified · Split
| @@ -260,6 +260,10 @@ typedef struct VAAPIEncodeContext { · 259 unmodified lines | ||
| 260 | 260 | * This is a RefStruct reference. |
| 261 | 261 | */ |
| 262 | 262 | VABufferID *coded_buffer_ref; |
| 263 | + | |
| 264 | + // Surface alignment required by driver. | |
| 265 | + int surface_alignment_width; | |
| 266 | + int surface_alignment_height; | |
| 263 | 267 | } VAAPIEncodeContext; |
| 264 | 268 | |
| 265 | 269 | typedef struct VAAPIEncodeType { |