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

vpx_packetizer.h File Reference

Packetizes VPX bitstream into RTP payload and vice versa. More...

Data Structures

struct  pjmedia_vpx_packetizer_cfg
 

Typedefs

typedef struct pjmedia_vpx_packetizer pjmedia_vpx_packetizer
 

Functions

void pjmedia_vpx_packetizer_cfg_default (pjmedia_vpx_packetizer_cfg *cfg)
 
pj_status_t pjmedia_vpx_packetizer_create (pj_pool_t *pool, const pjmedia_vpx_packetizer_cfg *cfg, pjmedia_vpx_packetizer **p_pktz)
 
pj_status_t pjmedia_vpx_packetize (const pjmedia_vpx_packetizer *pktz, pj_size_t bits_len, unsigned *bits_pos, pj_bool_t is_keyframe, pj_uint8_t **payload, pj_size_t *payload_len)
 
pj_status_t pjmedia_vpx_unpacketize (pjmedia_vpx_packetizer *pktz, const pj_uint8_t *payload, pj_size_t payload_len, unsigned *payload_desc_len)
 

Typedef Documentation

◆ pjmedia_vpx_packetizer

Opaque declaration for VPX packetizer.

Function Documentation

◆ pjmedia_vpx_packetizer_cfg_default()

void pjmedia_vpx_packetizer_cfg_default ( pjmedia_vpx_packetizer_cfg cfg)

Use this function to initialize VPX packetizer config.

Parameters
cfgThe VPX packetizer config to be initialized.

◆ pjmedia_vpx_packetizer_create()

pj_status_t pjmedia_vpx_packetizer_create ( pj_pool_t pool,
const pjmedia_vpx_packetizer_cfg cfg,
pjmedia_vpx_packetizer **  p_pktz 
)

Create VPX packetizer.

Parameters
poolThe memory pool.
cfgPacketizer settings, if NULL, default setting will be used.
p_pktzPointer to receive the packetizer.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vpx_packetize()

pj_status_t pjmedia_vpx_packetize ( const pjmedia_vpx_packetizer pktz,
pj_size_t  bits_len,
unsigned *  bits_pos,
pj_bool_t  is_keyframe,
pj_uint8_t **  payload,
pj_size_t payload_len 
)

Generate an RTP payload from a VPX picture bitstream. Note that this function will apply in-place processing, so the bitstream may be modified during the packetization.

Parameters
pktzThe packetizer.
bits_lenThe length of the bitstream.
bits_posThe bitstream offset to be packetized.
is_keyframeThe frame is keyframe.
payloadThe output payload.
payload_lenThe output payload length, on input it represents max payload length.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vpx_unpacketize()

pj_status_t pjmedia_vpx_unpacketize ( pjmedia_vpx_packetizer pktz,
const pj_uint8_t payload,
pj_size_t  payload_len,
unsigned *  payload_desc_len 
)

Append an RTP payload to an VPX picture bitstream. Note that in case of noticing packet lost, application should keep calling this function with payload pointer set to NULL, as the packetizer need to update its internal state.

Parameters
pktzThe packetizer.
payloadThe payload to be unpacketized.
payload_lenThe payload length.
payload_desc_lenThe payload description length.
Returns
PJ_SUCCESS on success.

References PJ_END_DECL.

 


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