a-mediastreamer2  5.2.0
Typedefs | Functions
Camera API - manage video capture devices

Typedefs

typedef struct _MSWebCamManager MSWebCamManager
 
typedef struct _MSWebCamDesc MSWebCamDesc
 
typedef struct _MSWebCam MSWebCam
 

Functions

MSWebCamManagerms_web_cam_manager_get (void)
 
void ms_web_cam_manager_destroy (void)
 
MSWebCamms_web_cam_manager_get_cam (MSWebCamManager *m, const char *id)
 
MSWebCamms_web_cam_manager_get_default_cam (MSWebCamManager *m)
 
const MSList * ms_web_cam_manager_get_list (MSWebCamManager *m)
 
void ms_web_cam_manager_add_cam (MSWebCamManager *m, MSWebCam *c)
 
void ms_web_cam_manager_prepend_cam (MSWebCamManager *m, MSWebCam *c)
 
void ms_web_cam_manager_register_desc (MSWebCamManager *m, MSWebCamDesc *desc)
 
void ms_web_cam_manager_reload (MSWebCamManager *m)
 
void ms_web_cam_manager_update (MSWebCamManager *m)
 
struct _MSFilter * ms_web_cam_create_reader (MSWebCam *obj)
 
MSWebCamms_web_cam_new (MSWebCamDesc *desc)
 
void ms_web_cam_destroy (MSWebCam *obj)
 
const char * ms_web_cam_get_driver_type (const MSWebCam *obj)
 
const char * ms_web_cam_get_name (const MSWebCam *obj)
 
const char * ms_web_cam_get_string_id (MSWebCam *obj)
 

Detailed Description

Typedef Documentation

◆ MSWebCamManager

Structure for webcam manager object.

◆ MSWebCamDesc

Structure for sound card description object.

◆ MSWebCam

Structure for sound card object.

Function Documentation

◆ ms_web_cam_manager_get()

MSWebCamManager* ms_web_cam_manager_get ( void  )

Retreive a webcam manager object.

Returns: MSWebCamManager if successful, NULL otherwise.

◆ ms_web_cam_manager_destroy()

void ms_web_cam_manager_destroy ( void  )

Destroy the webcam manager object.

◆ ms_web_cam_manager_get_cam()

MSWebCam* ms_web_cam_manager_get_cam ( MSWebCamManager m,
const char *  id 
)

Retreive a webcam object based on its name.

Parameters
mA webcam manager containing webcam.
idA name for card to search.

Returns: MSWebCam if successful, NULL otherwise.

◆ ms_web_cam_manager_get_default_cam()

MSWebCam* ms_web_cam_manager_get_default_cam ( MSWebCamManager m)

Retreive the default webcam object.

Parameters
mA webcam manager containing webcams.

Returns: MSWebCam if successful, NULL otherwise.

◆ ms_web_cam_manager_get_list()

const MSList* ms_web_cam_manager_get_list ( MSWebCamManager m)

Retreive the list of webcam objects.

Parameters
mA webcam manager containing webcams.

Returns: MSList of cards if successful, NULL otherwise.

◆ ms_web_cam_manager_add_cam()

void ms_web_cam_manager_add_cam ( MSWebCamManager m,
MSWebCam c 
)

Add a webcam object in a webcam manager's list.

Parameters
mA webcam manager containing webcams
cA web cam object.

◆ ms_web_cam_manager_prepend_cam()

void ms_web_cam_manager_prepend_cam ( MSWebCamManager m,
MSWebCam c 
)

Add a webcam object on top of list of the webcam manager's list.

Parameters
mA webcam manager containing webcams
cA web cam object.

◆ ms_web_cam_manager_register_desc()

void ms_web_cam_manager_register_desc ( MSWebCamManager m,
MSWebCamDesc desc 
)

Register a webcam descriptor in a webcam manager.

Parameters
mA webcam manager containing sound cards.
descA webcam descriptor object.

◆ ms_web_cam_manager_reload()

void ms_web_cam_manager_reload ( MSWebCamManager m)

Ask all registered MSWebCamDesc to detect the webcams again.

Parameters
mA webcam manager

◆ ms_web_cam_manager_update()

void ms_web_cam_manager_update ( MSWebCamManager m)

Ask all registered MSWebCamDesc to detect webcam modifications.

Parameters
mA webcam manager

◆ ms_web_cam_create_reader()

struct _MSFilter* ms_web_cam_create_reader ( MSWebCam obj)

Create an INPUT filter based on the selected camera.

Parameters
objA webcam object.

Returns: A MSFilter if successful, NULL otherwise.

◆ ms_web_cam_new()

MSWebCam* ms_web_cam_new ( MSWebCamDesc desc)

Create a new webcam object.

Parameters
descA webcam description object.

Returns: MSWebCam if successful, NULL otherwise.

◆ ms_web_cam_destroy()

void ms_web_cam_destroy ( MSWebCam obj)

Destroy webcam object.

Parameters
objA MSWebCam object.

◆ ms_web_cam_get_driver_type()

const char* ms_web_cam_get_driver_type ( const MSWebCam obj)

Retreive a webcam's driver type string.

Internal driver types are either: "V4L V4LV2"

Parameters
objA webcam object.

Returns: a string if successful, NULL otherwise.

◆ ms_web_cam_get_name()

const char* ms_web_cam_get_name ( const MSWebCam obj)

Retreive a webcam's name.

Parameters
objA webcam object.

Returns: a string if successful, NULL otherwise.

◆ ms_web_cam_get_string_id()

const char* ms_web_cam_get_string_id ( MSWebCam obj)

Retreive webcam's id: ($driver_type: $name).

Parameters
objA webcam object.

Returns: A string if successful, NULL otherwise.