HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->open_device, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->open_device(camera_handle, device_index);
+ return handle->funcs->open_device(handle->backend, device_index);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->open_device_ext, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->open_device_ext(camera_handle, device_name);
+ return handle->funcs->open_device_ext(handle->backend, device_name);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->close_device, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->close_device(camera_handle);
+ return handle->funcs->close_device(handle->backend);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->add_message_callback, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->add_message_callback(camera_handle, callback, user_data, cb_id);
+ return handle->funcs->add_message_callback(handle->backend, callback, user_data, cb_id);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->remove_message_callback, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->remove_message_callback(camera_handle, cb_id);
+ return handle->funcs->remove_message_callback(handle->backend, cb_id);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->set_preview_stream_format, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->set_preview_stream_format(camera_handle, format);
+ return handle->funcs->set_preview_stream_format(handle->backend, format);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->get_preview_stream_format, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->get_preview_stream_format(camera_handle, format);
+ return handle->funcs->get_preview_stream_format(handle->backend, format);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->set_user_buffer_fd, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->set_user_buffer_fd(camera_handle, fds, number);
+ return handle->funcs->set_user_buffer_fd(handle->backend, fds, number);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->start_preview, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->start_preview(camera_handle, callback, user_data);
+ return handle->funcs->start_preview(handle->backend, callback, user_data);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->release_preview_buffer, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->release_preview_buffer(camera_handle, buffer_index);
+ return handle->funcs->release_preview_buffer(handle->backend, buffer_index);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->stop_preview, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->stop_preview(camera_handle);
+ return handle->funcs->stop_preview(handle->backend);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->start_auto_focus, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->start_auto_focus(camera_handle);
+ return handle->funcs->start_auto_focus(handle->backend);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->stop_auto_focus, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->stop_auto_focus(camera_handle);
+ return handle->funcs->stop_auto_focus(handle->backend);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->start_capture, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->start_capture(camera_handle, callback, user_data);
+ return handle->funcs->start_capture(handle->backend, callback, user_data);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->stop_capture, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->stop_capture(camera_handle);
+ return handle->funcs->stop_capture(handle->backend);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->set_video_stream_format, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->set_video_stream_format(camera_handle, format);
+ return handle->funcs->set_video_stream_format(handle->backend, format);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->get_video_stream_format, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->get_video_stream_format(camera_handle, format);
+ return handle->funcs->get_video_stream_format(handle->backend, format);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->start_record, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->start_record(camera_handle, callback, user_data);
+ return handle->funcs->start_record(handle->backend, callback, user_data);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->release_video_buffer, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->release_video_buffer(camera_handle, buffer_index);
+ return handle->funcs->release_video_buffer(handle->backend, buffer_index);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->stop_record, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->stop_record(camera_handle);
+ return handle->funcs->stop_record(handle->backend);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->set_command, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->set_command(camera_handle, command, value);
+ return handle->funcs->set_command(handle->backend, command, value);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->get_command, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->get_command(camera_handle, command, value);
+ return handle->funcs->get_command(handle->backend, command, value);
}
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs, CAMERA_ERROR_INVALID_PARAMETER);
HAL_CAMERA_RETURN_IF_FAILED(handle->funcs->set_batch_command, CAMERA_ERROR_NOT_IMPLEMENTED);
- return handle->funcs->set_batch_command(camera_handle, batch_command, error_command);
+ return handle->funcs->set_batch_command(handle->backend, batch_command, error_command);
}