Home
last modified time | relevance | path

Searched refs:rowbytes (Results 1 – 25 of 2467) sorted by relevance

12345678910>>...99

/dports/graphics/R-cran-jpeg/jpeg/src/
H A Dwrite.c183 int rowbytes = width * outpl; in write_jpeg() local
205 if (a != 255) flat_rows[y * rowbytes + x] = ABLEND(flat_rows[y * rowbytes + x], a, R_RED(bg)); in write_jpeg()
212 … flat_rows[y * rowbytes + x * 3] = ABLEND(flat_rows[y * rowbytes + x * 3] , a, R_RED(bg)); in write_jpeg()
213 … flat_rows[y * rowbytes + x * 3 + 1] = ABLEND(flat_rows[y * rowbytes + x * 3 + 1], a, R_GREEN(bg)); in write_jpeg()
214 … flat_rows[y * rowbytes + x * 3 + 2] = ABLEND(flat_rows[y * rowbytes + x * 3 + 2], a, R_BLUE(bg)); in write_jpeg()
224 for (x = 0; x < rowbytes; idata++) { in write_jpeg()
232 for (x = 0; x < rowbytes; idata++) { in write_jpeg()
233 flat_rows[y * rowbytes + x++] = R_RED(*idata); in write_jpeg()
240 for (x = 0; x < rowbytes; idata++) in write_jpeg()
245 for (x = 0; x < rowbytes; idata++) in write_jpeg()
[all …]
/dports/games/tenebrae/tenebrae_0/
H A Ddraw.c31 int rowbytes; member
312 dest += vid.rowbytes; in Draw_Pic()
328 pusdest += vid.rowbytes >> 1; in Draw_Pic()
366 dest += vid.rowbytes; in Draw_TransPic()
393 dest += vid.rowbytes; in Draw_TransPic()
415 pusdest += vid.rowbytes >> 1; in Draw_TransPic()
453 dest += vid.rowbytes; in Draw_TransPicTranslate()
480 dest += vid.rowbytes; in Draw_TransPicTranslate()
502 pusdest += vid.rowbytes >> 1; in Draw_TransPicTranslate()
667 psrc += rowbytes; in R_DrawRect8()
[all …]
/dports/games/libretro-tyrquake/tyrquake-e76477d/common/
H A Ddraw.c47 int rowbytes; member
351 dest += vid.rowbytes; in Draw_Pic()
365 pusdest += vid.rowbytes / 2; in Draw_Pic()
396 dest += vid.rowbytes; in Draw_SubPic()
410 pusdest += vid.rowbytes / 2; in Draw_SubPic()
445 dest += vid.rowbytes; in Draw_TransPic()
468 dest += vid.rowbytes; in Draw_TransPic()
520 dest += vid.rowbytes; in Draw_TransPicTranslate()
543 dest += vid.rowbytes; in Draw_TransPicTranslate()
727 psrc += rowbytes; in R_DrawRect8()
[all …]
/dports/games/uhexen2/hexen2source-1.5.9/engine/h2shared/
H A Ddraw.c34 int rowbytes; member
754 dest += vid.rowbytes; in Draw_Pic()
829 dest += vid.rowbytes; in Draw_PicCropped()
840 dest += vid.rowbytes; in Draw_PicCropped()
850 dest += vid.rowbytes; in Draw_PicCropped()
903 dest += vid.rowbytes; in Draw_TransPic()
930 dest += vid.rowbytes; in Draw_TransPic()
1016 dest += vid.rowbytes; in Draw_SubPicCropped()
1027 dest += vid.rowbytes; in Draw_SubPicCropped()
1284 dest += vid.rowbytes; in Draw_SubPic()
[all …]
/dports/print/tex-dvipdfmx/texlive-20150521-source/texk/dvipdfm-x/
H A Dbmpimage.c207 int rowbytes, n; in bmp_include_image() local
217 padding = (rowbytes % 4) ? 4 - (rowbytes % 4) : 0; in bmp_include_image()
218 dib_rowbytes = rowbytes + padding; in bmp_include_image()
221 p = stream_data_ptr + n * rowbytes; in bmp_include_image()
362 int h, v, rowbytes; in read_raster_rle8() local
366 rowbytes = width; in read_raster_rle8()
367 memset(data_ptr, 0, rowbytes*height); in read_raster_rle8()
375 p = data_ptr + v * rowbytes + h; in read_raster_rle8()
442 int h, v, rowbytes; in read_raster_rle4() local
446 rowbytes = (width + 1) / 2; in read_raster_rle4()
[all …]
/dports/games/exult/exult-snapshot-v1.7.0.20211128/shapes/
H A Dpngio.cc138 rowbytes = png_get_rowbytes(png, info); in Import_png8()
139 auto *image = new png_byte[height * rowbytes]; in Import_png8()
147 unsigned char *endptr = pixels + height * rowbytes; in Import_png8()
180 int rowbytes, // # bytes/row. (Should be in Export_png8() argument
242 auto *tbuf = new unsigned char[rowbytes]; in Export_png8()
243 for (int i = 0; i < rowbytes; i++) in Export_png8()
331 rowbytes = png_get_rowbytes(png, info); in Import_png32()
332 auto *image = new png_byte[height * rowbytes]; in Import_png32()
337 stride = -rowbytes; in Import_png32()
338 rowptr += (height - 1) * rowbytes; in Import_png32()
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/converter/other/pnmtopalm/
H A Dpnmtopalm.c511 if (rowbytes > USHRT_MAX) in writeCommonHeader()
513 pm_writebigshort(stdout, rowbytes); in writeCommonHeader()
919 for (pos = 0; pos < rowbytes; ++pos) in copyRowToBuffer()
941 for (pos = 0; pos < rowbytes; pos += 8) { in scanlineCompressAndBufferRow()
989 while (pos < rowbytes) { in rleCompressAndBufferRow()
1069 unsigned int const rowbytes, in bufferRow() argument
1122 MALLOCARRAY_NOFAIL(rowdata, rowbytes); in bufferRaster()
1124 MALLOCARRAY_NOFAIL(lastrow, rowbytes); in bufferRaster()
1129 rowdata[rowbytes - 1] = rowdata[rowbytes - 2] = 0x00; in bufferRaster()
1139 memcpy(lastrow, rowdata, rowbytes); in bufferRaster()
[all …]
/dports/emulators/mgba/mgba-0.9.2/src/third-party/libpng/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
172 rowbytes*height) { in readpng_get_image()
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/libs/libpng-src/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
172 rowbytes*height) { in readpng_get_image()
/dports/graphics/optipng/optipng-0.7.7/src/libpng/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
172 rowbytes*height) { in readpng_get_image()
/dports/games/libretro-mgba/mgba-6186d45/src/third-party/libpng/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
172 rowbytes*height) { in readpng_get_image()
/dports/graphics/png/libpng-1.6.37/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
160 if (height > ((size_t)(-1))/rowbytes) { in readpng_get_image()
165 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
171 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
172 rowbytes*height) { in readpng_get_image()
/dports/graphics/swfmill/swfmill-0.3.6/src/swft/
H A Dswft_import_png.cpp120 unsigned long w, h, rowbytes; in swft_import_png() local
133 data = readpng_get_image( 2.2, &channels, &rowbytes, &palette, &n_pal ); in swft_import_png()
136 fprintf(stderr,"Importing PNG: '%s' (%lu bit/pixel)\n", filename, (rowbytes*8)/w ); in swft_import_png()
139 if( channels == 4 && rowbytes == (4*w) ) { in swft_import_png()
153 } else if( channels == 3 && rowbytes == (3*w) ) { in swft_import_png()
164 } else if( channels == 1 && rowbytes == w ) { in swft_import_png()
167 int bpr = rowbytes; in swft_import_png()
168 bpr += (rowbytes % 4) ? 4 - (rowbytes % 4) : 0; in swft_import_png()
197 memcpy( dst, src, rowbytes ); in swft_import_png()
199 src += rowbytes; in swft_import_png()
[all …]
/dports/games/quakeforge/quakeforge-0.7.2/libs/video/renderer/sw32/
H A Dsw32_graph.c73 byte *dest = (byte *) vid.buffer + vid.rowbytes * y + x; in sw32_R_LineGraph()
74 for (i = 0; i < h; i++, dest -= vid.rowbytes * 2) in sw32_R_LineGraph()
81 (vid.rowbytes >> 1) * y + x; in sw32_R_LineGraph()
83 for (i = 0; i < h; i++, dest -= vid.rowbytes) in sw32_R_LineGraph()
90 (vid.rowbytes >> 2) * y + x; in sw32_R_LineGraph()
92 for (i = 0; i < h; i++, dest -= (vid.rowbytes >> 1)) in sw32_R_LineGraph()
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/platform/libretro/deps/libpng/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/emulators/mgba/mgba-0.9.2/src/third-party/libpng/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/libs/libpng-src/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/graphics/optipng/optipng-0.7.7/src/libpng/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/multimedia/opentoonz/opentoonz-1.5.0/thirdparty/libpng-1.6.21/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/games/libretro-mgba/mgba-6186d45/src/third-party/libpng/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/graphics/png/libpng-1.6.37/contrib/libtests/
H A Dmakepng.c340 if (offset < rowbytes && (bit_depth < 16 || offset+1 < rowbytes)) in set_value()
410 assert(y == 0 && rowbytes == 1 && size_max == 1); in generate_row()
416 assert(y == 0 && rowbytes == 1 && size_max == 3); in generate_row()
479 assert(rowbytes == 512 && size_max == 255); in generate_row()
506 while (rowbytes > 0) in generate_row()
511 row[rowbytes] = 0xFFU & pixel_index; in generate_row()
516 rowbytes - pixel_index * pixel_depth; in generate_row()
518 row[rowbytes] = in generate_row()
563 set_value(row, rowbytes, 2*x, bit_depth, in generate_row()
656 memset(row, 0, rowbytes); in generate_row()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/platform/libretro/deps/libpng/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
161 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
166 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
167 rowbytes*height) { in readpng_get_image()
/dports/multimedia/opentoonz/opentoonz-1.5.0/thirdparty/libpng-1.6.21/contrib/gregbook/
H A Dreadppm.c145 ulg rowbytes; in readpng_get_image() local
154 *pRowbytes = rowbytes = channels*width; in readpng_get_image()
157 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { in readpng_get_image()
161 Trace((stderr, "readpng_get_image: rowbytes = %ld, height = %ld\n", rowbytes, height)); in readpng_get_image()
166 if (fread(image_data, 1L, rowbytes*height, saved_infile) < in readpng_get_image()
167 rowbytes*height) { in readpng_get_image()
/dports/databases/p5-Protocol-CassandraCQL/Protocol-CassandraCQL-0.11/lib/Protocol/CassandraCQL/
H A DResult.pm62 $self->{rowbytes} = [];
66 my @rowbytes = map { $frame->unpack_bytes } 1 .. $n_columns;
69 push @{$self->{rows}}, [ $self->decode_data( @rowbytes ) ];
72 push @{$self->{rowbytes}}, \@rowbytes;
152 } @{ delete $self->{rowbytes} } ];
164 return scalar @{ $self->{rows} // $self->{rowbytes} };
/dports/graphics/xv/xv-3.10a/tiff/
H A Dtif_fax4.c51 _TIFFmemcpy(sp->refline, buf, sp->rowbytes); in Fax4Decode()
52 buf += sp->rowbytes; in Fax4Decode()
53 occ -= sp->rowbytes; in Fax4Decode()
71 _TIFFmemcpy(sp->refline, bp, sp->rowbytes); in Fax4Encode()
72 bp += sp->rowbytes; in Fax4Encode()
73 cc -= sp->rowbytes; in Fax4Encode()

12345678910>>...99