Omit single copy of frame with VAAPI if possible

This commit is contained in:
Loki
2021-08-26 23:59:32 +02:00
parent b59df48dde
commit 00de30d336
5 changed files with 42 additions and 39 deletions

View File

@@ -265,7 +265,7 @@ public:
int convert(nv12_t &nv12);
void load_ram(platf::img_t &img);
void load_vram(cursor_t &img, int offset_x, int offset_y, int framebuffer);
void load_vram(cursor_t &img, int offset_x, int offset_y, int texture);
void set_colorspace(std::uint32_t colorspace, std::uint32_t color_range);
@@ -284,6 +284,9 @@ public:
int in_width, in_height;
int offsetX, offsetY;
// Pointer to the texture to be converted to nv12
int loaded_texture;
// Store latest cursor for load_vram
std::uint64_t serial;
};