当前位置: 首页>>代码示例>>C++>>正文


C++ VENDOR_CALL函数代码示例

本文整理汇总了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;
}
开发者ID:Aromer-room,项目名称:G620S-CM12.1,代码行数:16,代码来源:CameraWrapper.cpp

示例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;
}
开发者ID:smartguy044,项目名称:android_device_lge_g3-common,代码行数:26,代码来源:CameraWrapper.cpp

示例3: camera_preview_enabled

int camera_preview_enabled(struct camera_device * device)
{
    if(!device)
        return -EINVAL;

    return VENDOR_CALL(device, preview_enabled);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例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);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例5: camera_dump

int camera_dump(struct camera_device * device, int fd)
{
    if(!device)
        return -EINVAL;

    return VENDOR_CALL(device, dump, fd);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例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);
}
开发者ID:smartguy044,项目名称:android_device_lge_g3-common,代码行数:16,代码来源:CameraWrapper.cpp

示例7: camera_cancel_picture

int camera_cancel_picture(struct camera_device * device)
{
    if(!device)
        return -EINVAL;

    return VENDOR_CALL(device, cancel_picture);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例8: camera_recording_enabled

int camera_recording_enabled(struct camera_device * device)
{
    if(!device)
        return -EINVAL;

    return VENDOR_CALL(device, recording_enabled);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例9: camera_start_recording

int camera_start_recording(struct camera_device * device)
{
    if(!device)
        return EINVAL;

    return VENDOR_CALL(device, start_recording);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例10: camera_stop_recording

void camera_stop_recording(struct camera_device * device)
{
    if(!device)
        return;

    VENDOR_CALL(device, stop_recording);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例11: camera_release

void camera_release(struct camera_device * device)
{
    if(!device)
        return;

    VENDOR_CALL(device, release);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例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);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例13: camera_stop_preview

void camera_stop_preview(struct camera_device * device)
{
    if(!device)
        return;

    VENDOR_CALL(device, stop_preview);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例14: camera_start_preview

int camera_start_preview(struct camera_device * device)
{
    if(!device)
        return -EINVAL;

    return VENDOR_CALL(device, start_preview);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp

示例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);
}
开发者ID:tuxafgmur,项目名称:DhollmenK_device,代码行数:7,代码来源:CameraWrapper.cpp


注:本文中的VENDOR_CALL函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。