Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/kernels/
Dhashtable_lookup.cc115 const int row_bytes = value->bytes / num_rows; in Eval() local
132 memset(output->data.raw + i * row_bytes, 0, row_bytes); in Eval()
139 memcpy(output->data.raw + i * row_bytes, in Eval()
140 value->data.raw + idx * row_bytes, row_bytes); in Eval()
Dembedding_lookup.cc74 const int row_bytes = value->bytes / row_size; in EvalSimple() local
88 std::memcpy(output_raw + i * row_bytes, value_raw + idx * row_bytes, in EvalSimple()
89 row_bytes); in EvalSimple()
/external/tensorflow/tensorflow/core/lib/png/
Dpng_io.h80 bool CommonFinishDecode(png_bytep data, int row_bytes, DecodeContext* context);
99 const void* image, int width, int height, int row_bytes, int num_channels,
105 const void* image, int width, int height, int row_bytes, int num_channels,
109 const void* image, int width, int height, int row_bytes, int num_channels,
Dpng_io.cc309 bool CommonFinishDecode(png_bytep data, int row_bytes, DecodeContext* context) { in CommonFinishDecode() argument
322 for (int h = context->height; h-- != 0; row += row_bytes) { in CommonFinishDecode()
338 Convert8to16(absl::bit_cast<uint8*>(data), context->channels, row_bytes, in CommonFinishDecode()
340 row_bytes); in CommonFinishDecode()
346 const void* image, int width, int height, int row_bytes, int num_channels, in WriteImageToBuffer() argument
416 for (; height--; row += row_bytes) png_write_row(png_ptr, row); in WriteImageToBuffer()
424 const void* image, int width, int height, int row_bytes, int num_channels,
428 const void* image, int width, int height, int row_bytes, int num_channels,
/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/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/libpng/contrib/pngminus/
Dpnm2png.c171 volatile png_uint_32 row_bytes; in pnm2png() local
351 row_bytes = (width * channels * bit_depth + 7) / 8; in pnm2png()
357 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); in pnm2png()
360 if ((row_bytes == 0) || in pnm2png()
361 ((size_t) height > (size_t) (-1) / (size_t) row_bytes)) in pnm2png()
367 malloc ((size_t) row_bytes * (size_t) height)) == NULL) in pnm2png()
381 for (i = 0; i < (int) row_bytes; i++) in pnm2png()
495 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png()
Dpng2pnm.c172 png_uint_32 row_bytes; in png2pnm() local
290 row_bytes = png_get_rowbytes (png_ptr, info_ptr); in png2pnm()
292 if ((row_bytes == 0) || in png2pnm()
293 ((size_t) height > (size_t) (-1) / (size_t) row_bytes)) in png2pnm()
300 malloc ((size_t) row_bytes * (size_t) height)) == NULL) in png2pnm()
316 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm()
/external/libpng/
Dpngwutil.c2275 size_t row_bytes);
2280 size_t row_bytes, size_t lmins) in png_setup_sub_row() argument
2300 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row()
2319 size_t row_bytes) in png_setup_sub_row_only() argument
2332 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row_only()
2340 png_setup_up_row(png_structrp png_ptr, size_t row_bytes, size_t lmins) in png_setup_up_row() argument
2350 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row()
2367 png_setup_up_row_only(png_structrp png_ptr, size_t row_bytes) in png_setup_up_row_only() argument
2375 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row_only()
2384 size_t row_bytes, size_t lmins) in png_setup_avg_row() argument
[all …]
Dpngread.c1294 ptrdiff_t row_bytes; /* step between rows */ member
2975 ptrdiff_t step_row = display->row_bytes; in png_image_read_and_map()
3214 ptrdiff_t row_bytes = display->row_stride; in png_image_read_colormapped() local
3219 if (row_bytes < 0) in png_image_read_colormapped()
3222 ptr += (image->height-1) * (-row_bytes); in png_image_read_colormapped()
3227 display->row_bytes = row_bytes; in png_image_read_colormapped()
3245 png_alloc_size_t row_bytes = (png_alloc_size_t)display->row_bytes; in png_image_read_colormapped() local
3255 row += row_bytes; in png_image_read_colormapped()
3290 ptrdiff_t step_row = display->row_bytes; in png_image_read_composite()
3451 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 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.c4408 size_t row_bytes; in png_read_start_row() local
4588 row_bytes = ((png_ptr->width + 7) & ~((png_uint_32)7)); in png_read_start_row()
4592 row_bytes = PNG_ROWBYTES(max_pixel_depth, row_bytes) + in png_read_start_row()
4596 if (row_bytes > (png_uint_32)65536L) in png_read_start_row()
4600 if (row_bytes + 48 > png_ptr->old_big_row_buf_size) in png_read_start_row()
4607 row_bytes + 48); in png_read_start_row()
4610 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4612 png_ptr->big_prev_row = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4637 png_ptr->old_big_row_buf_size = row_bytes + 48; in png_read_start_row()
/external/pdfium/third_party/libpng16/
Dpngwutil.c2275 size_t row_bytes);
2280 size_t row_bytes, size_t lmins) in png_setup_sub_row() argument
2300 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row()
2319 size_t row_bytes) in png_setup_sub_row_only() argument
2332 for (lp = png_ptr->row_buf + 1; i < row_bytes; in png_setup_sub_row_only()
2340 png_setup_up_row(png_structrp png_ptr, size_t row_bytes, size_t lmins) in png_setup_up_row() argument
2350 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row()
2367 png_setup_up_row_only(png_structrp png_ptr, size_t row_bytes) in png_setup_up_row_only() argument
2375 pp = png_ptr->prev_row + 1; i < row_bytes; in png_setup_up_row_only()
2384 size_t row_bytes, size_t lmins) in png_setup_avg_row() argument
[all …]
Dpngread.c1294 ptrdiff_t row_bytes; /* step between rows */ member
2975 ptrdiff_t step_row = display->row_bytes; in png_image_read_and_map()
3214 ptrdiff_t row_bytes = display->row_stride; in png_image_read_colormapped() local
3219 if (row_bytes < 0) in png_image_read_colormapped()
3222 ptr += (image->height-1) * (-row_bytes); in png_image_read_colormapped()
3227 display->row_bytes = row_bytes; in png_image_read_colormapped()
3245 png_alloc_size_t row_bytes = (png_alloc_size_t)display->row_bytes; in png_image_read_colormapped() local
3255 row += row_bytes; in png_image_read_colormapped()
3290 ptrdiff_t step_row = display->row_bytes; in png_image_read_composite()
3451 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 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.c4408 size_t row_bytes; in png_read_start_row() local
4588 row_bytes = ((png_ptr->width + 7) & ~((png_uint_32)7)); in png_read_start_row()
4592 row_bytes = PNG_ROWBYTES(max_pixel_depth, row_bytes) + in png_read_start_row()
4596 if (row_bytes > (png_uint_32)65536L) in png_read_start_row()
4600 if (row_bytes + 48 > png_ptr->old_big_row_buf_size) in png_read_start_row()
4607 row_bytes + 48); in png_read_start_row()
4610 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4612 png_ptr->big_prev_row = (png_bytep)png_malloc(png_ptr, row_bytes + 48); in png_read_start_row()
4637 png_ptr->old_big_row_buf_size = row_bytes + 48; in png_read_start_row()
/external/ImageMagick/coders/
Dpict.c417 row_bytes, in DecodeImage() local
448 row_bytes=(size_t) (image->columns | 0x8000); in DecodeImage()
450 row_bytes=(size_t) ((4*image->columns) | 0x8000); in DecodeImage()
454 pixels=(unsigned char *) AcquireQuantumMemory(image->rows,row_bytes* in DecodeImage()
458 *extent=row_bytes*image->rows*sizeof(*pixels); in DecodeImage()
460 scanline=(unsigned char *) AcquireQuantumMemory(row_bytes,2* in DecodeImage()
467 (void) memset(scanline,0,2*row_bytes*sizeof(*scanline)); in DecodeImage()
508 if ((scanline_length >= row_bytes) || (scanline_length == 0)) in DecodeImage()
1701 row_bytes, in WritePICTImage() local
1745 row_bytes=image->columns; in WritePICTImage()
[all …]
/external/skia/gm/
Drasterhandleallocator.cpp203 size_t row_bytes = width * sizeof(SkPMColor); in Create() local
204 sk_bzero(pixels, row_bytes * height); in Create()
227 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/modules/desktop_capture/linux/
Dx_server_pixel_buffer.cc80 int row_bytes = rect.width() * DesktopFrame::kBytesPerPixel; in FastBlit() local
82 memcpy(dst_pos, src_pos, row_bytes); in FastBlit()
/external/mesa3d/src/glx/apple/
Dapple_glx_drawable.h134 int row_bytes; member
Dapple_glx_drawable.c290 d->row_bytes = 0; in common_init()

12