Hi.
Sorry if this sounds stupid, I don't do image/video a lot.
What should I expect the order of a/r/g/b components after *ToARGB() conversion?
I'm converting YUYV(YUY2) to ARGB. YUY2 comes from a webcam (v4l2 drivers),
and is advertised as YUYV.
When I draw the ARGB using GDK, which expects red, green, blue, padding bytes
(using gdk_draw_rgb_32_image() and I don't care about alpha), red and blue components
are clearly switched around. Same if I do ARGBToRGB24, and use gdk_draw_rgb_image,
which expects red, green and blue bytes.
Is there a good resource on understanding the order of components for these various
*RGB formats, and whether they are supposed to be treated as byte arrays, or wider
types, which would make host byte order matter.
Thank you.