Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

directshow with greyscale images

173 views
Skip to first unread message

HaseNummer7

unread,
May 15, 2003, 3:17:12 AM5/15/03
to
Hello Group,

I want to use a directshow pipeline to process greyscale (single band)
images. The DirectShow documentation (DXSDK) describes only image
formats for color images (like MEDIASUBTYPE_RGB24) to be used in
IMediaSamples. Is there a possibility to use greyscale data or is
there a predefined video subtype.

thanks a lot in advance

The March Hare (MVP)

unread,
May 15, 2003, 10:34:38 AM5/15/03
to
I don't see one in the regular header files. IIRC, the Microsoft MPEG-1
decoder filter has a SetGrayscale method. If you have a grayscale MPEG-1
video stream, you could use it and then query its media type.


Marc Cymontkowski

unread,
May 18, 2003, 8:03:38 AM5/18/03
to
HaseN...@gmx.de (HaseNummer7) wrote in news:c9522e65.0305142317.1fdda197
@posting.google.com:

Hi, there are two mediatypes that you can use to process greyscale images.

1) Use MEDIASUBTYPE_RGB8 and initialize the color table with grey values,
use this method to process your images by existing filters

2) Use the FourCC (www.fourcc.org) type Y800 and create your own filters to
process the stream

We are using the RGB8 type and it works fine.


Best regards

Marc Cymontkowski
www.montivision.com

0 new messages