Home
last modified time | relevance | path

Searched refs:row_pointers (Results 1 – 25 of 37) sorted by relevance

12

/external/libpng/contrib/gregbook/
Dreadpng.c212 png_bytepp row_pointers = NULL; in readpng_get_image() local
221 free(row_pointers); in readpng_get_image()
222 row_pointers = NULL; in readpng_get_image()
277 if ((row_pointers = (png_bytepp)malloc(height*sizeof(png_bytep))) == NULL) { in readpng_get_image()
291 row_pointers[i] = image_data + i*rowbytes; in readpng_get_image()
296 png_read_image(png_ptr, row_pointers); in readpng_get_image()
302 free(row_pointers); in readpng_get_image()
303 row_pointers = NULL; in readpng_get_image()
Dwpng.c181 wpng_info.row_pointers = NULL; in main()
720 wpng_info.row_pointers = (uch **)malloc(wpng_info.height*sizeof(uch *)); in main()
721 if (wpng_info.image_data == NULL || wpng_info.row_pointers == NULL) { in main()
728 wpng_info.row_pointers[i] = wpng_info.image_data + i*rowbytes; in main()
836 if (wpng_info.row_pointers) {
837 free(wpng_info.row_pointers);
838 wpng_info.row_pointers = NULL;
Dreadpng2.h92 uch **row_pointers; member
Drpng2-win.c665 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_win_init()
666 if (!rpng2_info.row_pointers) { in rpng2_win_init()
674 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_win_init()
1209 if (rpng2_info.row_pointers) {
1210 free(rpng2_info.row_pointers);
1211 rpng2_info.row_pointers = NULL;
Dwritepng.h100 uch **row_pointers; member
Drpng2-x.c798 rpng2_info.row_pointers = (uch **)malloc(rpng2_info.height * sizeof(uch *)); in rpng2_x_init()
799 if (!rpng2_info.row_pointers) { in rpng2_x_init()
807 rpng2_info.row_pointers[i] = rpng2_info.image_data + i*rowbytes; in rpng2_x_init()
1510 src = rpng2_info.row_pointers[row]; in rpng2_x_display_row()
1783 src = rpng2_info.row_pointers[row]; in rpng2_x_redisplay_image()
2102 if (rpng2_info.row_pointers) { in rpng2_x_cleanup()
2103 free(rpng2_info.row_pointers); in rpng2_x_cleanup()
2104 rpng2_info.row_pointers = NULL; in rpng2_x_cleanup()
Dwritepng.c279 png_write_image(png_ptr, mainprog_ptr->row_pointers); in writepng_encode_image()
Dreadpng2.c418 png_progressive_combine_row(png_ptr, mainprog_ptr->row_pointers[row_num], in readpng2_row_callback()
/external/tensorflow/tensorflow/core/kernels/sparse/
Dsparse_matrix.h148 const Tensor& row_pointers, in CreateCSRSparseMatrix() argument
152 *matrix = CSRSparseMatrix(dtype, dense_shape, batch_pointers, row_pointers, in CreateCSRSparseMatrix()
275 inline Tensor& row_pointers() { in row_pointers() function
280 inline const Tensor& row_pointers() const { in row_pointers() function
345 Tensor row_pointers(p.tensors_[2]); in Decode()
351 row_pointers, col_indices, values); in Decode()
358 row_pointers_ = std::move(row_pointers); in Decode()
390 TF_RETURN_IF_ERROR(copy(from.row_pointers(), &to_row_ptr)); in DeviceCopy()
401 const Tensor& batch_pointers, const Tensor& row_pointers, in CSRSparseMatrix() argument
406 row_pointers_(row_pointers),
[all …]
Dconj_op.cc57 a.row_pointers(), a.col_indices(), b_values_t, b)); in operator ()()
79 a.row_pointers(), a.col_indices(), a.values(), b)); \
Dsparse_matrix_components_op.cc66 c->set_output(0, csr_sparse_matrix->row_pointers()); in Compute()
91 /*input*/ csr_sparse_matrix->row_pointers().vec<int32>(), in Compute()
Dsoftmax_op.cc72 logits_matrix->batch_pointers(), logits_matrix->row_pointers(), in Compute()
180 softmax_matrix->row_pointers(), softmax_matrix->col_indices(), in Compute()
Dcsr_sparse_matrix_to_sparse_tensor_op.cc94 auto csr_row_ptr = csr_sparse_matrix->row_pointers().vec<int32>(); in Compute()
167 auto csr_row_ptr = csr_sparse_matrix->row_pointers().vec<int32>(); in Compute()
Dcsr_sparse_matrix_to_dense_op.cc77 auto row_ptr = csr_sparse_matrix->row_pointers().vec<int32>(); in Compute()
161 auto csr_row_ptr = csr_sparse_matrix->row_pointers().vec<int32>(); in Compute()
Dkernels_gpu.cu.cc295 a.row_pointers(), a.col_indices(), c_values_t, c)); in CSRSparseMatrixBatchMulVecImpl()
424 auto row_ptr = logits.row_pointers().vec<int32>(); in CSRSparseMatrixSoftmaxGPUImpl()
613 auto softmax_row_ptr = softmax.row_pointers().vec<int32>(); in CSRSparseMatrixSoftmaxGradGPUImpl()
617 auto grad_softmax_row_ptr = grad_softmax.row_pointers().vec<int32>(); in CSRSparseMatrixSoftmaxGradGPUImpl()
Dmul_op.cc136 a.row_pointers(), a.col_indices(), c_values_t, c)); in Compute()
/external/libpng/
Dexample.c538 png_bytep row_pointers[height];
540 row_pointers[row] = NULL; /* Clear the pointer array */
542 row_pointers[row] = png_malloc(png_ptr, png_get_rowbytes(png_ptr,
547 png_read_image(png_ptr, row_pointers);
555 png_read_rows(png_ptr, &row_pointers[y], NULL, 1);
561 png_read_rows(png_ptr, &row_pointers[y], NULL,
564 png_read_rows(png_ptr, NULL, &row_pointers[y],
966 png_bytep row_pointers[height];
973 row_pointers[k] = image + k * width * bytes_per_pixel;
978 png_write_image(png_ptr, row_pointers);
[all …]
Dpnginfo.h263 png_bytepp row_pointers; /* the image bits */ member
Dpngset.c1547 png_bytepp row_pointers) in png_set_rows() argument
1554 if (info_ptr->row_pointers != NULL && in png_set_rows()
1555 (info_ptr->row_pointers != row_pointers)) in png_set_rows()
1558 info_ptr->row_pointers = row_pointers; in png_set_rows()
1560 if (row_pointers != NULL) in png_set_rows()
/external/libpng/contrib/pngminus/
Dpng2pnm.c170 png_byte **row_pointers = NULL; in png2pnm() local
306 if ((row_pointers = (png_byte **) in png2pnm()
316 row_pointers[i] = png_pixels + i * row_bytes; in png2pnm()
319 png_read_image (png_ptr, row_pointers); in png2pnm()
420 if (row_pointers != NULL) in png2pnm()
421 free (row_pointers); in png2pnm()
Dpnm2png.c169 png_byte **row_pointers = NULL; in pnm2png() local
482 if (row_pointers == NULL) in pnm2png()
484 if ((row_pointers = (png_byte **) in pnm2png()
495 row_pointers[i] = png_pixels + i * row_bytes; in pnm2png()
498 png_write_image (png_ptr, row_pointers); in pnm2png()
506 if (row_pointers != NULL) in pnm2png()
507 free (row_pointers); in pnm2png()
/external/deqp/framework/common/
DtcuImageIO.cpp124 std::vector<png_bytep> row_pointers; in loadPNG() local
125 row_pointers.resize(height); in loadPNG()
127 row_pointers[y] = (deUint8*)dst.getAccess().getDataPtr() + y*dst.getAccess().getRowPitch(); in loadPNG()
129 png_read_image(png_ptr, &row_pointers[0]); in loadPNG()
/external/pdfium/third_party/libpng16/
Dpnginfo.h263 png_bytepp row_pointers; /* the image bits */ member
Dpngset.c1547 png_bytepp row_pointers) in png_set_rows() argument
1554 if (info_ptr->row_pointers != NULL && in png_set_rows()
1555 (info_ptr->row_pointers != row_pointers)) in png_set_rows()
1558 info_ptr->row_pointers = row_pointers; in png_set_rows()
1560 if (row_pointers != NULL) in png_set_rows()
Dpngread.c1224 if (info_ptr->row_pointers == NULL) in png_read_png()
1228 info_ptr->row_pointers = png_voidcast(png_bytepp, png_malloc(png_ptr, in png_read_png()
1232 info_ptr->row_pointers[iptr] = NULL; in png_read_png()
1237 info_ptr->row_pointers[iptr] = png_voidcast(png_bytep, in png_read_png()
1241 png_read_image(png_ptr, info_ptr->row_pointers); in png_read_png()

12