Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
var->blue.length = 8;
}
else if (var->bits_per_pixel == 16) {
- var->transp.offset = 0;
- var->transp.length = 0;
-
/* To find out the true mode, check green length */
switch (var->green.length) {
case 4:
var->green.length = 4;
var->blue.offset = 0;
var->blue.length = 4;
+ var->transp.offset = 12;
+ var->transp.length = 1;
break;
case 5:
var->red.offset = 10;
var->green.length = 5;
var->blue.offset = 0;
var->blue.length = 5;
+ var->transp.offset = 15;
+ var->transp.length = 1;
break;
default:
var->red.offset = 11;
var->green.length = 6;
var->blue.offset = 0;
var->blue.length = 5;
+ var->transp.offset = 0;
+ var->transp.length = 0;
break;
}
}