Bug #1194
rsbvideosink element does not work properly with video/x-raw-rgb,bpp=24
Status: | Resolved | Start date: | 10/09/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | - | |||
Target version: | Robotics Service Bus - rsb-0.9 |
Description
For this configuration, the element produces incorrect rst.vision.Image
objects.
Associated revisions
Fixed video/x-rgb-raw handling in src/gst_rsb_video_sink.cpp
- src/gst_rsb_video_sink.cpp (gst_rsb_video_sink_sink_factory): for
video/x-raw-rgb, restrict bpp and depth to 24
(gst_rsb_video_sink_set_caps): for video/x-raw-rgb, default bpp to
24; depending on the pixel format check bpp value
Fixed channel mask fuckup in src/gst_rsb_video_{src,sink}.cpp
After the previous "fixes" (in 9e4cb9e and a6c82d3), the color
channels masks for bgr and rgb were reversed. To add insult to injury,
there was a programming error of confusing the = and operators.
refs #1182, refs #1194, refs #1204
- src/gst_rsb_video_src.cpp (gst_rsb_video_sink_set_caps): reversed
channel masks for rgb and bgr; added warning if channels masks are
missing, although this should not happen; fixed = vs. confusion - src/gst_rsb_video_sink.cpp (gst_rsb_video_src_set_format): similar
History
#1 Updated by Anonymous over 11 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset rsb-gstreamer|commit:9e4cb9e85d8ba53a135b2a4bed8206c99f724095.
#2 Updated by J. Wienke over 11 years ago
Can you port this back to 0.7 please