Captured frame issue on libdc1394
I am trying to code a framegrabber for a FireWire camera using libdc1394. The camera is initialized correctly, the video mode is set to supported DC1394_VIDEO_MODE_640x480_YUV422
, and the frame is captured without any errors.
The problem is that the returned frame is 640x480x1.5 bytes, which is actually YUV411 packing. The structure of the video clip also indicates that the video mode used was YUV411.
But the data is not really decoded with YUV411. Instead, YUV422 decoding produces the correct image, but the bottom area of ββthe image is missing, obviously due to the lack of frame data missing in the last bytes (YUV422 is 16 bits per pixel, YUV411 is 12 bits per pixel).
The camera is now IIDC v1.30 compatible and supports libdc1394. Only one video mode is supported (as specified in libdc1394) and the one used in the camera camera manual is used.
I haven't found my way around this issue by googling. Any hints?
a source to share