ucamera

函数

int32_t ucamera_service_init (const char *dev_name)
 
int32_t ucamera_service_uninit (void)
 
int32_t ucamera_service_config (const char *url)
 
int32_t ucamera_service_start (const char *url)
 
int32_t ucamera_service_disconnect (void)
 
frame_buffer_t * ucamera_service_get_frame (void)
 
int ucamera_service_save_frame (frame_buffer_t *frame, const char *path)
 

详细描述

函数说明

◆ ucamera_service_config()

int32_t ucamera_service_config ( const char *  url)

Config frame parameters of ucamera service

返回
frame buffer content.

◆ ucamera_service_disconnect()

int32_t ucamera_service_disconnect ( void  )

Stop the ucamera service

返回
0 on success, negative error on failure.

◆ ucamera_service_get_frame()

frame_buffer_t* ucamera_service_get_frame ( void  )

Get one frame of camera device.

返回
frame buffer content.

◆ ucamera_service_init()

int32_t ucamera_service_init ( const char *  dev_name)

Init the ucamera module.

参数
[in]dev_namedevice name.
[in]dev_namedevice name.
返回
0 on success, negative error on failure.

◆ ucamera_service_save_frame()

int ucamera_service_save_frame ( frame_buffer_t *  frame,
const char *  path 
)

Init the ucamera module.

参数
[in]frameframe buffer content.
[in]pathpath of saving image.
返回
0 on success, negative error on failure.

◆ ucamera_service_start()

int32_t ucamera_service_start ( const char *  url)

Start the ucamera service

返回
0 on success, negative error on failure.

◆ ucamera_service_uninit()

int32_t ucamera_service_uninit ( void  )

Uninit the ucamera module.

返回
0 on success, negative error on failure.