Fix defoveation for low scale values

The effective image size may be different from the size in description,
we have to only consider the useful size
This commit is contained in:
Patrick Nicolas committed 2025-09-09 19:00:08 +02:00
1 parent ccf430d26a
commit 3c08a3de2f
10 files changed
+31 -27

No files matched your search

+2 -1
View File
@@ -409,7 +409,8 @@ std::shared_ptr<decoder::mapped_hardware_buffer> decoder::map_hardware_buffer(AI
if (!*ycbcr_sampler || memcmp(&ahb_format, &format_properties, sizeof(format_properties)))
{
memcpy(&ahb_format, &format_properties, sizeof(format_properties));
extent = {buffer_desc.width, buffer_desc.height};
extent_ = {buffer_desc.width, buffer_desc.height};
spdlog::info("decoded image size: {}x{}", buffer_desc.width, buffer_desc.height);
create_sampler(buffer_desc, ahb_format);
hardware_buffer_map.clear();
// TODO tell the reprojector to recreate the pipeline