Lines Matching refs:rowbytes
30 int rowbytes,
40 while (rowbytes > 3) {
47 rowbytes -= 4;
51 memcpy(out_buf, in_data, rowbytes);
54 while (rowbytes > 2) {
61 rowbytes -= 3;
65 while (rowbytes > 1) {
73 rowbytes -= 2;
77 while (rowbytes > 1) {
85 rowbytes -= 2;
89 while (rowbytes > 1) {
97 rowbytes -= 2;
101 while (rowbytes > 3) {
108 rowbytes -= 4;
112 while (rowbytes > 3) {
119 rowbytes -= 4;
123 while (rowbytes > 2) {
130 rowbytes -= 3;
134 while (rowbytes > 1) {
142 rowbytes -= 2;
146 while (rowbytes > 1) {
154 rowbytes -= 2;
158 while (rowbytes > 1) {
166 rowbytes -= 2;
171 while (rowbytes > 0) {
179 rowbytes -= 1;
183 while (rowbytes > 0) {
191 rowbytes -= 1;
195 while (rowbytes > 0) { /* expansion 1->32 is pretty good :-) */
212 rowbytes -= 1;
216 while (rowbytes > 2) {
223 rowbytes -= 3;
227 while (rowbytes > 3) {
234 rowbytes -= 4;
238 while (rowbytes > 3) {
245 rowbytes -= 4;
249 while (rowbytes > 3) {
259 rowbytes -= 4;
517 int rowbytes,
530 printf("convert_space(%x, %x, %x)\n", in_space, out_space, rowbytes);
532 print_data(in_data, rowbytes);
536 memcpy(out_data, in_data, rowbytes);
541 n = collapse_data(in_data, rowbytes, out_space, out_data);
550 n = expand_data(in_space, in_data, rowbytes, out_data);
562 unsigned char * buf = (unsigned char *)malloc(rowbytes*mul);
567 n = expand_data(in_space, in_data, rowbytes, buf);
583 /* Figure out what the rowbytes is for a given width in a given color space. */