Skip to content
Snippets Groups Projects
Commit 54ac6917 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for old image ftl files

parent e5264a82
Branches
Tags
No related merge requests found
Checking pipeline status
......@@ -36,9 +36,13 @@ bool OpenCVDecoder::decode(const ftl::codecs::Packet &pkt, cv::cuda::GpuMat &out
if (tmp2_.type() == CV_8UC3) {
cv::cvtColor(tmp2_, tmp_, cv::COLOR_RGB2BGRA);
} else {
if (pkt.flags & ftl::codecs::kFlagFlipRGB) {
cv::cvtColor(tmp2_, tmp_, cv::COLOR_RGBA2BGRA);
} else {
tmp_ = tmp2_;
}
}
// Apply colour correction to chunk
//ftl::rgbd::colourCorrection(tmp_rgb, gamma_, temperature_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment