BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia_vid_dev_factory_op Struct Reference

#include <videodev_imp.h>

Data Fields

pj_status_t(* init )(pjmedia_vid_dev_factory *f)
 
pj_status_t(* destroy )(pjmedia_vid_dev_factory *f)
 
unsigned(* get_dev_count )(pjmedia_vid_dev_factory *f)
 
pj_status_t(* get_dev_info )(pjmedia_vid_dev_factory *f, unsigned index, pjmedia_vid_dev_info *info)
 
pj_status_t(* default_param )(pj_pool_t *pool, pjmedia_vid_dev_factory *f, unsigned index, pjmedia_vid_dev_param *param)
 
pj_status_t(* create_stream )(pjmedia_vid_dev_factory *f, pjmedia_vid_dev_param *param, const pjmedia_vid_dev_cb *cb, void *user_data, pjmedia_vid_dev_stream **p_vid_strm)
 
pj_status_t(* refresh )(pjmedia_vid_dev_factory *f)
 

Detailed Description

Video device factory operations.

Field Documentation

◆ init

pj_status_t(* pjmedia_vid_dev_factory_op::init) (pjmedia_vid_dev_factory *f)

Initialize the video device factory.

Parameters
fThe video device factory.

◆ destroy

pj_status_t(* pjmedia_vid_dev_factory_op::destroy) (pjmedia_vid_dev_factory *f)

Close this video device factory and release all resources back to the operating system.

Parameters
fThe video device factory.

◆ get_dev_count

unsigned(* pjmedia_vid_dev_factory_op::get_dev_count) (pjmedia_vid_dev_factory *f)

Get the number of video devices installed in the system.

Parameters
fThe video device factory.

◆ get_dev_info

pj_status_t(* pjmedia_vid_dev_factory_op::get_dev_info) (pjmedia_vid_dev_factory *f, unsigned index, pjmedia_vid_dev_info *info)

Get the video device information and capabilities.

Parameters
fThe video device factory.
indexDevice index.
infoThe video device information structure which will be initialized by this function once it returns successfully.

◆ default_param

pj_status_t(* pjmedia_vid_dev_factory_op::default_param) (pj_pool_t *pool, pjmedia_vid_dev_factory *f, unsigned index, pjmedia_vid_dev_param *param)

Initialize the specified video device parameter with the default values for the specified device.

Parameters
fThe video device factory.
indexDevice index.
paramThe video device parameter.

◆ create_stream

pj_status_t(* pjmedia_vid_dev_factory_op::create_stream) (pjmedia_vid_dev_factory *f, pjmedia_vid_dev_param *param, const pjmedia_vid_dev_cb *cb, void *user_data, pjmedia_vid_dev_stream **p_vid_strm)

Open the video device and create video stream. See pjmedia_vid_dev_stream_create()

◆ refresh

pj_status_t(* pjmedia_vid_dev_factory_op::refresh) (pjmedia_vid_dev_factory *f)

Refresh the list of video devices installed in the system.

Parameters
fThe video device factory.

The documentation for this struct was generated from the following file:
  • videodev_imp.h

 


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