jannebea
May 15, 2008, 09:42:38
Hello.
I've set up a Grabber, a FrameHandlerSink and a MemBufferCollection. I select the device using the Grabber::showDevicePage(), I now select RGB8 as the color format though this dialog.
When I 'ask' the grabber it says the color format is RGB8, but when I ask the frame I receive it says it's RGB32. Why is this? I use the DShowLib::getColorformatFromSubtype(videoFormatIte m.getColorformat()) for 'asking' the grabber about what color format is set. (the response is RGB8) I use pBuffer->getColorformat() on the incoming frame (pBuffer - coming from the GrabberListener::frameReady()) to find out what colorformat the frame got. (the response is RB32)
The info on RGB8 says that "Every pixel is represented by one byte". http://www.imagingcontrol.com/support/documentation/class/PixelformatRGB8.htm
Have I overlooked something, or am I doing something wrong?
I would greatly appreciate your help on this matter.
-Janne Beate
I've set up a Grabber, a FrameHandlerSink and a MemBufferCollection. I select the device using the Grabber::showDevicePage(), I now select RGB8 as the color format though this dialog.
When I 'ask' the grabber it says the color format is RGB8, but when I ask the frame I receive it says it's RGB32. Why is this? I use the DShowLib::getColorformatFromSubtype(videoFormatIte m.getColorformat()) for 'asking' the grabber about what color format is set. (the response is RGB8) I use pBuffer->getColorformat() on the incoming frame (pBuffer - coming from the GrabberListener::frameReady()) to find out what colorformat the frame got. (the response is RB32)
The info on RGB8 says that "Every pixel is represented by one byte". http://www.imagingcontrol.com/support/documentation/class/PixelformatRGB8.htm
Have I overlooked something, or am I doing something wrong?
I would greatly appreciate your help on this matter.
-Janne Beate