Refactor to use pixel format helpers in VAAPI

This commit is contained in:
Cameron Gutman
2024-01-27 17:11:32 -06:00
parent 3b11bc86b0
commit 9a3553db04
3 changed files with 34 additions and 22 deletions

View File

@@ -316,7 +316,7 @@ namespace egl {
static std::optional<sws_t>
make(int in_width, int in_height, int out_width, int out_height, gl::tex_t &&tex);
static std::optional<sws_t>
make(int in_width, int in_height, int out_width, int out_height, GLint gl_tex_internal_fmt);
make(int in_width, int in_height, int out_width, int out_height, AVPixelFormat format);
// Convert the loaded image into the first two framebuffers
int