Lines Matching refs:cl_desc
545 CLImageDesc cl_desc; in CLImage2D() local
547 if (!video_info_2_cl_image_desc (video_info, cl_desc)) { in CLImage2D()
552 init_image_2d (context, cl_desc, flags); in CLImage2D()
557 const CLImageDesc &cl_desc, in CLImage2D() argument
563 init_image_2d (context, cl_desc, flags); in CLImage2D()
572 cl_image_desc cl_desc; in init_image_2d() local
574 xcam_mem_clear (cl_desc); in init_image_2d()
575 cl_desc.image_type = CL_MEM_OBJECT_IMAGE2D; in init_image_2d()
576 cl_desc.image_width = desc.width; in init_image_2d()
577 cl_desc.image_height = desc.height; in init_image_2d()
578 cl_desc.image_depth = 1; in init_image_2d()
579 cl_desc.image_array_size = 0; in init_image_2d()
580 cl_desc.image_row_pitch = 0; in init_image_2d()
581 cl_desc.image_slice_pitch = 0; in init_image_2d()
582 cl_desc.num_mip_levels = 0; in init_image_2d()
583 cl_desc.num_samples = 0; in init_image_2d()
584 cl_desc.buffer = NULL; in init_image_2d()
587 cl_desc.image_row_pitch = desc.row_pitch; in init_image_2d()
589 cl_desc.image_row_pitch = calculate_pixel_bytes(desc.format) * desc.width; in init_image_2d()
591 XCAM_ASSERT (cl_desc.image_row_pitch); in init_image_2d()
592 cl_desc.buffer = _bind_buf->get_mem_id (); in init_image_2d()
593 XCAM_ASSERT (cl_desc.buffer); in init_image_2d()
596 mem_id = context->create_image (flags, desc.format, cl_desc); in init_image_2d()
613 CLImageDesc cl_desc; in CLImage2DArray() local
617 if (!video_info_2_cl_image_desc (video_info, cl_desc)) { in CLImage2DArray()
621 XCAM_ASSERT (cl_desc.array_size >= 2); in CLImage2DArray()
625 cl_desc.height = XCAM_ALIGN_UP (cl_desc.height, 16); in CLImage2DArray()
627 cl_desc.array_size += extra_array_size; in CLImage2DArray()
629 init_image_2d_array (context, cl_desc, flags); in CLImage2DArray()
638 cl_image_desc cl_desc; in init_image_2d_array() local
640 xcam_mem_clear (cl_desc); in init_image_2d_array()
641 cl_desc.image_type = CL_MEM_OBJECT_IMAGE2D_ARRAY; in init_image_2d_array()
642 cl_desc.image_width = desc.width; in init_image_2d_array()
643 cl_desc.image_height = desc.height; in init_image_2d_array()
644 cl_desc.image_depth = 1; in init_image_2d_array()
645 cl_desc.image_array_size = desc.array_size; in init_image_2d_array()
646 cl_desc.image_row_pitch = 0; in init_image_2d_array()
647 cl_desc.image_slice_pitch = 0; in init_image_2d_array()
648 cl_desc.num_mip_levels = 0; in init_image_2d_array()
649 cl_desc.num_samples = 0; in init_image_2d_array()
650 cl_desc.buffer = NULL; in init_image_2d_array()
652 mem_id = context->create_image (flags, desc.format, cl_desc); in init_image_2d_array()