WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia/videodev.h File Reference

Video device API. More...

Data Structures

struct  pjmedia_vid_dev_hwnd
 
struct  pjmedia_vid_dev_switch_param
 
struct  pjmedia_vid_dev_info
 
struct  pjmedia_vid_dev_cb
 
struct  pjmedia_vid_dev_param
 
struct  pjmedia_vid_driver
 
struct  pjmedia_vid_subsys
 

Typedefs

typedef pj_int32_t pjmedia_vid_dev_index
 
typedef pjmedia_vid_dev_factory *(* pjmedia_vid_dev_factory_create_func_ptr) (pj_pool_factory *)
 

Enumerations

enum  pjmedia_vid_dev_hwnd_type {
  PJMEDIA_VID_DEV_HWND_TYPE_NONE ,
  PJMEDIA_VID_DEV_HWND_TYPE_WINDOWS ,
  PJMEDIA_VID_DEV_HWND_TYPE_IOS ,
  PJMEDIA_VID_DEV_HWND_TYPE_ANDROID
}
 
enum  pjmedia_vid_dev_wnd_flag {
  PJMEDIA_VID_DEV_WND_BORDER = 1 ,
  PJMEDIA_VID_DEV_WND_RESIZABLE = 2
}
 
enum  pjmedia_vid_dev_std_index {
  PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 ,
  PJMEDIA_VID_DEFAULT_RENDER_DEV = -2 ,
  PJMEDIA_VID_INVALID_DEV = -3
}
 
enum  pjmedia_vid_dev_fullscreen_flag {
  PJMEDIA_VID_DEV_WINDOWED = 0 ,
  PJMEDIA_VID_DEV_FULLSCREEN = 1 ,
  PJMEDIA_VID_DEV_FULLSCREEN_DESKTOP = 2
}
 
enum  pjmedia_vid_dev_cap {
  PJMEDIA_VID_DEV_CAP_FORMAT = 1 ,
  PJMEDIA_VID_DEV_CAP_INPUT_SCALE = 2 ,
  PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW = 4 ,
  PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE = 8 ,
  PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION = 16 ,
  PJMEDIA_VID_DEV_CAP_OUTPUT_HIDE = 32 ,
  PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW = 64 ,
  PJMEDIA_VID_DEV_CAP_ORIENTATION = 128 ,
  PJMEDIA_VID_DEV_CAP_SWITCH = 256 ,
  PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW_FLAGS = 512 ,
  PJMEDIA_VID_DEV_CAP_OUTPUT_FULLSCREEN = 1024 ,
  PJMEDIA_VID_DEV_CAP_MAX = 16384
}
 

Functions

pjmedia_vid_subsyspjmedia_get_vid_subsys (void)
 
pj_status_t pjmedia_vid_driver_init (unsigned drv_idx, pj_bool_t refresh)
 
void pjmedia_vid_driver_deinit (unsigned drv_idx)
 
void pjmedia_vid_dev_switch_param_default (pjmedia_vid_dev_switch_param *p)
 
const char * pjmedia_vid_dev_cap_name (pjmedia_vid_dev_cap cap, const char **p_desc)
 
pj_status_t pjmedia_vid_dev_param_set_cap (pjmedia_vid_dev_param *param, pjmedia_vid_dev_cap cap, const void *pval)
 
pj_status_t pjmedia_vid_dev_param_get_cap (const pjmedia_vid_dev_param *param, pjmedia_vid_dev_cap cap, void *pval)
 
pj_status_t pjmedia_vid_dev_refresh (void)
 
unsigned pjmedia_vid_dev_count (void)
 
pj_status_t pjmedia_vid_dev_get_info (pjmedia_vid_dev_index id, pjmedia_vid_dev_info *info)
 
pj_status_t pjmedia_vid_dev_lookup (const char *drv_name, const char *dev_name, pjmedia_vid_dev_index *id)
 
pj_status_t pjmedia_vid_dev_default_param (pj_pool_t *pool, pjmedia_vid_dev_index id, pjmedia_vid_dev_param *param)
 
pj_status_t pjmedia_vid_dev_stream_create (pjmedia_vid_dev_param *param, const pjmedia_vid_dev_cb *cb, void *user_data, pjmedia_vid_dev_stream **p_strm)
 
pj_status_t pjmedia_vid_dev_stream_get_param (pjmedia_vid_dev_stream *strm, pjmedia_vid_dev_param *param)
 
pj_status_t pjmedia_vid_dev_stream_get_cap (pjmedia_vid_dev_stream *strm, pjmedia_vid_dev_cap cap, void *value)
 
pj_status_t pjmedia_vid_dev_stream_set_cap (pjmedia_vid_dev_stream *strm, pjmedia_vid_dev_cap cap, const void *value)
 
pj_status_t pjmedia_vid_dev_stream_start (pjmedia_vid_dev_stream *strm)
 
pj_bool_t pjmedia_vid_dev_stream_is_running (pjmedia_vid_dev_stream *strm)
 
pj_status_t pjmedia_vid_dev_stream_get_frame (pjmedia_vid_dev_stream *strm, pjmedia_frame *frame)
 
pj_status_t pjmedia_vid_dev_stream_put_frame (pjmedia_vid_dev_stream *strm, const pjmedia_frame *frame)
 
pj_status_t pjmedia_vid_dev_stream_stop (pjmedia_vid_dev_stream *strm)
 
pj_status_t pjmedia_vid_dev_stream_destroy (pjmedia_vid_dev_stream *strm)
 

 


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