Home
last modified time | relevance | path

Searched refs:row_pitch (Results 1 – 25 of 49) sorted by relevance

12

/external/mesa3d/src/gallium/state_trackers/clover/core/
Dmemory.cpp129 size_t row_pitch, size_t slice_pitch, size_t size, in image() argument
133 _row_pitch(row_pitch), _slice_pitch(slice_pitch) { in image()
179 image::row_pitch() const { in row_pitch() function in image
190 size_t height, size_t row_pitch, in image2d() argument
193 row_pitch, 0, height * row_pitch, host_ptr) { in image2d()
204 size_t row_pitch, size_t slice_pitch, in image3d() argument
207 row_pitch, slice_pitch, depth * slice_pitch, in image3d()
Dmemory.hpp113 size_t row_pitch, size_t slice_pitch, size_t size,
123 size_t row_pitch() const;
141 size_t height, size_t row_pitch,
152 size_t row_pitch, size_t slice_pitch,
/external/libxcam/modules/ocl/
Dcl_memory.cpp33 , row_pitch (0)
47 desc.row_pitch == this->row_pitch && in operator ==()
363 image_desc.row_pitch = video_info.strides[0]; in video_info_2_cl_image_desc()
364 XCAM_ASSERT (image_desc.row_pitch >= image_desc.width); in video_info_2_cl_image_desc()
491 size_t width = 0, height = 0, row_pitch = 0, slice_pitch = 0, array_size = 0, mem_size = 0; in init_desc_by_image() local
497 get_cl_image_info (CL_IMAGE_ROW_PITCH, sizeof(row_pitch), &row_pitch); in init_desc_by_image()
505 _image_desc.row_pitch = row_pitch; in init_desc_by_image()
515 size_t *row_pitch, size_t *slice_pitch, in enqueue_map() argument
528 …ret = context->enqueue_map_image (mem_id, ptr, origin, region, row_pitch, slice_pitch, true, map_f… in enqueue_map()
586 if (desc.row_pitch) in init_image_2d()
[all …]
Dcl_geo_map_handler.cpp163 uint32_t row_pitch = aligned_width * GEO_MAP_CHANNEL * sizeof (float); in check_geo_map_buf() local
164 uint32_t size = row_pitch * height; in check_geo_map_buf()
180 cl_geo_desc.row_pitch = row_pitch; in check_geo_map_buf()
201 …uint32_t row_pitch = _map_aligned_width * GEO_MAP_CHANNEL * sizeof (float); // 4 channel for CL_R… in normalize_geo_map() local
202 uint32_t size = row_pitch * _map_height; in normalize_geo_map()
258 cl_desc.row_pitch = in_info.strides[NV12PlaneYIdx]; in prepare_parameters()
265 cl_desc.row_pitch = in_info.strides[NV12PlaneUVIdx]; in prepare_parameters()
272 cl_desc.row_pitch = out_info.strides[NV12PlaneYIdx]; in prepare_parameters()
275 cl_desc.row_pitch = out_info.strides[NV12PlaneUVIdx]; in prepare_parameters()
Dcl_pyramid_blender.cpp336 cl_desc.row_pitch = in0_info.strides[i_plane]; in bind_buf_to_layer0()
342 cl_desc.row_pitch = in1_info.strides[i_plane]; in bind_buf_to_layer0()
348 cl_desc.row_pitch = out_info.strides[i_plane]; in bind_buf_to_layer0()
355 uint32_t row_pitch = CLImage::calculate_pixel_bytes (cl_desc.format) * in bind_buf_to_layer0() local
357 uint32_t size = row_pitch * cl_desc.height; in bind_buf_to_layer0()
360 cl_desc.row_pitch = row_pitch; in bind_buf_to_layer0()
428 uint32_t size = 0, row_pitch = 0; in build_cl_images() local
439 cl_desc_set.row_pitch = 0; in build_cl_images()
444 row_pitch = CLImage::calculate_pixel_bytes (cl_desc_set.format) * in build_cl_images()
446 size = row_pitch * cl_desc_set.height; in build_cl_images()
[all …]
Dcl_fisheye_handler.cpp248 cl_desc.row_pitch = in_info.strides[NV12PlaneYIdx]; in prepare_parameters()
255 cl_desc.row_pitch = in_info.strides[NV12PlaneUVIdx]; in prepare_parameters()
263 cl_desc.row_pitch = out_info.strides[NV12PlaneYIdx]; in prepare_parameters()
266 cl_desc.row_pitch = out_info.strides[NV12PlaneUVIdx]; in prepare_parameters()
273 cl_desc.row_pitch = out_info.strides[NV12PlaneYIdx]; in prepare_parameters()
276 cl_desc.row_pitch = out_info.strides[NV12PlaneUVIdx]; in prepare_parameters()
323 size_t row_pitch;
329 … XCamReturn ret = table->enqueue_map (ptr, origin, region, &row_pitch, &slice_pitch, CL_MAP_READ);
333 float * line = (float*)((uint8_t*)ptr + row_pitch * i);
393 size_t row_pitch; in generate_fisheye_table() local
[all …]
Dcl_newwavelet_denoise_handler.cpp183 size_t row_pitch = cl_desc.row_pitch; in estimate_noise_variance() local
189 &row_pitch, &slice_pitch, in estimate_noise_variance()
219 uint8_t base = (pixel[i + j * row_pitch] <= 127) ? 127 : 128; in estimate_noise_variance()
220 hist_y[abs(pixel[i + j * row_pitch] - base)]++; in estimate_noise_variance()
238 uint8_t base = (pixel[2 * i + j * row_pitch] <= 127) ? 127 : 128; in estimate_noise_variance()
239 hist_u[abs(pixel[2 * i + j * row_pitch] - base)]++; in estimate_noise_variance()
240 base = (pixel[2 * i + 1 + j * row_pitch] <= 127) ? 127 : 128; in estimate_noise_variance()
241 hist_v[abs(pixel[2 * i + 1 + j * row_pitch] - base)]++; in estimate_noise_variance()
410 cl_desc_in.row_pitch = video_info_in.strides[0]; in prepare_arguments()
416 cl_desc_out.row_pitch = video_info_out.strides[0]; in prepare_arguments()
[all …]
Dcl_utils.cpp59 size_t row_pitch; in dump_image() local
62 … XCamReturn ret = image->enqueue_map (ptr, origin, region, &row_pitch, &slice_pitch, CL_MAP_READ); in dump_image()
65 XCAM_ASSERT (row_pitch == desc.row_pitch); in dump_image()
73 uint8_t *buf_line = buf_start + row_pitch * i; in dump_image()
126 uint32_t row_pitch = CLImage::calculate_pixel_bytes (desc.format) * in convert_to_climage() local
128 uint32_t size = row_pitch * desc.height; in convert_to_climage()
151 void *nv12_mem, uint32_t width, uint32_t height, uint32_t row_pitch, uint32_t offset_uv, in convert_nv12_mem_to_video_buffer() argument
155 XCAM_ASSERT (row_pitch >= width); in convert_nv12_mem_to_video_buffer()
174 src += row_pitch; in convert_nv12_mem_to_video_buffer()
Dcl_image_bo_buffer.cpp161 if (desc.row_pitch != info.strides [0] || desc.size != info.size) in fixate_video_info()
166 if (desc.row_pitch != info.strides [i] || in fixate_video_info()
173 uint32_t aligned_width = desc.row_pitch / plane_info.pixel_bytes; in fixate_video_info()
176 aligned_height = desc.slice_pitch / desc.row_pitch; in fixate_video_info()
180 info.strides[i] = desc.row_pitch; in fixate_video_info()
Dcl_retinex_handler.cpp128 cl_desc_in.row_pitch = video_info_in.strides[0]; in prepare_arguments()
132 cl_desc_in.row_pitch = video_info_in.strides[1]; in prepare_arguments()
139 cl_desc_out.row_pitch = video_info_out.strides[0]; in prepare_arguments()
143 cl_desc_out.row_pitch = video_info_out.strides[1]; in prepare_arguments()
163 cl_desc_ga.row_pitch = video_info_gauss.strides[0]; in prepare_arguments()
Dcl_image_scaler.cpp73 output_imageDesc.row_pitch = output_info.strides[1]; in prepare_arguments()
82 output_imageDesc.row_pitch = output_info.strides[0]; in prepare_arguments()
100 input_imageDesc.row_pitch = input_info.strides[1]; in prepare_arguments()
107 input_imageDesc.row_pitch = input_info.strides[0]; in prepare_arguments()
Dcl_yuv_pipe_handler.cpp123 in_image_info.row_pitch = video_info_in.strides[0]; in prepare_parameters()
130 out_image_info.row_pitch = video_info_out.strides[0]; in prepare_parameters()
136 out_image_info.row_pitch = video_info_out.strides[1]; in prepare_parameters()
Dcl_defog_dcp_handler.cpp80 cl_desc_in.row_pitch = video_info_in.strides[0]; in prepare_arguments()
84 cl_desc_in.row_pitch = video_info_in.strides[1]; in prepare_arguments()
166 cl_desc_in.row_pitch = video_info_in.strides[0]; in prepare_arguments()
269 cl_desc_out.row_pitch = video_info_out.strides[0]; in prepare_arguments()
273 cl_desc_out.row_pitch = video_info_out.strides[1]; in prepare_arguments()
Dcl_gauss_handler.cpp140 cl_desc_in.row_pitch = video_info_in.strides[0]; in prepare_arguments()
147 cl_desc_out.row_pitch = video_info_out.strides[0]; in prepare_arguments()
Dcl_memory.h36 uint32_t row_pitch; member
190 size_t *row_pitch, size_t *slice_pitch,
Dcl_bayer_pipe_handler.cpp158 in_desc.row_pitch = in_video_info.strides[0]; in prepare_parameters()
170 out_desc.row_pitch = out_video_info.strides[0]; in prepare_parameters()
Dcl_3d_denoise_handler.cpp100 cl_desc_in.row_pitch = video_info_in.strides[info_index]; in prepare_arguments()
111 cl_desc_out.row_pitch = video_info_out.strides[info_index]; in prepare_arguments()
/external/mesa3d/src/intel/isl/
Disl.c993 uint32_t row_pitch = info->min_pitch; in isl_calc_linear_row_pitch() local
1041 row_pitch = MAX(row_pitch, bs * (phys_slice0_sa->w / fmtl->bw)); in isl_calc_linear_row_pitch()
1059 row_pitch = isl_align_npot(row_pitch, 2 * bs); in isl_calc_linear_row_pitch()
1061 row_pitch = isl_align_npot(row_pitch, bs); in isl_calc_linear_row_pitch()
1065 return row_pitch; in isl_calc_linear_row_pitch()
1240 uint32_t row_pitch, size, base_alignment; in isl_surf_init_s() local
1242 row_pitch = isl_calc_linear_row_pitch(dev, info, &phys_slice0_sa); in isl_surf_init_s()
1243 size = row_pitch * total_h_el + pad_bytes; in isl_surf_init_s()
1273 row_pitch = total_w_tl * tile_info.phys_extent_B.width; in isl_surf_init_s()
1274 if (row_pitch < info->min_pitch) { in isl_surf_init_s()
[all …]
Disl.h875 uint32_t row_pitch; member
1341 return surf->row_pitch; in isl_surf_get_row_pitch()
1352 assert(surf->row_pitch % (fmtl->bpb / 8) == 0); in isl_surf_get_row_pitch_el()
1353 return surf->row_pitch / (fmtl->bpb / 8); in isl_surf_get_row_pitch_el()
1391 return isl_surf_get_array_pitch_sa_rows(surf) * surf->row_pitch; in isl_surf_get_array_pitch()
1440 uint32_t row_pitch,
1451 uint32_t row_pitch, in isl_tiling_get_intratile_offset_sa() argument
1471 isl_tiling_get_intratile_offset_el(dev, tiling, fmtl->bpb / 8, row_pitch, in isl_tiling_get_intratile_offset_sa()
/external/libxcam/modules/ocl/intel/
Dcl_va_memory.cpp149 import_image_info.row_pitch = va_image_info.row_pitch = cl_desc.row_pitch; in init_va_image()
/external/mesa3d/src/gallium/state_trackers/clover/api/
Dmemory.cpp220 size_t width, size_t height, size_t row_pitch, in clCreateImage2D() argument
223 row_pitch, 0, 0, 0, NULL }; in clCreateImage2D()
232 size_t row_pitch, size_t slice_pitch, in clCreateImage3D() argument
235 row_pitch, slice_pitch, 0, 0, NULL }; in clCreateImage3D()
337 buf.as_scalar<size_t>() = img.row_pitch(); in clGetImageInfo()
Dtransfer.cpp483 size_t row_pitch, size_t slice_pitch, void *ptr, in clEnqueueReadImage() argument
491 row_pitch, slice_pitch }}); in clEnqueueReadImage()
494 img.row_pitch(), img.slice_pitch() }}); in clEnqueueReadImage()
517 size_t row_pitch, size_t slice_pitch, const void *ptr, in clEnqueueWriteImage() argument
526 img.row_pitch(), img.slice_pitch() }}); in clEnqueueWriteImage()
528 row_pitch, slice_pitch }}); in clEnqueueWriteImage()
596 src_img.row_pitch(), in clEnqueueCopyImageToBuffer()
630 dst_img.row_pitch(), in clEnqueueCopyBufferToImage()
683 size_t *row_pitch, size_t *slice_pitch, in clEnqueueMapImage() argument
/external/mesa3d/src/intel/vulkan/
Danv_wsi.c149 uint32_t *row_pitch, int *fd_p) in x11_anv_wsi_image_create() argument
208 *row_pitch = surface->isl.row_pitch; in x11_anv_wsi_image_create()
210 surface->isl.row_pitch, I915_TILING_X); in x11_anv_wsi_image_create()
/external/libxcam/tests/
Dtest-image-stitching.cpp113 uint32_t row_pitch, in read_file_to_video_buffer() argument
116 size_t size = row_pitch * height / 2 * 3; in read_file_to_video_buffer()
126 uint32_t offset_uv = row_pitch * height; in read_file_to_video_buffer()
127 convert_nv12_mem_to_video_buffer (nv12_mem, width, height, row_pitch, offset_uv, buf); in read_file_to_video_buffer()
/external/mesa3d/src/intel/isl/tests/
Disl_surf_get_image_offset_test.c156 t_assert(surf.row_pitch == 2048); in test_bdw_2d_r8g8b8a8_unorm_512x512_array01_samples01_noaux_tiley0()
204 t_assert(surf.row_pitch == 4096); in test_bdw_2d_r8g8b8a8_unorm_1024x1024_array06_samples01_noaux_tiley0()

12