Home | History | Annotate | Download | only in ocl

Lines Matching refs:info

43 CLImageBoBuffer::CLImageBoBuffer (const VideoBufferInfo &info, const SmartPtr<CLImageBoData> &data)
44 : BufferProxy (info, data)
45 , DrmBoBuffer (info, data)
65 const VideoBufferInfo &info, SmartPtr<BufferData> &data)
77 return new CLImageBoBuffer (info, bo);
94 CLBoBufferPool::create_image_bo (const VideoBufferInfo &info)
109 if (info.components == 1)
110 image = new CLImage2D (_context, info, CL_MEM_READ_WRITE);
112 image = new CLImage2DArray (_context, info, CL_MEM_READ_WRITE, extra_array_size);
144 CLBoBufferPool::fixate_video_info (VideoBufferInfo &info)
150 SmartPtr<CLImageBoData> image_data = create_image_bo (info);
161 if (desc.row_pitch != info.strides [0] || desc.size != info.size)
164 for (i = 1; i < info.components && !need_reset_info; ++i) {
165 XCAM_ASSERT (desc.slice_pitch && desc.array_size >= info.components);
166 if (desc.row_pitch != info.strides [i] ||
167 info.offsets [i] != desc.slice_pitch * i)
172 info.get_planar_info (plane_info, 0);
174 uint32_t aligned_height = info.aligned_height;
175 if (info.components > 0)
177 info.init (info.format, info.width, info.height, aligned_width, aligned_height, desc.size);
178 for (i = 1; i < info.components; ++i) {
179 info.offsets[i] = desc.slice_pitch * i;
180 info.strides[i] = desc.row_pitch;
186 _swap_offsets[SwappedBuffer::SwapYOffset0] = info.offsets[0];
190 _swap_offsets[SwappedBuffer::SwapUVOffset0] = info.offsets[1];
195 if(!init_swap_order (info)) {
196 XCAM_LOG_ERROR ("CLBoBufferPool: fix video info faield to init swap order");
215 const VideoBufferInfo & info = get_video_info ();
219 SmartPtr<CLImageBoBuffer> out_buf = new CLImageBoBuffer (info, image_data);