/external/libxcam/modules/ocl/ |
D | cl_newwavelet_denoise_handler.cpp | 144 uint32_t cl_width = XCAM_ALIGN_UP (cl_desc.width, 2); in prepare_arguments() 145 uint32_t cl_height = XCAM_ALIGN_UP (cl_desc.height, 2); in prepare_arguments() 161 work_size.global[0] = XCAM_ALIGN_UP (cl_width, work_size.local[0]); in prepare_arguments() 162 work_size.global[1] = XCAM_ALIGN_UP (cl_height, work_size.local[1]); in prepare_arguments() 176 uint32_t cl_width = XCAM_ALIGN_UP (cl_desc.width, 2); in estimate_noise_variance() 177 uint32_t cl_height = XCAM_ALIGN_UP (cl_desc.height, 2); in estimate_noise_variance() 359 uint32_t cl_width = XCAM_ALIGN_UP (cl_desc.width, 2); in prepare_arguments() 360 uint32_t cl_height = XCAM_ALIGN_UP (cl_desc.height, 2); in prepare_arguments() 366 work_size.global[0] = XCAM_ALIGN_UP (cl_width , work_size.local[0]); in prepare_arguments() 367 work_size.global[1] = XCAM_ALIGN_UP (cl_height, work_size.local[1]); in prepare_arguments() [all …]
|
D | cl_3d_denoise_handler.cpp | 94 cl_desc_in.width = XCAM_ALIGN_UP (video_info_in.width, 8) / 8; in prepare_arguments() 97 cl_desc_in.width = XCAM_ALIGN_UP (video_info_in.width, 4) / 4; in prepare_arguments() 105 cl_desc_out.width = XCAM_ALIGN_UP (video_info_out.width, 8) / 8; in prepare_arguments() 108 cl_desc_out.width = XCAM_ALIGN_UP (video_info_out.width, 4) / 4; in prepare_arguments() 160 work_size.global[0] = XCAM_ALIGN_UP (cl_desc_in.width, work_size.local[0]); in prepare_arguments() 165 work_size.global[0] = XCAM_ALIGN_UP (cl_desc_in.width, work_size.local[0]); in prepare_arguments() 166 work_size.global[1] = XCAM_ALIGN_UP(cl_desc_in.height / 8, 8 * work_size.local[1]); in prepare_arguments()
|
D | cl_pyramid_blender.cpp | 326 this->blend_width = XCAM_ALIGN_UP (merge0_rect.width, XCAM_CL_BLENDER_ALIGNMENT_X); in bind_buf_to_layer0() 353 cl_desc.width = XCAM_ALIGN_UP (this->blend_width, XCAM_CL_BLENDER_ALIGNMENT_X) / 8; in bind_buf_to_layer0() 354 …cl_desc.height = XCAM_ALIGN_UP (this->blend_height, divider_vert[i_plane]) / divider_vert[i_plane]; in bind_buf_to_layer0() 356 XCAM_ALIGN_UP (cl_desc.width, XCAM_CL_IMAGE_ALIGNMENT_X); in bind_buf_to_layer0() 409 …cl_desc.height = XCAM_ALIGN_UP (this->blend_height, divider_vert[i_plane]) / divider_vert[i_plane]; in init_layer0() 440 cl_desc_set.width = XCAM_ALIGN_UP (this->blend_width, XCAM_CL_BLENDER_ALIGNMENT_X) / 8; in build_cl_images() 441 …cl_desc_set.height = XCAM_ALIGN_UP (this->blend_height, divider_vert[plane]) / divider_vert[plane]; in build_cl_images() 445 XCAM_ALIGN_UP (cl_desc_set.width, XCAM_CL_IMAGE_ALIGNMENT_X); in build_cl_images() 455 cl_desc_set.width = XCAM_ALIGN_UP (this->blend_width, XCAM_CL_BLENDER_ALIGNMENT_X) / 8; in build_cl_images() 456 …cl_desc_set.height = XCAM_ALIGN_UP (this->blend_height, divider_vert[plane]) / divider_vert[plane]; in build_cl_images() [all …]
|
D | cl_defog_dcp_handler.cpp | 102 work_size.global[0] = XCAM_ALIGN_UP (cl_desc_in.width, work_size.local[0]); in prepare_arguments() 103 work_size.global[1] = XCAM_ALIGN_UP (cl_desc_in.height, work_size.local[1]); in prepare_arguments() 134 work_size.global[0] = XCAM_ALIGN_UP (cl_desc.width, work_size.local[0]); in prepare_arguments() 135 work_size.global[1] = XCAM_ALIGN_UP (cl_desc.height / 2, work_size.local[1]); in prepare_arguments() 139 work_size.global[0] = XCAM_ALIGN_UP (cl_desc.width, work_size.local[0]); in prepare_arguments() 140 work_size.global[1] = XCAM_ALIGN_UP (cl_desc.height, work_size.local[1]); in prepare_arguments() 179 work_size.global[0] = XCAM_ALIGN_UP (cl_desc_in.width, work_size.local[0]); in prepare_arguments() 180 work_size.global[1] = XCAM_ALIGN_UP (cl_desc_in.height, work_size.local[1]); in prepare_arguments() 283 work_size.global[0] = XCAM_ALIGN_UP (cl_desc_out.width, work_size.local[0]); in prepare_arguments() 284 work_size.global[1] = XCAM_ALIGN_UP (cl_desc_out.height, work_size.local[1]); // uv height in prepare_arguments()
|
D | cl_image_scaler.cpp | 63 uint32_t channel_bits = XCAM_ALIGN_UP (output_info.color_bits, 8); in prepare_arguments() 90 channel_bits = XCAM_ALIGN_UP (input_info.color_bits, 8); in prepare_arguments() 119 … work_size.global[0] = XCAM_ALIGN_UP (output_width, XCAM_CL_IMAGE_SCALER_KERNEL_LOCAL_WORK_SIZE0); in prepare_arguments() 120 … work_size.global[1] = XCAM_ALIGN_UP (output_height, XCAM_CL_IMAGE_SCALER_KERNEL_LOCAL_WORK_SIZE1); in prepare_arguments() 215 uint32_t new_width = XCAM_ALIGN_UP ((uint32_t)(video_info.width * _h_scaler_factor), in prepare_scaler_buf() 217 uint32_t new_height = XCAM_ALIGN_UP ((uint32_t)(video_info.height * _v_scaler_factor), in prepare_scaler_buf()
|
D | cl_fisheye_handler.cpp | 125 work_size.global[0] = XCAM_ALIGN_UP (outuv_desc.width, work_size.local[0]); in prepare_arguments() 126 work_size.global[1] = XCAM_ALIGN_UP (outuv_desc.height, work_size.local[1]); in prepare_arguments() 226 XCAM_ALIGN_UP (_output_width, 16), XCAM_ALIGN_UP (_output_height, 16)); in prepare_buffer_pool_video_info() 370 table_width = XCAM_ALIGN_UP (table_width, 4); in generate_fisheye_table() 372 table_height = XCAM_ALIGN_UP (table_height, 2); in generate_fisheye_table() 433 work_size.global[0] = XCAM_ALIGN_UP (table_width, work_size.local[0]); in generate_fisheye_table() 434 work_size.global[1] = XCAM_ALIGN_UP (table_height, work_size.local[1]); in generate_fisheye_table() 514 work_size.global[0] = XCAM_ALIGN_UP (desc.width, work_size.local[0]); in generate_lsc_table() 515 work_size.global[1] = XCAM_ALIGN_UP (desc.height, work_size.local[1]); in generate_lsc_table()
|
D | cl_blender.cpp | 53 work_size.global[0] = XCAM_ALIGN_UP (output_width, work_size.local[0]); in prepare_arguments() 54 work_size.global[1] = XCAM_ALIGN_UP (output_height, work_size.local[1]); in prepare_arguments() 101 XCAM_ALIGN_UP(output_width, aligned_width), XCAM_ALIGN_UP(output_height, 16)); in prepare_buffer_pool_video_info()
|
D | cl_image_360_stitch.cpp | 411 _fisheye[0].width = XCAM_ALIGN_UP (_fisheye[0].width, 16); in calc_fisheye_initial_info() 438 _fisheye[0].width = XCAM_ALIGN_UP (_fisheye[0].width, 32); in calc_fisheye_initial_info() 442 _fisheye[1].width = XCAM_ALIGN_UP (_fisheye[1].width, 32); in calc_fisheye_initial_info() 446 _fisheye[2].width = XCAM_ALIGN_UP (_fisheye[2].width, 32); in calc_fisheye_initial_info() 450 _fisheye[3].width = XCAM_ALIGN_UP (_fisheye[3].width, 32); in calc_fisheye_initial_info() 474 … _stitch_info.merge_width[i] = XCAM_ALIGN_UP((uint32_t)(20.0f / 360.0f * out_info.width), 32); in calc_fisheye_initial_info() 523 XCAM_ALIGN_UP(_output_width, aligned_width), XCAM_ALIGN_UP(_output_height, 16)); in prepare_buffer_pool_video_info() 586 left_lap.width = XCAM_ALIGN_UP (left_lap.width, XCAM_CL_BLENDER_ALIGNMENT_X); in prepare_global_scale_blender_parameters() 640 left_lap.width = XCAM_ALIGN_UP (left_lap.width, XCAM_CL_BLENDER_ALIGNMENT_X); in prepare_local_scale_blender_parameters() 676 width = XCAM_ALIGN_UP (width, 16); in create_buffer_pool() [all …]
|
D | cl_geo_map_handler.cpp | 83 work_size.global[0] = XCAM_ALIGN_UP (outuv_desc.width, work_size.local[0]); in prepare_arguments() 84 work_size.global[1] = XCAM_ALIGN_UP (outuv_desc.height, work_size.local[1]); in prepare_arguments() 162 …uint32_t aligned_width = XCAM_ALIGN_UP (width, XCAM_CL_IMAGE_ALIGNMENT_X); // 4 channel for CL_RG… in check_geo_map_buf() 240 XCAM_ALIGN_UP (_output_width, 16), XCAM_ALIGN_UP (_output_height, 16)); in prepare_buffer_pool_video_info()
|
D | cl_rgb_pipe_handler.cpp | 119 work_size.global[0] = XCAM_ALIGN_UP(video_info.width, 16); in prepare_parameters() 120 work_size.global[1] = XCAM_ALIGN_UP(video_info.height, 16); in prepare_parameters()
|
D | cl_gauss_handler.cpp | 162 work_size.global[0] = XCAM_ALIGN_UP(cl_desc_out.width, 8); in prepare_arguments() 163 work_size.global[1] = XCAM_ALIGN_UP (cl_desc_out.height / 2, 4); in prepare_arguments()
|
D | cl_bayer_pipe_handler.cpp | 202 …work_size.global[0] = (XCAM_ALIGN_UP(out_video_info.width, WORKGROUP_PIXEL_WIDTH) / WORKGROUP_PIXE… in prepare_parameters() 204 …work_size.global[1] = (XCAM_ALIGN_UP(out_video_info.height, WORKGROUP_PIXEL_HEIGHT) / WORKGROUP_PI… in prepare_parameters()
|
D | cl_image_warp_handler.cpp | 161 work_size.global[0] = XCAM_ALIGN_UP (cl_desc_out.width, work_size.local[0]); in prepare_arguments() 162 work_size.global[1] = XCAM_ALIGN_UP(cl_desc_out.height, work_size.local[1]); in prepare_arguments()
|
D | cl_retinex_handler.cpp | 232 uint32_t new_width = XCAM_ALIGN_UP ((uint32_t)(video_info.width * _scaler_factor), 8); in prepare_scaler_buf() 233 uint32_t new_height = XCAM_ALIGN_UP ((uint32_t)(video_info.height * _scaler_factor), 4); in prepare_scaler_buf()
|
D | cl_bayer_basic_handler.cpp | 365 …work_size.global[0] = XCAM_ALIGN_UP(out_video_info.width, GROUP_CELL_X_SIZE) / GROUP_CELL_X_SIZE *… in prepare_parameters() 366 …work_size.global[1] = XCAM_ALIGN_UP(out_video_info.aligned_height, GROUP_CELL_Y_SIZE) / GROUP_CELL… in prepare_parameters()
|
/external/libxcam/tests/ |
D | test-image-blend.cpp | 124 aligned_width = XCAM_ALIGN_UP(width, 16); in dma_buf_to_xcam_buf() 126 aligned_height = XCAM_ALIGN_UP(height, 16); in dma_buf_to_xcam_buf() 289 …input_format, input_width0, input_height, XCAM_ALIGN_UP (input_width0, 16), XCAM_ALIGN_UP(input_he… in main() 291 …input_format, input_width1, input_height, XCAM_ALIGN_UP (input_width1, 16), XCAM_ALIGN_UP(input_he… in main() 293 …input_format, output_width, output_height, XCAM_ALIGN_UP (output_width, 16), XCAM_ALIGN_UP(output_… in main()
|
D | test-image-stitching.cpp | 359 output_width = XCAM_ALIGN_UP (output_width, XCAM_ALIGNED_WIDTH); in main() 360 output_height = XCAM_ALIGN_UP (output_height, XCAM_ALIGNED_WIDTH); in main()
|
/external/libxcam/xcore/interface/ |
D | blender.cpp | 39 _out_width = XCAM_ALIGN_UP (width, get_alignment_x ()); in set_output_size() 40 _out_height = XCAM_ALIGN_UP (height, get_alignment_y ()); in set_output_size() 65 _input_valid_area[index].width = XCAM_ALIGN_UP (_input_valid_area[index].width, alignmend_x); in set_input_valid_area()
|
/external/libxcam/xcore/ |
D | xcam_buffer.cpp | 38 aligned_width = XCAM_ALIGN_UP (width, 4); in xcam_video_buffer_info_reset() 40 aligned_height = XCAM_ALIGN_UP (height, 2); in xcam_video_buffer_info_reset() 222 planar_info->pixel_bytes = XCAM_ALIGN_UP (buf_info->color_bits, 8) / 8; in xcam_video_buffer_get_planar_info()
|
/external/libxcam/modules/soft/ |
D | soft_geo_mapper.cpp | 105 XCAM_ALIGN_UP (width, XCAM_GEO_MAP_ALIGNMENT_X), in configure_resource() 106 XCAM_ALIGN_UP (height, XCAM_GEO_MAP_ALIGNMENT_Y)); in configure_resource()
|
D | soft_stitcher.cpp | 252 table_width = XCAM_ALIGN_UP (table_width, 4); in set_dewarp_geo_table() 254 table_height = XCAM_ALIGN_UP (table_height, 2); in set_dewarp_geo_table() 298 XCAM_ALIGN_UP (view_slice.width, SOFT_STITCHER_ALIGNMENT_X), in init_fisheye() 299 XCAM_ALIGN_UP (view_slice.height, SOFT_STITCHER_ALIGNMENT_Y)); in init_fisheye() 920 XCAM_ALIGN_UP (out_width, SOFT_STITCHER_ALIGNMENT_X), in configure_resource() 921 XCAM_ALIGN_UP (out_height, SOFT_STITCHER_ALIGNMENT_Y)); in configure_resource()
|
D | soft_blender.cpp | 255 uint32_t aligned_width = XCAM_ALIGN_UP (width, SOFT_BLENDER_ALIGNMENT_X); in init_first_masks() 676 …XCAM_ALIGN_UP (out_width, SOFT_BLENDER_ALIGNMENT_X), XCAM_ALIGN_UP (out_height, SOFT_BLENDER_ALIGN… in configure_resource() 702 merge_size.width = XCAM_ALIGN_UP ((merge_size.width + 1) / 2, SOFT_BLENDER_ALIGNMENT_X); in configure_resource() 703 merge_size.height = XCAM_ALIGN_UP ((merge_size.height + 1) / 2, SOFT_BLENDER_ALIGNMENT_Y); in configure_resource()
|
/external/libxcam/xcore/base/ |
D | xcam_defs.h | 112 #define XCAM_ALIGN_UP(value, align) (((value)+((align)-1))&(~((align)-1))) macro
|
/external/libxcam/wrapper/gstreamer/ |
D | gstxcamfilter.cpp | 636 src_height = XCAM_ALIGN_UP (sink_width / 2, 16); in gst_xcam_filter_transform_caps() 674 src_height = XCAM_ALIGN_UP (src_width / 2, 16); in gst_xcam_filter_transform_caps() 754 XCAM_ALIGN_UP (GST_VIDEO_INFO_WIDTH (&in_info), 16), in gst_xcam_filter_set_caps() 755 XCAM_ALIGN_UP (GST_VIDEO_INFO_HEIGHT (&in_info), 16)); in gst_xcam_filter_set_caps()
|
/external/libxcam/capi/ |
D | context_priv.cpp | 207 uint32_t sttch_height = XCAM_ALIGN_UP (sttch_width / 2, 16); in create_handler()
|