This commit is contained in:
Georg Hagen
2025-05-27 19:40:05 +02:00
parent f042c5f37a
commit bb65670f48
4 changed files with 14 additions and 8 deletions

View File

@@ -57,6 +57,7 @@ namespace OpenVulkano::AR::Playback
}
colorImgData.channels = ColorImg::RGBA; // TODO test if defaulting to NV12
colorImgData.Decode(Utils::ReadFile(imagePath));
SetColorImgInfo();
SetDepthImgInfo(dImage);
SetSaved();
}

View File

@@ -74,10 +74,15 @@ namespace OpenVulkano::AR::Playback
{
ColorImg img;
img.channels = ColorImg::RGBA; // TODO test if defaulting to NV12
ReadColorImage(img);
return img;
}
void ReadColorImage(ColorImg& img)
{
std::optional<std::pair<FileDescription, Array<char>>> file = ReadColorImageRaw();
img.Decode(file->second);
m_imgReadSize += 1000 + file.value().first.size;
return img;
}
std::optional<std::pair<FileDescription, Array<char>>> ReadColorImageRaw() { return m_archiveColor.GetNextFile(); }