For formats that include an alpha channel, the -a/--alpha command line argument can be used to specify an alpha value for the test pattern. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Use the new API by default, and automatically fall back to the legacy RGB API when the new API isn't supported. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
When using the fourcc-based formats API, the fb_var_screeninfo red, green, blue and transp fields are not valid anymore. Duplicate the information in the device structure and use it to compute test pattern colors in preparation of the fourcc-based formats API implementation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The line length field can change after changing the format or the resolution. Re-read fixed screen info from the device. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
The only currently supported test pattern is the SMPTE color bars. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>