Lines Matching full:length

25 	if (var->bits_per_pixel == 16 && var->red.length == 8 &&  in var_to_pixfmt()
26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt()
36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt()
47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
61 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt()
62 if (var->transp.length == 0) { in var_to_pixfmt()
73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
74 var->green.length <= 8 && var->blue.length <= 8) { in var_to_pixfmt()
75 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in var_to_pixfmt()
103 var->red.offset = 11; var->red.length = 5; in pixfmt_to_var()
104 var->green.offset = 5; var->green.length = 6; in pixfmt_to_var()
105 var->blue.offset = 0; var->blue.length = 5; in pixfmt_to_var()
106 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
110 var->red.offset = 0; var->red.length = 5; in pixfmt_to_var()
111 var->green.offset = 5; var->green.length = 6; in pixfmt_to_var()
112 var->blue.offset = 11; var->blue.length = 5; in pixfmt_to_var()
113 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
117 var->red.offset = 16; var->red.length = 8; in pixfmt_to_var()
118 var->green.offset = 8; var->green.length = 8; in pixfmt_to_var()
119 var->blue.offset = 0; var->blue.length = 8; in pixfmt_to_var()
120 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
124 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
125 var->green.offset = 8; var->green.length = 8; in pixfmt_to_var()
126 var->blue.offset = 16; var->blue.length = 8; in pixfmt_to_var()
127 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
131 var->red.offset = 16; var->red.length = 8; in pixfmt_to_var()
132 var->green.offset = 8; var->green.length = 8; in pixfmt_to_var()
133 var->blue.offset = 0; var->blue.length = 8; in pixfmt_to_var()
134 var->transp.offset = 24; var->transp.length = 8; in pixfmt_to_var()
138 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
139 var->green.offset = 8; var->green.length = 8; in pixfmt_to_var()
140 var->blue.offset = 16; var->blue.length = 8; in pixfmt_to_var()
141 var->transp.offset = 24; var->transp.length = 8; in pixfmt_to_var()
145 var->red.offset = 16; var->red.length = 8; in pixfmt_to_var()
146 var->green.offset = 8; var->green.length = 8; in pixfmt_to_var()
147 var->blue.offset = 0; var->blue.length = 8; in pixfmt_to_var()
148 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
152 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
153 var->green.offset = 8; var->green.length = 8; in pixfmt_to_var()
154 var->blue.offset = 16; var->blue.length = 8; in pixfmt_to_var()
155 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
159 var->red.offset = 4; var->red.length = 8; in pixfmt_to_var()
160 var->green.offset = 2; var->green.length = 2; in pixfmt_to_var()
161 var->blue.offset = 0; var->blue.length = 2; in pixfmt_to_var()
162 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
166 var->red.offset = 4; var->red.length = 8; in pixfmt_to_var()
167 var->green.offset = 0; var->green.length = 2; in pixfmt_to_var()
168 var->blue.offset = 2; var->blue.length = 2; in pixfmt_to_var()
169 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
173 var->red.offset = 8; var->red.length = 8; in pixfmt_to_var()
174 var->green.offset = 4; var->green.length = 4; in pixfmt_to_var()
175 var->blue.offset = 0; var->blue.length = 4; in pixfmt_to_var()
176 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
180 var->red.offset = 8; var->red.length = 8; in pixfmt_to_var()
181 var->green.offset = 0; var->green.length = 4; in pixfmt_to_var()
182 var->blue.offset = 4; var->blue.length = 4; in pixfmt_to_var()
183 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
187 var->red.offset = 8; var->red.length = 16; in pixfmt_to_var()
188 var->green.offset = 4; var->green.length = 16; in pixfmt_to_var()
189 var->blue.offset = 0; var->blue.length = 16; in pixfmt_to_var()
190 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
194 var->red.offset = 8; var->red.length = 16; in pixfmt_to_var()
195 var->green.offset = 0; var->green.length = 16; in pixfmt_to_var()
196 var->blue.offset = 4; var->blue.length = 16; in pixfmt_to_var()
197 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
201 var->red.offset = 0; var->red.length = 16; in pixfmt_to_var()
202 var->green.offset = 4; var->green.length = 16; in pixfmt_to_var()
203 var->blue.offset = 8; var->blue.length = 16; in pixfmt_to_var()
204 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
208 var->red.offset = 0; var->red.length = 8; in pixfmt_to_var()
209 var->green.offset = 0; var->green.length = 8; in pixfmt_to_var()
210 var->blue.offset = 0; var->blue.length = 8; in pixfmt_to_var()
211 var->transp.offset = 0; var->transp.length = 0; in pixfmt_to_var()
299 return ((chan & 0xffff) >> (16 - bf->length)) << bf->offset; in chan_to_field()