Lines Matching refs:device
94 QCamera2HardwareInterface *util_get_Hal_obj( struct camera_device * device) in util_get_Hal_obj() argument
97 if(device && device->priv){ in util_get_Hal_obj()
98 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; in util_get_Hal_obj()
131 camera_device *device = NULL; in camera_device_open() local
149 device = &camHal->hw_dev; in camera_device_open()
150 device->common.close = close_camera_device; in camera_device_open()
151 device->ops = &QCamera2HardwareInterface::mCameraOps; in camera_device_open()
152 device->priv = (void *)camHal; in camera_device_open()
160 device = NULL; in camera_device_open()
166 *hw_device = (hw_device_t*)&device->common; in camera_device_open()
178 camera_device_t *device = (camera_device_t *)hw_dev; in close_camera_device() local
180 if(device) { in close_camera_device()
181 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; in close_camera_device()
183 QCamera2HardwareInterface *hardware = util_get_Hal_obj( device); in close_camera_device()
186 hardware->release(device); in close_camera_device()
199 int set_preview_window(struct camera_device * device, in set_preview_window() argument
203 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in set_preview_window()
206 rc = hardware->set_preview_window(device, window); in set_preview_window()
211 void set_CallBacks(struct camera_device * device, in set_CallBacks() argument
219 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in set_CallBacks()
221 hardware->set_CallBacks(device, notify_cb,data_cb, data_cb_timestamp, get_memory, user); in set_CallBacks()
225 void enable_msg_type(struct camera_device * device, int32_t msg_type) in enable_msg_type() argument
227 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in enable_msg_type()
229 hardware->enable_msg_type(device, msg_type); in enable_msg_type()
233 void disable_msg_type(struct camera_device * device, int32_t msg_type) in disable_msg_type() argument
235 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in disable_msg_type()
238 hardware->disable_msg_type(device, msg_type); in disable_msg_type()
242 int msg_type_enabled(struct camera_device * device, int32_t msg_type) in msg_type_enabled() argument
246 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in msg_type_enabled()
248 rc = hardware->msg_type_enabled(device, msg_type); in msg_type_enabled()
253 int start_preview(struct camera_device * device) in start_preview() argument
257 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in start_preview()
259 rc = hardware->start_preview(device); in start_preview()
265 void stop_preview(struct camera_device * device) in stop_preview() argument
268 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in stop_preview()
270 hardware->stop_preview(device); in stop_preview()
274 int preview_enabled(struct camera_device * device) in preview_enabled() argument
278 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in preview_enabled()
280 rc = hardware->preview_enabled(device); in preview_enabled()
285 int store_meta_data_in_buffers(struct camera_device * device, int enable) in store_meta_data_in_buffers() argument
289 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in store_meta_data_in_buffers()
291 rc = hardware->store_meta_data_in_buffers(device, enable); in store_meta_data_in_buffers()
296 int start_recording(struct camera_device * device) in start_recording() argument
300 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in start_recording()
302 rc = hardware->start_recording(device); in start_recording()
307 void stop_recording(struct camera_device * device) in stop_recording() argument
310 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in stop_recording()
312 hardware->stop_recording(device); in stop_recording()
316 int recording_enabled(struct camera_device * device) in recording_enabled() argument
320 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in recording_enabled()
322 rc = hardware->recording_enabled(device); in recording_enabled()
327 void release_recording_frame(struct camera_device * device, in release_recording_frame() argument
331 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in release_recording_frame()
333 hardware->release_recording_frame(device, opaque); in release_recording_frame()
337 int auto_focus(struct camera_device * device) in auto_focus() argument
341 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in auto_focus()
343 rc = hardware->auto_focus(device); in auto_focus()
348 int cancel_auto_focus(struct camera_device * device) in cancel_auto_focus() argument
352 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in cancel_auto_focus()
354 rc = hardware->cancel_auto_focus(device); in cancel_auto_focus()
359 int take_picture(struct camera_device * device) in take_picture() argument
363 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in take_picture()
365 rc = hardware->take_picture(device); in take_picture()
370 int cancel_picture(struct camera_device * device) in cancel_picture() argument
375 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in cancel_picture()
377 rc = hardware->cancel_picture(device); in cancel_picture()
382 int set_parameters(struct camera_device * device, const char *parms) in set_parameters() argument
387 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in set_parameters()
389 rc = hardware->set_parameters(device, parms); in set_parameters()
394 char* get_parameters(struct camera_device * device) in get_parameters() argument
397 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in get_parameters()
400 parms = hardware->get_parameters(device); in get_parameters()
406 void put_parameters(struct camera_device * device, char *parm) in put_parameters() argument
410 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in put_parameters()
412 hardware->put_parameters(device, parm); in put_parameters()
416 int send_command(struct camera_device * device, in send_command() argument
421 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in send_command()
423 rc = hardware->send_command(device, cmd, arg1, arg2); in send_command()
428 void release(struct camera_device * device) in release() argument
431 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in release()
433 camera_hardware_t *camHal = (camera_hardware_t *)device->priv; in release()
434 hardware->release(device); in release()
439 int dump(struct camera_device * device, int fd) in dump() argument
443 QCamera2HardwareInterface *hardware = util_get_Hal_obj(device); in dump()
445 rc = hardware->dump(device, fd); in dump()