BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

port.h File Reference

Port interface declaration. More...

Data Structures

struct  pjmedia_port_info
 
struct  pjmedia_port
 
struct  pjmedia_port::port_data
 

Macros

#define DEPRECATED_FOR_TICKET_2251   0
 
#define PJMEDIA_PORT_SIG(a, b, c, d)   PJMEDIA_OBJ_SIG(a,b,c,d)
 

Enumerations

enum  pjmedia_port_op {
  PJMEDIA_PORT_NO_CHANGE ,
  PJMEDIA_PORT_DISABLE ,
  PJMEDIA_PORT_MUTE ,
  PJMEDIA_PORT_ENABLE
}
 

Functions

unsigned PJMEDIA_PIA_SRATE (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_CCNT (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_BITS (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_PTIME (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_SPF (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_AVG_BPS (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_MAX_BPS (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_AVG_FSZ (const pjmedia_port_info *pia)
 
unsigned PJMEDIA_PIA_MAX_FSZ (const pjmedia_port_info *pia)
 
pj_status_t pjmedia_port_info_init (pjmedia_port_info *info, const pj_str_t *name, unsigned signature, unsigned clock_rate, unsigned channel_count, unsigned bits_per_sample, unsigned samples_per_frame)
 
pj_status_t pjmedia_port_info_init2 (pjmedia_port_info *info, const pj_str_t *name, unsigned signature, pjmedia_dir dir, const pjmedia_format *fmt)
 
pjmedia_clock_srcpjmedia_port_get_clock_src (pjmedia_port *port, pjmedia_dir dir)
 
pj_status_t pjmedia_port_get_frame (pjmedia_port *port, pjmedia_frame *frame)
 
pj_status_t pjmedia_port_put_frame (pjmedia_port *port, pjmedia_frame *frame)
 
pj_status_t pjmedia_port_destroy (pjmedia_port *port)
 
pj_status_t pjmedia_port_init_grp_lock (pjmedia_port *port, pj_pool_t *pool, pj_grp_lock_t *glock)
 
pj_status_t pjmedia_port_add_ref (pjmedia_port *port)
 
pj_status_t pjmedia_port_dec_ref (pjmedia_port *port)
 

 


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