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

add MONO16 / GRAY16_LE support #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

julled
Copy link

@julled julled commented Dec 23, 2020

added support for MONO16/GRAY16_LE streams.

tested with a 12bit thermal camera (mapped to 16bit) on gstreamer1.0.

@@ -147,6 +152,11 @@ namespace gscam {
caps = gst_caps_new_simple( "video/x-raw-rgb", NULL,NULL);
} else if (image_encoding_ == sensor_msgs::image_encodings::MONO8) {
caps = gst_caps_new_simple("video/x-raw-gray", NULL, NULL);
} else if (image_encoding_ == sensor_msgs::image_encodings::MONO16) {
Copy link
Author

@julled julled Dec 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this stuff related to gst 0.1 is untested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant