Thread (11 messages) 11 messages, 4 authors, 2011-12-13

Re: [PATCH v4 0/3] fbdev: Add FOURCC-based format configuration API

From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: 2011-12-13 11:46:12
Also in: linux-media

Hi Geert,

On Tuesday 13 December 2011 11:47:02 Geert Uytterhoeven wrote:
On Tue, Dec 13, 2011 at 01:40, Laurent Pinchart wrote:
quoted
quoted
I think you also want to do something with red, green, blue, transp when
entering FOURCC mode, at least setting them to zero or maybe even
requiring that they are zero to enter FOURCC mode (as additional safety
barrier).
Agreed. The FOURCC mode documentation already requires those fields to be
set to 0 by applications.

I'll enforce this in fb_set_var() if info->fix has the FB_CAP_FOURCC
capability flag set.
So when info->fix has the FB_CAP_FOURCC capability flag set, you can no
longer enter legacy mode?
No, when info->fix has the FB_CAP_FOURCC capability, you can no longer enter 
legacy mode with grayscale > 1. You can still use grayscale = 0 and grayscale 
= 1 for legacy mode. The grayscale field should not have values greater than 1 
in legacy mode anyway, so that should be safe.

-- 
Regards,

Laurent Pinchart
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help