Home
last modified time | relevance | path

Searched refs:row_size (Results 1 – 22 of 22) sorted by relevance

/external/pdfium/core/fxcodec/codec/
Dfx_codec_flate.cpp265 const int row_size = 7; in PNG_PredictorEncode() local
266 const int row_count = (*data_size + row_size - 1) / row_size; in PNG_PredictorEncode()
267 const int last_row_size = *data_size % row_size; in PNG_PredictorEncode()
268 uint8_t* dest_buf = FX_Alloc2D(uint8_t, row_size + 1, row_count); in PNG_PredictorEncode()
273 for (int byte = 0; byte < row_size && byte_cnt < (int)*data_size; byte++) { in PNG_PredictorEncode()
277 up = pSrcData[byte - row_size]; in PNG_PredictorEncode()
281 pDestData += (row_size + 1); in PNG_PredictorEncode()
282 pSrcData += row_size; in PNG_PredictorEncode()
286 *data_size = (row_size + 1) * row_count - in PNG_PredictorEncode()
287 (last_row_size > 0 ? (row_size - last_row_size) : 0); in PNG_PredictorEncode()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dtopk_v2.cc86 TopContainer(int32 k, int32 row_size) : k_(k) { in TopContainer() argument
87 container_.reserve(std::min(k, row_size) + 1); in TopContainer()
138 void TopK(int32 row_size, int32 num_rows, const T* data, int32 k, in TopK() argument
140 TopContainer<T> topc(k, row_size); in TopK()
142 const T* values_row = data + row * row_size; in TopK()
144 for (int32 c = 0; c < row_size; ++c) { in TopK()
196 const int32 row_size = input->dims->data[input->dims->size - 1]; in Eval() local
203 TopK(row_size, num_rows, input->data.f, k, output_indexes->data.i32, in Eval()
207 TopK(row_size, num_rows, input->data.uint8, k, output_indexes->data.i32, in Eval()
211 TopK(row_size, num_rows, input->data.int8, k, output_indexes->data.i32, in Eval()
[all …]
Dembedding_lookup.cc75 const int row_size = SizeOfDimension(value, 0); in EvalFloat() local
76 const int row_bytes = value->bytes / row_size; in EvalFloat()
80 if (idx >= row_size || idx < 0) { in EvalFloat()
84 idx, row_size - 1); in EvalFloat()
98 const int row_size = SizeOfDimension(value, 0); in EvalHybrid() local
109 if (idx >= row_size || idx < 0) { in EvalHybrid()
113 idx, row_size - 1); in EvalHybrid()
/external/tensorflow/tensorflow/core/kernels/
Ddecode_bmp_op.cc113 const int row_size = (channels_ * width + 3) / 4 * 4; in Compute() local
116 (abs_height - 1) * row_size + in Compute()
140 Decode(bmp_pixels, row_size, output->flat<uint8>().data(), width, in Compute()
144 uint8* Decode(const uint8* input, const int row_size, uint8* const output,
153 uint8* DecodeBmpOp::Decode(const uint8* input, const int row_size, in Decode() argument
163 src_pos = ((height - 1 - i) * row_size) + j * channels; in Decode()
165 src_pos = i * row_size + j * channels; in Decode()
Dconcat_lib_cpu.h42 int64 row_size = 0; in ConcatCPUImpl() local
45 row_size += sizes.back(); in ConcatCPUImpl()
78 auto work = [&row_size, &sizes, &inputs, &output, &copier, &num_inputs]( in ConcatCPUImpl()
80 int64 skipped_rows = start / row_size; in ConcatCPUImpl()
81 T* out = output->data() + skipped_rows * row_size; in ConcatCPUImpl()
144 int64 row_size = 0; in ConcatSYCLImpl() local
147 row_size += sizes.back(); in ConcatSYCLImpl()
Dreverse_op.cc54 const int64 row_size = inner_size * middle_size; in ReverseRows() local
60 in_ptr += start * row_size; in ReverseRows()
61 out_ptr += start * row_size; in ReverseRows()
64 out_ptr += row_size; in ReverseRows()
73 out_ptr += row_size; in ReverseRows()
Dragged_range_op.cc93 int64 row_size = rt_nested_splits(row + 1) - rt_nested_splits(row); in Compute() local
96 for (int64 i = 0; i < row_size; ++i) { in Compute()
Dscale_and_translate_op_test.cc217 const int64 row_size = num_col_squares * square_size * num_channels; in SetCheckerboardImageInput() local
218 const int64 image_size = num_row_squares * square_size * row_size; in SetCheckerboardImageInput()
230 auto it = data.begin() + b * image_size + r * row_size + in SetCheckerboardImageInput()
/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers.cc31 std::vector<uint8_t> decode_bmp(const uint8_t* input, int row_size, int width, in decode_bmp() argument
40 src_pos = ((height - 1 - i) * row_size) + j * channels; in decode_bmp()
42 src_pos = i * row_size + j * channels; in decode_bmp()
107 const int row_size = (8 * *channels * *width + 31) / 32 * 4; in read_bmp() local
115 return decode_bmp(bmp_pixels, row_size, *width, abs(*height), *channels, in read_bmp()
/external/autotest/client/deps/glbench/src/
Dreadpixeltest.cc38 const int row_size = g_width * 4; in Run() local
42 std::unique_ptr<char[]> buf(new char[((row_size + 3) & ~3) * g_height + 1]); in Run()
/external/mesa3d/src/amd/addrlib/inc/chip/r800/
Dsi_gb_reg.h68 unsigned int row_size : 2; member
78 unsigned int row_size : 2; member
/external/mesa3d/src/mesa/main/
Dget_hash_generator.py88 row_size = 4
89 for i in range(0, hash_table_size, row_size):
90 row = dense_table[i : i + row_size]
/external/libdrm/radeon/
Dradeon_surface.c106 uint32_t row_size; member
554 surf_man->hw_info.row_size = 1024; in eg_init_hw_info()
557 surf_man->hw_info.row_size = 2048; in eg_init_hw_info()
560 surf_man->hw_info.row_size = 4096; in eg_init_hw_info()
563 surf_man->hw_info.row_size = 4096; in eg_init_hw_info()
974 surf->tile_split = surf_man->hw_info.row_size; in eg_surface_best()
975 surf->stencil_tile_split = surf_man->hw_info.row_size / 2; in eg_surface_best()
1270 surf_man->hw_info.row_size = 1024; in si_init_hw_info()
1273 surf_man->hw_info.row_size = 2048; in si_init_hw_info()
1276 surf_man->hw_info.row_size = 4096; in si_init_hw_info()
[all …]
/external/deqp/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderClipping.cpp165 const unsigned int row_size = m_texture_width * m_texture_n_components; in iterate() local
225 unsigned char* data_row = buffer + y * row_size; in iterate()
DesextcGeometryShaderLayeredFramebuffer.cpp720 const int row_size = TEXTURE_WIDTH * pixel_size; in iterate() local
721 unsigned char* row = (unsigned char*)buffer + y * row_size; in iterate()
1398 int row_size = pixel_size * TEXTURE_WIDTH; in iterate() local
1399 unsigned char* ref_row = ref_data + y * row_size; in iterate()
1400 unsigned char* result_row = result_data + y * row_size; in iterate()
/external/libaom/libaom/av1/encoder/x86/
Dav1_txfm1d_sse4.h81 const int row_size = txfm_size; in transpose_32() local
86 for (r = 0; r < row_size; r += 4) { in transpose_32()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_mipmap_tree.c566 int row_size = cpp * width; in intel_miptree_copy_slice_sw() local
567 if (src_stride == row_size && in intel_miptree_copy_slice_sw()
568 dst_stride == row_size) { in intel_miptree_copy_slice_sw()
569 memcpy(dst, src, row_size * height); in intel_miptree_copy_slice_sw()
572 memcpy(dst, src, row_size); in intel_miptree_copy_slice_sw()
/external/ImageMagick/coders/
Dpsd.c1076 row_size; in ReadPSDChannelRaw() local
1089 row_size=GetPSDRowSize(image); in ReadPSDChannelRaw()
1090 pixels=(unsigned char *) AcquireQuantumMemory(row_size,sizeof(*pixels)); in ReadPSDChannelRaw()
1100 count=ReadBlob(image,row_size,pixels); in ReadPSDChannelRaw()
1101 if (count != (ssize_t) row_size) in ReadPSDChannelRaw()
1147 row_size; in ReadPSDChannelRLE() local
1161 row_size=GetPSDRowSize(image); in ReadPSDChannelRLE()
1162 pixels=(unsigned char *) AcquireQuantumMemory(row_size,sizeof(*pixels)); in ReadPSDChannelRLE()
1172 if (length > (row_size+2048)) /* arbitrary number */ in ReadPSDChannelRLE()
1198 (ssize_t) (image->depth == 1 ? 123456 : image->depth),row_size,pixels); in ReadPSDChannelRLE()
[all …]
/external/deqp/external/openglcts/modules/glesext/tessellation_shader/
DesextcTessellationShaderPoints.cpp566 const unsigned int row_size = pixel_size * m_rt_width; in iterate() local
579 const unsigned char* rendered_color_ubyte_ptr = buffer + row_size * y + x * pixel_size; in iterate()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_mipmap_tree.c1504 int row_size = cpp * width; in intel_miptree_copy_slice_sw() local
1505 if (src_stride == row_size && in intel_miptree_copy_slice_sw()
1506 dst_stride == row_size) { in intel_miptree_copy_slice_sw()
1507 memcpy(dst, src, row_size * height); in intel_miptree_copy_slice_sw()
1510 memcpy(dst, src, row_size); in intel_miptree_copy_slice_sw()
2885 uint32_t row_size = 64 * stride / 2; /* Two rows are interleaved. */ in intel_offset_S8() local
2894 uintptr_t u = tile_y * row_size in intel_offset_S8()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c895 unsigned row_size = dst_count / block_height; in load_unswizzled_block() local
902 unsigned x = i % row_size; in load_unswizzled_block()
903 unsigned y = i / row_size; in load_unswizzled_block()
940 unsigned row_size = src_count / block_height; in store_unswizzled_block() local
947 unsigned x = i % row_size; in store_unswizzled_block()
948 unsigned y = i / row_size; in store_unswizzled_block()
/external/mesa3d/src/amd/addrlib/r800/
Dsiaddrlib.cpp2264 switch (reg.f.row_size) in DecodeGbRegs()