本文整理汇总了C++中VENDOR_CALL函数的典型用法代码示例。如果您正苦于以下问题:C++ VENDOR_CALL函数的具体用法?C++ VENDOR_CALL怎么用?C++ VENDOR_CALL使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了VENDOR_CALL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ALOGV
static char *camera_get_parameters(struct camera_device *device)
{
ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device,
(uintptr_t)(((wrapper_camera_device_t*)device)->vendor));
if (!device)
return NULL;
char *params = VENDOR_CALL(device, get_parameters);
char *tmp = camera_fixup_getparams(CAMERA_ID(device), params);
VENDOR_CALL(device, put_parameters, params);
params = tmp;
return params;
}
示例2: camera_set_parameters
static int camera_set_parameters(struct camera_device *device,
const char *params)
{
ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device,
(uintptr_t)(((wrapper_camera_device_t*)device)->vendor));
if (!device)
return -EINVAL;
char *tmp = NULL;
tmp = camera_fixup_setparams(CAMERA_ID(device), params);
#ifdef LOG_NDEBUG
__android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, tmp);
#endif
if (flipZsl) {
camera_stop_preview(device);
}
int ret = VENDOR_CALL(device, set_parameters, tmp);
if (flipZsl) {
camera_start_preview(device);
flipZsl = false;
}
return ret;
}
示例3: camera_preview_enabled
int camera_preview_enabled(struct camera_device * device)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, preview_enabled);
}
示例4: camera_cancel_auto_focus
int camera_cancel_auto_focus(struct camera_device * device)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, cancel_auto_focus);
}
示例5: camera_dump
int camera_dump(struct camera_device * device, int fd)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, dump, fd);
}
示例6: camera_auto_focus
static int camera_auto_focus(struct camera_device *device)
{
ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device,
(uintptr_t)(((wrapper_camera_device_t*)device)->vendor));
if (!device)
return -EINVAL;
if (activeFocusMove) {
ALOGV("FORCED FOCUS MOVE STOP");
VENDOR_CALL(device, cancel_auto_focus);
activeFocusMove = false;
}
return VENDOR_CALL(device, auto_focus);
}
示例7: camera_cancel_picture
int camera_cancel_picture(struct camera_device * device)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, cancel_picture);
}
示例8: camera_recording_enabled
int camera_recording_enabled(struct camera_device * device)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, recording_enabled);
}
示例9: camera_start_recording
int camera_start_recording(struct camera_device * device)
{
if(!device)
return EINVAL;
return VENDOR_CALL(device, start_recording);
}
示例10: camera_stop_recording
void camera_stop_recording(struct camera_device * device)
{
if(!device)
return;
VENDOR_CALL(device, stop_recording);
}
示例11: camera_release
void camera_release(struct camera_device * device)
{
if(!device)
return;
VENDOR_CALL(device, release);
}
示例12: camera_store_meta_data_in_buffers
int camera_store_meta_data_in_buffers(struct camera_device * device, int enable)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, store_meta_data_in_buffers, enable);
}
示例13: camera_stop_preview
void camera_stop_preview(struct camera_device * device)
{
if(!device)
return;
VENDOR_CALL(device, stop_preview);
}
示例14: camera_start_preview
int camera_start_preview(struct camera_device * device)
{
if(!device)
return -EINVAL;
return VENDOR_CALL(device, start_preview);
}
示例15: camera_msg_type_enabled
int camera_msg_type_enabled(struct camera_device * device, int32_t msg_type)
{
if(!device)
return 0;
return VENDOR_CALL(device, msg_type_enabled, msg_type);
}