mediastreamer2 5.2.0
|
Data Structures | |
struct | _MSWebCamManager |
struct | _MSWebCamDesc |
struct | _MSWebCam |
Macros | |
#define | MS_STATIC_IMAGE_SET_IMAGE MS_FILTER_METHOD(MS_STATIC_IMAGE_ID,0,const char) |
Typedefs | |
typedef struct _MSWebCamManager | MSWebCamManager |
typedef void(* | MSWebCamDetectFunc) (MSWebCamManager *obj) |
typedef void(* | MSWebCamInitFunc) (struct _MSWebCam *obj) |
typedef void(* | MSWebCamUninitFunc) (struct _MSWebCam *obj) |
typedef struct _MSFilter *(* | MSWebCamCreateReaderFunc) (struct _MSWebCam *obj) |
typedef bool_t(* | MSWebCamEncodeToMimeType) (struct _MSWebCam *obj, const char *mime_type) |
typedef struct _MSWebCamDesc | MSWebCamDesc |
typedef struct _MSWebCam | MSWebCam |
#define MS_STATIC_IMAGE_SET_IMAGE MS_FILTER_METHOD(MS_STATIC_IMAGE_ID,0,const char) |
method for the "nowebcam" filter
Structure for sound card object.
Structure for sound card description object.
Structure for webcam manager object.
Create an INPUT filter based on the selected camera.
obj | A webcam object. |
Returns: A MSFilter if successfull, NULL otherwise.
void ms_web_cam_destroy | ( | MSWebCam * | obj | ) |
Destroy webcam object.
obj | A MSWebCam object. |
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"
obj | A webcam object. |
Returns: a string if successfull, NULL otherwise.
Returns the factory from the webcam object.
c | MSWebCam used to get to the factory. |
const char * ms_web_cam_get_name | ( | const MSWebCam * | obj | ) |
Retreive a webcam's name.
obj | A webcam object. |
Returns: a string if successfull, NULL otherwise.
const char * ms_web_cam_get_string_id | ( | MSWebCam * | obj | ) |
Retreive webcam's id: ($driver_type: $name).
obj | A webcam object. |
Returns: A string if successfull, NULL otherwise.
void ms_web_cam_manager_add_cam | ( | MSWebCamManager * | m, |
MSWebCam * | c | ||
) |
Add a webcam object in a webcam manager's list.
m | A webcam manager containing webcams |
c | A web cam object. |
void ms_web_cam_manager_destroy | ( | MSWebCamManager * | scm | ) |
Destroy the webcam manager object. You usually don't need this function, ms_factory_destroy() doing the job for you.
MSWebCamManager * ms_web_cam_manager_get | ( | void | ) |
Retrieve a webcam manager object.
MSWebCam * ms_web_cam_manager_get_cam | ( | MSWebCamManager * | m, |
const char * | id | ||
) |
Retreive a webcam object based on its name.
m | A webcam manager containing webcam. |
id | A name for card to search. |
Returns: MSWebCam if successfull, NULL otherwise.
MSWebCam * ms_web_cam_manager_get_default_cam | ( | MSWebCamManager * | m | ) |
Retreive the default webcam object.
m | A webcam manager containing webcams. |
Returns: MSWebCam if successfull, NULL otherwise.
const MSList * ms_web_cam_manager_get_list | ( | MSWebCamManager * | m | ) |
Retreive the list of webcam objects.
m | A webcam manager containing webcams. |
Returns: MSList of cards if successfull, NULL otherwise.
MSWebCamManager * ms_web_cam_manager_new | ( | void | ) |
Create a webcam manager object. You usually do not need this function, instead get the webcam manager from a factory with ms_factory_get_web_cam_manager().
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.
m | A webcam manager containing webcams |
c | A web cam object. |
void ms_web_cam_manager_register_desc | ( | MSWebCamManager * | m, |
MSWebCamDesc * | desc | ||
) |
Register a webcam descriptor in a webcam manager.
m | A webcam manager containing sound cards. |
desc | A webcam descriptor object. |
void ms_web_cam_manager_reload | ( | MSWebCamManager * | m | ) |
Ask all registered MSWebCamDesc to detect the webcams again.
m | A webcam manager |
MSWebCam * ms_web_cam_new | ( | MSWebCamDesc * | desc | ) |
Create a new webcam object.
desc | A webcam description object. |
Returns: MSWebCam if successfull, NULL otherwise.