roncordell
October 20, 2003, 02:53:10
I've got the 1394 FW FrameGrabber, and am setting it up to use RGB8 640x 480.
The steps I use are:
Instantiate the Grabber,
Set the video input channel,
Set the video norm (NTSC),
Set the vidoe Format (RGB8 640x480)
Allocate the MemBufferCollection
etc.
To allocate correctly sized buffers for the capture ring buffer collection, I use the method Grabber::getUserMemBufferSize. However, this is returning the value 921600 (640x480x3), when I expect 1/3 that size of 307200 (640x480x1).
Since I am specifying RGB, am I getting a larger buffer for three color planes? If so, is the image data the same for each color plane, or do the planes have to be added or normalized?
Thanks!
The steps I use are:
Instantiate the Grabber,
Set the video input channel,
Set the video norm (NTSC),
Set the vidoe Format (RGB8 640x480)
Allocate the MemBufferCollection
etc.
To allocate correctly sized buffers for the capture ring buffer collection, I use the method Grabber::getUserMemBufferSize. However, this is returning the value 921600 (640x480x3), when I expect 1/3 that size of 307200 (640x480x1).
Since I am specifying RGB, am I getting a larger buffer for three color planes? If so, is the image data the same for each color plane, or do the planes have to be added or normalized?
Thanks!