BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

vid_codec.h File Reference

Video codec framework. More...

Data Structures

struct  pjmedia_vid_encode_opt
 
struct  pjmedia_vid_codec_info
 
struct  pjmedia_vid_codec_param
 
struct  pjmedia_vid_codec_op
 
struct  pjmedia_vid_codec
 
struct  pjmedia_vid_codec_factory_op
 
struct  pjmedia_vid_codec_factory
 

Macros

#define PJMEDIA_VID_CODEC_MAX_DEC_FMT_CNT   8
 
#define PJMEDIA_VID_CODEC_MAX_FPS_CNT   16
 
#define PJMEDIA_VID_CODEC_MGR_MAX_CODECS   32
 

Typedefs

typedef struct pjmedia_vid_codec_mgr pjmedia_vid_codec_mgr
 

Enumerations

enum  pjmedia_vid_packing {
  PJMEDIA_VID_PACKING_UNKNOWN ,
  PJMEDIA_VID_PACKING_PACKETS = 1 ,
  PJMEDIA_VID_PACKING_WHOLE = 2
}
 
enum  pjmedia_vid_frm_bit_info { PJMEDIA_VID_FRM_KEYFRAME = 1 }
 

Functions

pjmedia_vid_codec_parampjmedia_vid_codec_param_clone (pj_pool_t *pool, const pjmedia_vid_codec_param *src)
 
pj_status_t pjmedia_vid_codec_mgr_create (pj_pool_t *pool, pjmedia_vid_codec_mgr **mgr)
 
pj_status_t pjmedia_vid_codec_mgr_destroy (pjmedia_vid_codec_mgr *mgr)
 
pjmedia_vid_codec_mgrpjmedia_vid_codec_mgr_instance (void)
 
void pjmedia_vid_codec_mgr_set_instance (pjmedia_vid_codec_mgr *mgr)
 
pj_status_t pjmedia_vid_codec_mgr_register_factory (pjmedia_vid_codec_mgr *mgr, pjmedia_vid_codec_factory *factory)
 
pj_status_t pjmedia_vid_codec_mgr_unregister_factory (pjmedia_vid_codec_mgr *mgr, pjmedia_vid_codec_factory *factory)
 
pj_status_t pjmedia_vid_codec_mgr_enum_codecs (pjmedia_vid_codec_mgr *mgr, unsigned *count, pjmedia_vid_codec_info info[], unsigned *prio)
 
pj_status_t pjmedia_vid_codec_mgr_get_codec_info (pjmedia_vid_codec_mgr *mgr, unsigned pt, const pjmedia_vid_codec_info **info)
 
pj_status_t pjmedia_vid_codec_mgr_get_codec_info2 (pjmedia_vid_codec_mgr *mgr, pjmedia_format_id fmt_id, const pjmedia_vid_codec_info **info)
 
char * pjmedia_vid_codec_info_to_id (const pjmedia_vid_codec_info *info, char *id, unsigned max_len)
 
pj_status_t pjmedia_vid_codec_mgr_find_codecs_by_id (pjmedia_vid_codec_mgr *mgr, const pj_str_t *codec_id, unsigned *count, const pjmedia_vid_codec_info *p_info[], unsigned prio[])
 
pj_status_t pjmedia_vid_codec_mgr_set_codec_priority (pjmedia_vid_codec_mgr *mgr, const pj_str_t *codec_id, pj_uint8_t prio)
 
pj_status_t pjmedia_vid_codec_mgr_get_default_param (pjmedia_vid_codec_mgr *mgr, const pjmedia_vid_codec_info *info, pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_mgr_set_default_param (pjmedia_vid_codec_mgr *mgr, const pjmedia_vid_codec_info *info, const pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_mgr_alloc_codec (pjmedia_vid_codec_mgr *mgr, const pjmedia_vid_codec_info *info, pjmedia_vid_codec **p_codec)
 
pj_status_t pjmedia_vid_codec_mgr_dealloc_codec (pjmedia_vid_codec_mgr *mgr, pjmedia_vid_codec *codec)
 
pj_status_t pjmedia_vid_codec_init (pjmedia_vid_codec *codec, pj_pool_t *pool)
 
pj_status_t pjmedia_vid_codec_open (pjmedia_vid_codec *codec, pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_close (pjmedia_vid_codec *codec)
 
pj_status_t pjmedia_vid_codec_modify (pjmedia_vid_codec *codec, const pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_get_param (pjmedia_vid_codec *codec, pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_encode_begin (pjmedia_vid_codec *codec, const pjmedia_vid_encode_opt *opt, const pjmedia_frame *input, unsigned out_size, pjmedia_frame *output, pj_bool_t *has_more)
 
pj_status_t pjmedia_vid_codec_encode_more (pjmedia_vid_codec *codec, unsigned out_size, pjmedia_frame *output, pj_bool_t *has_more)
 
pj_status_t pjmedia_vid_codec_decode (pjmedia_vid_codec *codec, pj_size_t pkt_count, pjmedia_frame packets[], unsigned out_size, pjmedia_frame *output)
 
pj_status_t pjmedia_vid_codec_recover (pjmedia_vid_codec *codec, unsigned out_size, pjmedia_frame *output)
 

 


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