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
No related branches found
No related tags found
No related merge requests found
Pipeline #33720 passed
...@@ -37,7 +37,11 @@ bool OpenCVDecoder::decode(const ftl::codecs::Packet &pkt, cv::cuda::GpuMat &out ...@@ -37,7 +37,11 @@ bool OpenCVDecoder::decode(const ftl::codecs::Packet &pkt, cv::cuda::GpuMat &out
if (tmp2_.type() == CV_8UC3) { if (tmp2_.type() == CV_8UC3) {
cv::cvtColor(tmp2_, tmp_, cv::COLOR_RGB2BGRA); cv::cvtColor(tmp2_, tmp_, cv::COLOR_RGB2BGRA);
} else { } else {
tmp_ = tmp2_; if (pkt.flags & ftl::codecs::kFlagFlipRGB) {
cv::cvtColor(tmp2_, tmp_, cv::COLOR_RGBA2BGRA);
} else {
tmp_ = tmp2_;
}
} }
// Apply colour correction to chunk // Apply colour correction to chunk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment