I have googled heavily trying to find the appropriate mediatype and sub
type for grayscale images. While I cannot find anything I would call
definitive, I cannot believe that this has not been done before. Since
there is no point in reinventing the wheel, I wonder if someone could
point me in the right direction. The formats that need to be supported
are:
grayscale 8bpp, one byte per pixel
grayscale 10bpp, two bytes per pixel, upper bits zero extended
grayscale 12bpp, two bytes per pixel, upper bits zero extended
(I can see the need for more bits in future cameras)
I assume the major media type would be MEDIATYPE_Video. But the
subtype??
I have seen a fourcc type Y800 (with apparent aliases Y8 and GRAY) that
could work for the 8bbp. Should that idea be extended for 10 and 12
bits (Y010 and Y012 perhaps) or would another approach be better? MS
seems to recommend creating new GUIDs which seems reasonable to me. I
am hoping that there is a convention already in use (there must be a
monochrome camera community out there using dshow right?) such that my
device can fit in with any renderers that happen to support the existing
formats.
Regards,
Tom Udale