Lines Matching defs:width

276 convert_buffer_bgra_rgba(uint8* buffer, uint32 rows, uint32 width,
281 for (uint32 x = 0; x < width; x++) {
293 convert_buffer_argb_rgba(uint8* buffer, uint32 rows, uint32 width,
298 for (uint32 x = 0; x < width; x++) {
313 uint32 width, uint32 bytesPerRow)
318 for (uint32 x = 0; x < width; x++) {
327 outBuffer += width * 4;
334 uint32 width, uint32 bytesPerRow)
339 for (uint32 x = 0; x < width; x++) {
348 outBuffer += width * 4;
355 uint32 width, uint32 bytesPerRow, uint32 samplesPerPixel)
360 for (uint32 x = 0; x < width; x++) {
371 outBuffer += width * 3;
378 uint32 width, uint32 bytesPerRow, uint32 samplesPerPixel)
383 for (uint32 x = 0; x < width; x++) {
391 outBuffer += width * 3;
399 uint32 width, uint32 bytesPerRow)
401 // compensate for bytesPerRow != width (padding bytes)
402 // this function will not be called if bytesPerRow == width, btw
404 _TIFFmemcpy(outBuffer, inBuffer, width);
406 outBuffer += width;
412 convert_buffer(color_space format, uint8* buffer, uint32 rows, uint32 width,
417 convert_buffer_bgra_rgba(buffer, rows, width, bytesPerRow);
420 convert_buffer_argb_rgba(buffer, rows, width, bytesPerRow);
427 convert_buffers_bgrX_rgb(buffer, buffer, rows, width, bytesPerRow, 3);
444 uint32 rows, uint32 width, uint32 bytesPerRow)
448 convert_buffers_bgra_rgba(inBuffer, outBuffer, rows, width, bytesPerRow);
451 convert_buffers_argb_rgba(inBuffer, outBuffer, rows, width, bytesPerRow);
454 convert_buffers_bgrX_rgb(inBuffer, outBuffer, rows, width, bytesPerRow, 4);
457 convert_buffers_rgbX_rgb(inBuffer, outBuffer, rows, width, bytesPerRow, 4);
460 convert_buffers_bgrX_rgb(inBuffer, outBuffer, rows, width, bytesPerRow, 3);
463 convert_buffers_rgbX_rgb(inBuffer, outBuffer, rows, width, bytesPerRow, 3);
467 convert_buffers_cmap(inBuffer, outBuffer, rows, width, bytesPerRow);
482 uint32 width, uint32 height, uint32 bytesPerRow,
496 bytesPerStrip = width * 4 * rowsPerStrip;
504 bytesPerStrip = width * 3 * rowsPerStrip;
508 bytesPerStrip = width * rowsPerStrip;
537 rowsPerStrip, width, bytesPerRow);
552 read / bytesPerRow, width, bytesPerRow);
572 rowsPerStrip, width, bytesPerRow);
587 read / bytesPerRow, width, bytesPerRow);
666 uint32 width = bitsHeader.bounds.IntegerWidth() + 1;
671 TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, width);
729 width, height, bytesPerRow,
742 bytesPerStrip = width * 2 * rowsPerStrip;
765 width, height, bytesPerRow,
777 width, height, bytesPerRow,
786 bytesPerStrip = ((width + 7) / 8) * rowsPerStrip;
833 uint32 width = 0, height = 0;
834 if (!TIFFGetField(ptif, TIFFTAG_IMAGEWIDTH, &width)) {
843 npixels = width * height;
845 if (praster && TIFFReadRGBAImage(ptif, width, height, (TIFF_UINT32_TYPE*)praster, 0)) {
852 bitsHeader.bounds.right = width - 1;
854 bitsHeader.rowBytes = 4 * width;
868 uint8 *pbitsrow = new uint8[width * 4];
877 prgba = pras8 + ((height - (i + 1)) * width * 4);
879 for (uint32 k = 0; k < width; k++) {
888 outDestination->Write(pbitsrow, width * 4);
897 } // if (praster && TIFFReadRGBAImage(ptif, width, height, praster, 0))