Fix playback reader progress being wrong
This commit is contained in:
@@ -35,6 +35,8 @@ namespace OpenVulkano::AR::Playback
|
||||
|
||||
//YuvUtils::NV12FromChromaPlanes(buff, img.data + (img.cols * img.rows), img.cols * img.rows / 4);
|
||||
|
||||
m_imgReadSize += 1000 + file.value().first.size;
|
||||
|
||||
return img;
|
||||
}
|
||||
}
|
||||
@@ -53,6 +55,7 @@ namespace OpenVulkano::AR::Playback
|
||||
stbi_load_from_memory(reinterpret_cast<stbi_uc*>(file->second.Data()), file->second.Size(), &img.cols, &img.rows, &img.channels, 3),
|
||||
&stbi_image_free);
|
||||
img.data = img.dataPtr.get();
|
||||
m_imgReadSize += 1000 + file.value().first.size;
|
||||
return img;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user