Lines Matching defs:in

6 Redistribution and use in source and binary forms, with or without
11 * Redistributions in binary form must reproduce the above copyright notice,
12 this list of conditions and the following disclaimer in the documentation and/or
153 convert_from_gray1_to_gray8(uint8* in, uint8* out, int32 inRowBytes)
158 unsigned char c = in[index++];
172 convert_from_gray1_to_24(uint8* in, uint8* out, int32 inRowBytes)
177 unsigned char c = in[index++];
193 convert_from_cmap8_to_24(uint8* in, uint8* out, int32 inRowBytes)
199 rgb_color color = map->color_list[in[index++]];
209 convert_from_15_to_24(uint8* in, uint8* out, int32 inRowBytes)
215 in_pixel = in[index] | (in[index + 1] << 8);
226 convert_from_15b_to_24(uint8* in, uint8* out, int32 inRowBytes)
232 in_pixel = in[index + 1] | (in[index] << 8);
243 convert_from_16_to_24(uint8* in, uint8* out, int32 inRowBytes)
249 in_pixel = in[index] | (in[index + 1] << 8);
260 convert_from_16b_to_24(uint8* in, uint8* out, int32 inRowBytes)
266 in_pixel = in[index + 1] | (in[index] << 8);
277 convert_from_24_to_24(uint8* in, uint8* out, int32 inRowBytes)
282 out[index2++] = in[index + 2];
283 out[index2++] = in[index + 1];
284 out[index2++] = in[index];
291 convert_from_32_to_24(uint8* in, uint8* out, int32 inRowBytes)
296 out[0] = in[2];
297 out[1] = in[1];
298 out[2] = in[0];
300 in += 4;
307 convert_from_32b_to_24(uint8* in, uint8* out, int32 inRowBytes)
312 out[0] = in[1];
313 out[1] = in[2];
314 out[2] = in[3];
316 in += 4;
326 convert_from_CMYK_to_32_photoshop(uint8* in, uint8* out, int32 inRowBytes, int32 xStep)
329 int32 black = in[3];
330 out[0] = in[2] * black / 255;
331 out[1] = in[1] * black / 255;
332 out[2] = in[0] * black / 255;
335 in += 4;
343 convert_from_CMYK_to_32(uint8* in, uint8* out, int32 inRowBytes, int32 xStep)
346 int32 black = 255 - in[3];
347 out[0] = ((255 - in[2]) * black) / 255;
348 out[1] = ((255 - in[1]) * black) / 255;
349 out[2] = ((255 - in[0]) * black) / 255;
352 in += 4;
360 convert_from_24_to_32(uint8* in, uint8* out, int32 inRowBytes, int32 xStep)
363 out[0] = in[2];
364 out[1] = in[1];
365 out[2] = in[0];
368 in += 3;
376 translate_8(uint8* in, uint8* out, int32 inRowBytes, int32 xStep)
379 out[0] = in[0];
381 in++;
745 // First 3 bytes in jpg files are always the same from what i've seen so far
765 // at all in an add-on. (?)
801 JPEGTranslator::Copy(BPositionIO* in, BPositionIO* out)
815 err = in->Read(buffer, to_read);
835 JPEGTranslator::Compress(BPositionIO* in, BPositionIO* out,
842 status_t err = in->Read(&header, sizeof(TranslatorBitmap));
991 // if not, turn on optimizing in libjpeg
1010 // Use libjpeg memory allocation functions, so in case of error it will free them itself
1017 // Use libjpeg memory allocation functions, so in case of error it will free them itself
1027 err = in->Read(in_scanline, in_row_bytes);
1048 JPEGTranslator::Decompress(BPositionIO* in, BPositionIO* out,
1058 be_jpeg_stdio_src(&cinfo, in);
1170 // Bytes count in one line of image (scanline)
1200 // Use libjpeg memory allocation functions, so in case of error it will free them itself
1207 // Use libjpeg memory allocation functions, so in case of error it will