Bugfixes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user