Lines Matching refs:rowbytes
21 expand_data(color_space from_space, unsigned char* in_data, int rowbytes,
32 while (rowbytes > 3) {
39 rowbytes -= 4;
43 memcpy(out_buf, in_data, rowbytes);
46 while (rowbytes > 2) {
53 rowbytes -= 3;
57 while (rowbytes > 1) {
65 rowbytes -= 2;
69 while (rowbytes > 1) {
77 rowbytes -= 2;
81 while (rowbytes > 1) {
89 rowbytes -= 2;
93 while (rowbytes > 3) {
100 rowbytes -= 4;
104 while (rowbytes > 3) {
111 rowbytes -= 4;
115 while (rowbytes > 2) {
122 rowbytes -= 3;
126 while (rowbytes > 1) {
134 rowbytes -= 2;
138 while (rowbytes > 1) {
146 rowbytes -= 2;
150 while (rowbytes > 1) {
158 rowbytes -= 2;
163 while (rowbytes > 0) {
171 rowbytes -= 1;
175 while (rowbytes > 0) {
183 rowbytes -= 1;
187 while (rowbytes > 0) { /* expansion 1->32 is pretty good :-) */
203 rowbytes -= 1;
208 while (rowbytes > 2) {
215 rowbytes -= 3;
219 while (rowbytes > 3) {
226 rowbytes -= 4;
230 while (rowbytes > 3) {
237 rowbytes -= 4;
242 while (rowbytes > 3) {
252 rowbytes -= 4;
513 unsigned char* in_data, int rowbytes, unsigned char* out_data)
528 printf("convert_space(%x, %x, %x)\n", in_space, out_space, rowbytes);
530 print_data(in_data, rowbytes);
534 memcpy(out_data, in_data, rowbytes);
540 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);
582 /* Figure out what the rowbytes is for a given width in a given color space.