Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageManipV2 add GRAY8 to NV12 conversion #1224

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/Depthai/DepthaiDeviceRVC4Config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set(DEPTHAI_DEVICE_RVC4_MATURITY "snapshot")

# "version if applicable"
# set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+93f7b75a885aa32f44c5e9f53b74470c49d2b1af")
set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+5d1371967432dd4cf1742b56afbf4c669417bcfd")
set(DEPTHAI_DEVICE_RVC4_VERSION "0.0.1+78ff040f04e86bc77b1618c87a931d645f7aa109")
8 changes: 6 additions & 2 deletions include/depthai/utility/ImageManipV2Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,12 @@ bool ColorChange<ImageManipBuffer, ImageManipData>::colorConvertToNV12(
done = true;
break;
}
case ImgFrame::Type::RAW8:
case ImgFrame::Type::GRAY8:
std::copy(src, src + inputSize, outputFrame.data());
memset(outputFrame.data() + dstSpecs.p2Offset, 128, dstSpecs.p2Stride * dstSpecs.height / 2);
done = true;
break;
case ImgFrame::Type::YUV422i:
case ImgFrame::Type::YUV444p:
case ImgFrame::Type::YUV422p:
Expand All @@ -1567,7 +1573,6 @@ bool ColorChange<ImageManipBuffer, ImageManipData>::colorConvertToNV12(
case ImgFrame::Type::RAW14:
case ImgFrame::Type::RAW12:
case ImgFrame::Type::RAW10:
case ImgFrame::Type::RAW8:
case ImgFrame::Type::PACK10:
case ImgFrame::Type::PACK12:
case ImgFrame::Type::YUV444i:
Expand All @@ -1578,7 +1583,6 @@ bool ColorChange<ImageManipBuffer, ImageManipData>::colorConvertToNV12(
case ImgFrame::Type::BGRF16F16F16p:
case ImgFrame::Type::RGBF16F16F16i:
case ImgFrame::Type::BGRF16F16F16i:
case ImgFrame::Type::GRAY8:
case ImgFrame::Type::GRAYF16:
case ImgFrame::Type::RAW32:
case ImgFrame::Type::NONE:
Expand Down
Loading