BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJMEDIA Reference

Video Device Implementors API

API for video device implementors. More...

Data Structures

struct  pjmedia_vid_dev_factory_op
 
struct  pjmedia_vid_dev_factory
 
struct  pjmedia_vid_dev_stream_op
 
struct  pjmedia_vid_dev_stream
 

Functions

pj_status_t pjmedia_vid_dev_get_local_index (pjmedia_vid_dev_index id, pjmedia_vid_dev_factory **p_f, unsigned *p_local_index)
 
pj_status_t pjmedia_vid_dev_get_global_index (const pjmedia_vid_dev_factory *f, unsigned local_idx, pjmedia_vid_dev_index *pid)
 

Detailed Description

Function Documentation

◆ pjmedia_vid_dev_get_local_index()

pj_status_t pjmedia_vid_dev_get_local_index ( pjmedia_vid_dev_index  id,
pjmedia_vid_dev_factory **  p_f,
unsigned *  p_local_index 
)

Internal API: return the factory instance and device index that's local to the factory for a given device ID.

Parameters
idDevice id.
p_fOut: factory instance
p_local_indexOut: device index within the factory
Returns
PJ_SUCCESS on success.

◆ pjmedia_vid_dev_get_global_index()

pj_status_t pjmedia_vid_dev_get_global_index ( const pjmedia_vid_dev_factory f,
unsigned  local_idx,
pjmedia_vid_dev_index pid 
)

Internal API: return the global device index given a factory instance and a local device index.

Parameters
fFactory.
local_idxLocal index.
pidReturned global index.
Returns
PJ_SUCCESS on success.

 


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