Packetizes VPX bitstream into RTP payload and vice versa.
More...
|
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) |
|
◆ pjmedia_vpx_packetizer
Opaque declaration for VPX packetizer.
◆ pjmedia_vpx_packetizer_cfg_default()
Use this function to initialize VPX packetizer config.
- Parameters
-
cfg | The VPX packetizer config to be initialized. |
◆ pjmedia_vpx_packetizer_create()
Create VPX packetizer.
- Parameters
-
pool | The memory pool. |
cfg | Packetizer settings, if NULL, default setting will be used. |
p_pktz | Pointer to receive the packetizer. |
- Returns
- PJ_SUCCESS on success.
◆ pjmedia_vpx_packetize()
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
-
pktz | The packetizer. |
bits_len | The length of the bitstream. |
bits_pos | The bitstream offset to be packetized. |
is_keyframe | The frame is keyframe. |
payload | The output payload. |
payload_len | The output payload length, on input it represents max payload length. |
- Returns
- PJ_SUCCESS on success.
◆ pjmedia_vpx_unpacketize()
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
-
pktz | The packetizer. |
payload | The payload to be unpacketized. |
payload_len | The payload length. |
payload_desc_len | The payload description length. |
- Returns
- PJ_SUCCESS on success.
References PJ_END_DECL.