Add support for VYUY and YVYU formats

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Truncate existing files when writing frames to memory

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>