I want to copy all the contents of an input image to a buffer so that I can do further processing on it...the command looks lyk
clEnqueueCopyImageToBuffer (cl_command_queue command_queue,cl_mem src_image,cl_mem dst_buffer,const size_t src_origin,
const size_t region, size_t dst_offset, cl_uint num_events_in_wait_list,const cl_event *event_wait_list, cl_event *event)
and in my code the command looks as follows...
errNum= clEnqueueCopyImageToBuffer ( commandQueue, imageObjects ,memObject,origin,
I get an error saying Image cant be copied...!
what is exactly to be written in place of size_t dst_offset...? please tell the exact syntax for it, if my buffer size is 4*width*height*sizeof(char), or just putting zero at that place will do o no...?