Home --> Documentations --> PJMEDIA Reference

AVI Player Virtual Device

AVI player virtual deviceThis describes a virtual capture device which takes its input from an AVI file. More...

Data Structures

struct  pjmedia_avi_dev_param


void pjmedia_avi_dev_param_default (pjmedia_avi_dev_param *p)
pj_status_t pjmedia_avi_dev_create_factory (pj_pool_factory *pf, unsigned max_dev, pjmedia_vid_dev_factory **p_ret)
pj_status_t pjmedia_avi_dev_alloc (pjmedia_vid_dev_factory *f, pjmedia_avi_dev_param *param, pjmedia_vid_dev_index *p_id)
pj_status_t pjmedia_avi_dev_get_param (pjmedia_vid_dev_index id, pjmedia_avi_dev_param *param)
pj_status_t pjmedia_avi_dev_free (pjmedia_vid_dev_index id)

Detailed Description

Function Documentation

◆ pjmedia_avi_dev_param_default()

void pjmedia_avi_dev_param_default ( pjmedia_avi_dev_param p)

Reset pjmedia_avi_dev_param with the default settings. This mostly will reset all values to NULL or zero.

pThe parameter to be initialized.

◆ pjmedia_avi_dev_create_factory()

pj_status_t pjmedia_avi_dev_create_factory ( pj_pool_factory pf,
unsigned  max_dev,
pjmedia_vid_dev_factory **  p_ret 

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.

pfPool factory to be used.
max_devNumber of devices to be reserved.
p_retPointer to return the factory instance, to be used when allocating a virtual device.
PJ_SUCCESS on success or the appropriate error code.

◆ pjmedia_avi_dev_alloc()

pj_status_t pjmedia_avi_dev_alloc ( pjmedia_vid_dev_factory f,
pjmedia_avi_dev_param param,
pjmedia_vid_dev_index p_id 

Allocate one device ID to be used to play the specified AVI file in the parameter.

paramThe parameter, with at least the AVI file path set.
p_idOptional pointer to receive device ID to play the file.
PJ_SUCCESS or the appropriate error code.

◆ pjmedia_avi_dev_get_param()

pj_status_t pjmedia_avi_dev_get_param ( pjmedia_vid_dev_index  id,
pjmedia_avi_dev_param param 

Retrieve the parameters set for the virtual device.

idDevice ID.
prmStructure to receive the settings.
PJ_SUCCESS or the appropriate error code.

◆ pjmedia_avi_dev_free()

pj_status_t pjmedia_avi_dev_free ( pjmedia_vid_dev_index  id)

Free the resources associated with the virtual device.

idThe device ID.
PJ_SUCCESS or the appropriate error code.


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.