Qcarcam: Api

The QCarCam API powers a variety of automotive camera applications:

QCarCam API正是连接AIS Client与AIS Server的纽带,它将复杂的硬件操作封装成一系列简洁易用的函数接口,使得上层应用可以像操作文件一样,轻松地调用底层的摄像头功能。

Synchronizes exposure timing across multiple physical sensors to ensure seamless stitching for 360-degree surround-view systems. Technical Integration Flow qcarcam api

+-------------------------------------------------------------+ | Automotive Applications (ADAS / EVS) | +-------------------------------------------------------------+ | v +-------------------------------------------------------------+ | QCarCam API | +-------------------------------------------------------------+ | v +-------------------------------------------------------------+ | Qualcomm Automotive Camera Driver | | (Cross-VM Hypervisor / HAB Stream) | +-------------------------------------------------------------+ | v +-------------------------------------------------------------+ | Snapdragon SoCs & Spectra ISP Hardware | +-------------------------------------------------------------+ Hypervisor and Cross-VM Bridging

Provides mechanisms to set up the Qualcomm Camera Driver (QCD) and manage data flow through hardware and software image processing nodes. Architecture and Integration The QCarCam API powers a variety of automotive

It enables direct interaction with the Image Signal Processor (ISP), allowing for granular control over camera hardware.

| 接口名称 | 功能描述 | | :--- | :--- | | qcarcam_initialize | 初始化QCarCam环境,建立应用与底层AIS服务的通信通道,是使用任何其他API的前提。 | | qcarcam_uninitialize | 释放QCarCam资源,断开连接。必须在应用退出时调用,否则可能导致摄像头设备无法被二次打开。 | | qcarcam_query_inputs | 查询系统中可用的摄像头设备数量及其属性,如设备ID、支持的图像分辨率、像素格式(如NV12, YUV422)等。 | | qcarcam_open | 打开指定的摄像头设备,建立数据流通道。输入参数为设备ID,通常从 qcarcam_query_inputs 获取。 | | qcarcam_close | 关闭已打开的摄像头设备,释放资源。 | | qcarcam_stream_on | 启动视频流传输,开始从摄像头获取图像数据。 | | qcarcam_stream_off | 停止视频流传输。 | | qcarcam_get_frame | 同步或异步地从驱动获取一帧图像数据。 | | qcarcam_release_frame | 释放已获取的图像数据缓冲区。这是防止内存泄漏的关键步骤,。 | | 接口名称 | 功能描述 | | :--- |

This subset of the QCarCam API provides public interfaces that are safety-certified, which is critical for automotive features like rearview cameras or Advanced Driver Assistance Systems (ADAS). Camera Driver Integration:

Bypasses heavy multimedia framework wrappers to feed raw or ISP-processed YUV/RAW frames directly into computer vision pipelines or display buffers.

qcarcam_init_params_t init_param = .debug_mask = QCARCAM_DBG_INFO, .num_sessions = 1 ; qcarcam_init(&init_param);

The API provides a qcarcam_set_sync_config() function that ties capture start times across sessions: