AVI player virtual deviceThis describes a virtual capture device which takes its input from an AVI file.
More...
◆ pjmedia_avi_dev_param_default()
Reset pjmedia_avi_dev_param with the default settings. This mostly will reset all values to NULL or zero.
- Parameters
-
p | The parameter to be initialized. |
◆ pjmedia_avi_dev_create_factory()
Create a AVI device factory, and register it to the video device subsystem. At least one factory needs to be created before an AVI device can be allocated and used, and normally only one factory is needed per application.
- Parameters
-
pf | Pool factory to be used. |
max_dev | Number of devices to be reserved. |
p_ret | Pointer to return the factory instance, to be used when allocating a virtual device. |
- Returns
- PJ_SUCCESS on success or the appropriate error code.
◆ pjmedia_avi_dev_alloc()
Allocate one device ID to be used to play the specified AVI file in the parameter.
- Parameters
-
f | The factory. |
param | The parameter, with at least the AVI file path set. |
p_id | Optional pointer to receive device ID to play the file. |
- Returns
- PJ_SUCCESS or the appropriate error code.
◆ pjmedia_avi_dev_get_param()
Retrieve the parameters set for the virtual device.
- Parameters
-
id | Device ID. |
param | Structure to receive the settings. |
- Returns
- PJ_SUCCESS or the appropriate error code.
◆ pjmedia_avi_dev_free()
Free the resources associated with the virtual device.
- Parameters
-
- Returns
- PJ_SUCCESS or the appropriate error code.
References PJ_END_DECL.