Home | History | Annotate | Download | only in wrapper

Lines Matching refs:device

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