Home
last modified time | relevance | path

Searched refs:row_bytes (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/
Dhashtable_lookup.cc109 const int row_bytes = value->bytes / num_rows; in Eval() local
126 memset(output->data.raw + i * row_bytes, 0, row_bytes); in Eval()
133 memcpy(output->data.raw + i * row_bytes, in Eval()
134 value->data.raw + idx * row_bytes, row_bytes); in Eval()
Dembedding_lookup.cc76 const int row_bytes = value->bytes / row_size; in EvalFloat() local
87 memcpy(output->data.raw + i * row_bytes, in EvalFloat()
88 value->data.raw + idx * row_bytes, row_bytes); in EvalFloat()
/external/skqp/tools/gdb/
Dbitmap.py57 row_bytes = pixmap['fRowBytes']
66 memory_data = process.read_memory(pixels, row_bytes * height)
73 "raw", "BGRA", row_bytes, 1)
77 "raw", "BGRa", row_bytes, 1)
/external/skia/tools/gdb/
Dbitmap.py57 row_bytes = pixmap['fRowBytes']
66 memory_data = process.read_memory(pixels, row_bytes * height)
73 "raw", "BGRA", row_bytes, 1)
77 "raw", "BGRa", row_bytes, 1)
/external/libpng/contrib/pngminus/
Dpnm2png.c211 volatile png_uint_32 row_bytes; in pnm2png() local
383 row_bytes = (width * channels * bit_depth + 7) / 8; in pnm2png()
387 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); in pnm2png()
389 if ((row_bytes == 0 || (size_t)height > ((size_t)(-1))/(size_t)row_bytes)) in pnm2png()
395 malloc ((size_t)row_bytes * (size_t)height * sizeof (png_byte))) == NULL) in pnm2png()
406 for (i = 0; i < (int) row_bytes; i++) in pnm2png()
510 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png()
Dpng2pnm.c215 png_uint_32 row_bytes; in png2pnm() local
334 row_bytes = png_get_rowbytes (png_ptr, info_ptr); in png2pnm()
336 if ((row_bytes == 0 || (size_t)height > ((size_t)(-1))/(size_t)row_bytes)) in png2pnm()
343 malloc ((size_t)row_bytes * (size_t)height * sizeof (png_byte))) == NULL) in png2pnm()
360 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm()
/external/pdfium/third_party/libpng16/
Dpngwutil.c2247 png_size_t row_bytes);
2252 const png_size_t row_bytes, const png_size_t lmins) in png_setup_sub_row() argument
2268 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row()
2283 const png_size_t row_bytes) in png_setup_sub_row_only() argument
2296 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row_only()
2304 png_setup_up_row(png_structrp png_ptr, const png_size_t row_bytes, in png_setup_up_row() argument
2315 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row()
2328 png_setup_up_row_only(png_structrp png_ptr, const png_size_t row_bytes) in png_setup_up_row_only() argument
2336 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row_only()
2345 const png_size_t row_bytes, const png_size_t lmins) in png_setup_avg_row() argument
[all …]
Dpngread.c1278 ptrdiff_t row_bytes; /* step between rows */ member
2955 ptrdiff_t step_row = display->row_bytes; in png_image_read_and_map()
3195 ptrdiff_t row_bytes = display->row_stride; in png_image_read_colormapped() local
3200 if (row_bytes < 0) in png_image_read_colormapped()
3203 ptr += (image->height-1) * (-row_bytes); in png_image_read_colormapped()
3208 display->row_bytes = row_bytes; in png_image_read_colormapped()
3226 png_alloc_size_t row_bytes = display->row_bytes; in png_image_read_colormapped() local
3236 row += row_bytes; in png_image_read_colormapped()
3271 ptrdiff_t step_row = display->row_bytes; in png_image_read_composite()
3432 ptrdiff_t step_row = display->row_bytes; in png_image_read_background()
[all …]
Dpngwrite.c1504 ptrdiff_t row_bytes; member
1613 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_16bit()
1738 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
1763 input_row += display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
2079 ptrdiff_t row_bytes = display->row_stride; in png_image_write_main() local
2082 row_bytes *= (sizeof (png_uint_16)); in png_image_write_main()
2084 if (row_bytes < 0) in png_image_write_main()
2085 row += (image->height-1) * (-row_bytes); in png_image_write_main()
2088 display->row_bytes = row_bytes; in png_image_write_main()
2136 ptrdiff_t row_bytes = display->row_bytes; in png_image_write_main() local
[all …]
Dpngwtran.c217 png_size_t row_bytes = row_info->rowbytes; in png_do_shift() local
228 for (i = 0; i < row_bytes; i++, bp++) in png_do_shift()
Dpngrutil.c4256 png_size_t row_bytes; in png_read_start_row() local
4436 row_bytes = ((png_ptr->width + 7) & ~((png_uint_32)7)); in png_read_start_row()
4440 row_bytes = PNG_ROWBYTES(max_pixel_depth, row_bytes) + in png_read_start_row()
4444 if (row_bytes > (png_uint_32)65536L) in png_read_start_row()
4448 if (row_bytes + 48 > png_ptr->old_big_row_buf_size) in png_read_start_row()
4455 row_bytes + 48); in png_read_start_row()
4458 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4460 png_ptr->big_prev_row = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4485 png_ptr->old_big_row_buf_size = row_bytes + 48; in png_read_start_row()
/external/libpng/
Dpngwutil.c2277 png_size_t row_bytes);
2282 const png_size_t row_bytes, const png_size_t lmins) in png_setup_sub_row() argument
2302 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row()
2321 const png_size_t row_bytes) in png_setup_sub_row_only() argument
2334 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row_only()
2342 png_setup_up_row(png_structrp png_ptr, const png_size_t row_bytes, in png_setup_up_row() argument
2353 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row()
2370 png_setup_up_row_only(png_structrp png_ptr, const png_size_t row_bytes) in png_setup_up_row_only() argument
2378 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row_only()
2387 const png_size_t row_bytes, const png_size_t lmins) in png_setup_avg_row() argument
[all …]
Dpngread.c1288 ptrdiff_t row_bytes; /* step between rows */ member
2969 ptrdiff_t step_row = display->row_bytes; in png_image_read_and_map()
3208 ptrdiff_t row_bytes = display->row_stride; in png_image_read_colormapped() local
3213 if (row_bytes < 0) in png_image_read_colormapped()
3216 ptr += (image->height-1) * (-row_bytes); in png_image_read_colormapped()
3221 display->row_bytes = row_bytes; in png_image_read_colormapped()
3239 png_alloc_size_t row_bytes = (png_alloc_size_t)display->row_bytes; in png_image_read_colormapped() local
3249 row += row_bytes; in png_image_read_colormapped()
3284 ptrdiff_t step_row = display->row_bytes; in png_image_read_composite()
3445 ptrdiff_t step_row = display->row_bytes; in png_image_read_background()
[all …]
Dpngwrite.c1515 ptrdiff_t row_bytes; member
1625 input_row += (png_uint_16)display->row_bytes/(sizeof (png_uint_16)); in png_write_image_16bit()
1751 input_row += (png_uint_16)display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
1776 input_row += (png_uint_16)display->row_bytes/(sizeof (png_uint_16)); in png_write_image_8bit()
2092 ptrdiff_t row_bytes = display->row_stride; in png_image_write_main() local
2095 row_bytes *= (sizeof (png_uint_16)); in png_image_write_main()
2097 if (row_bytes < 0) in png_image_write_main()
2098 row += (image->height-1) * (-row_bytes); in png_image_write_main()
2101 display->row_bytes = row_bytes; in png_image_write_main()
2149 ptrdiff_t row_bytes = display->row_bytes; in png_image_write_main() local
[all …]
Dpngwtran.c217 png_size_t row_bytes = row_info->rowbytes; in png_do_shift() local
228 for (i = 0; i < row_bytes; i++, bp++) in png_do_shift()
Dpngrutil.c4388 png_size_t row_bytes; in png_read_start_row() local
4568 row_bytes = ((png_ptr->width + 7) & ~((png_uint_32)7)); in png_read_start_row()
4572 row_bytes = PNG_ROWBYTES(max_pixel_depth, row_bytes) + in png_read_start_row()
4576 if (row_bytes > (png_uint_32)65536L) in png_read_start_row()
4580 if (row_bytes + 48 > png_ptr->old_big_row_buf_size) in png_read_start_row()
4587 row_bytes + 48); in png_read_start_row()
4590 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4592 png_ptr->big_prev_row = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4617 png_ptr->old_big_row_buf_size = row_bytes + 48; in png_read_start_row()
/external/tensorflow/tensorflow/core/lib/png/
Dpng_io.cc308 bool CommonFinishDecode(png_bytep data, int row_bytes, DecodeContext* context) { in CommonFinishDecode() argument
321 for (int h = context->height; h-- != 0; row += row_bytes) { in CommonFinishDecode()
337 Convert8to16(absl::bit_cast<uint8*>(data), context->channels, row_bytes, in CommonFinishDecode()
339 row_bytes); in CommonFinishDecode()
344 const void* image, int width, int height, int row_bytes, int num_channels, in WriteImageToBuffer() argument
414 for (; height--; row += row_bytes) png_write_row(png_ptr, row); in WriteImageToBuffer()
Dpng_io.h80 bool CommonFinishDecode(png_bytep data, int row_bytes, DecodeContext* context);
98 const void* image, int width, int height, int row_bytes, int num_channels,
/external/ImageMagick/coders/
Dpict.c419 row_bytes, in DecodeImage() local
449 row_bytes=(size_t) (image->columns | 0x8000); in DecodeImage()
451 row_bytes=(size_t) ((4*image->columns) | 0x8000); in DecodeImage()
455 pixels=(unsigned char *) AcquireQuantumMemory(image->rows,row_bytes* in DecodeImage()
459 *extent=row_bytes*image->rows*sizeof(*pixels); in DecodeImage()
461 scanline=(unsigned char *) AcquireQuantumMemory(row_bytes,2* in DecodeImage()
468 (void) memset(scanline,0,2*row_bytes*sizeof(*scanline)); in DecodeImage()
508 if ((scanline_length >= row_bytes) || (scanline_length == 0)) in DecodeImage()
1706 row_bytes, in WritePICTImage() local
1750 row_bytes=image->columns; in WritePICTImage()
[all …]
/external/honggfuzz/examples/libpng/
Dpersistent-png.c104 png_uint_32 row_bytes = png_get_rowbytes(png_ptr, info_ptr); in LLVMFuzzerTestOneInput() local
108 write(null_fd, row_pointers[i], row_bytes); in LLVMFuzzerTestOneInput()
/external/skia/samplecode/
DSampleBigGradient.cpp204 size_t row_bytes = width * sizeof(SkPMColor); in Create() local
205 sk_bzero(pixels, row_bytes * height); in Create()
218 rec->fRowBytes = row_bytes; in Create()
/external/skqp/samplecode/
DSampleBigGradient.cpp204 size_t row_bytes = width * sizeof(SkPMColor); in Create() local
205 sk_bzero(pixels, row_bytes * height); in Create()
218 rec->fRowBytes = row_bytes; in Create()
/external/libpng/contrib/tools/
Dpngfix.c1481 udigit row_width[2], row_bytes[3]; in calc_image_size() local
1492 digits = uarb_mult_digit(row_bytes, uarb_set(row_bytes, 7), in calc_image_size()
1494 digits = uarb_shift(row_bytes, digits, 3); in calc_image_size()
1495 digits = uarb_inc(row_bytes, digits, 1); in calc_image_size()
1500 row_bytes, digits, in calc_image_size()
1512 udigit row_width[2], row_bytes[3]; in calc_image_size() local
1515 digits = uarb_mult_digit(row_bytes, uarb_set(row_bytes, 7), in calc_image_size()
1517 digits = uarb_shift(row_bytes, digits, 3); in calc_image_size()
1518 digits = uarb_inc(row_bytes, digits, 1); in calc_image_size()
1522 row_bytes, digits, file->height); in calc_image_size()
/external/webrtc/webrtc/modules/desktop_capture/x11/
Dx_server_pixel_buffer.cc279 int row_bytes = rect.width() * DesktopFrame::kBytesPerPixel; in FastBlit() local
281 memcpy(dst_pos, src_pos, row_bytes); in FastBlit()
/external/mesa3d/src/glx/apple/
Dapple_glx_drawable.h134 int row_bytes; member

12