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

h263_packetizer.h File Reference

Packetizes/unpacketizes H.263 bitstream into RTP payload. More...

Data Structures

struct  pjmedia_h263_packetizer_cfg
 

Typedefs

typedef struct pjmedia_h263_packetizer pjmedia_h263_packetizer
 

Enumerations

enum  pjmedia_h263_packetizer_mode {
  PJMEDIA_H263_PACKETIZER_MODE_RFC4629 ,
  PJMEDIA_H263_PACKETIZER_MODE_RFC2190
}
 

Functions

pj_status_t pjmedia_h263_packetizer_create (pj_pool_t *pool, const pjmedia_h263_packetizer_cfg *cfg, pjmedia_h263_packetizer **p_pktz)
 
pj_status_t pjmedia_h263_packetize (pjmedia_h263_packetizer *pktz, pj_uint8_t *bits, pj_size_t bits_len, unsigned *bits_pos, const pj_uint8_t **payload, pj_size_t *payload_len)
 
pj_status_t pjmedia_h263_unpacketize (pjmedia_h263_packetizer *pktz, const pj_uint8_t *payload, pj_size_t payload_len, pj_uint8_t *bits, pj_size_t bits_size, unsigned *bits_pos)
 

Typedef Documentation

◆ pjmedia_h263_packetizer

Opaque declaration for H.263 packetizer.

Enumeration Type Documentation

◆ pjmedia_h263_packetizer_mode

Enumeration of H.263 packetization modes.

Enumerator
PJMEDIA_H263_PACKETIZER_MODE_RFC4629 

H.263 RTP packetization using RFC 4629.

PJMEDIA_H263_PACKETIZER_MODE_RFC2190 

H.263 RTP packetization using legacy RFC 2190. This is currently not supported.

Function Documentation

◆ pjmedia_h263_packetizer_create()

pj_status_t pjmedia_h263_packetizer_create ( pj_pool_t pool,
const pjmedia_h263_packetizer_cfg cfg,
pjmedia_h263_packetizer **  p_pktz 
)

Create H.263 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_h263_packetize()

pj_status_t pjmedia_h263_packetize ( pjmedia_h263_packetizer pktz,
pj_uint8_t bits,
pj_size_t  bits_len,
unsigned *  bits_pos,
const pj_uint8_t **  payload,
pj_size_t payload_len 
)

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

Parameters
pktzThe packetizer.
bitsThe picture bitstream to be packetized.
bits_lenThe length of the bitstream.
bits_posThe bitstream offset to be packetized.
payloadThe output payload.
payload_lenThe output payload length.
Returns
PJ_SUCCESS on success.

◆ pjmedia_h263_unpacketize()

pj_status_t pjmedia_h263_unpacketize ( pjmedia_h263_packetizer pktz,
const pj_uint8_t payload,
pj_size_t  payload_len,
pj_uint8_t bits,
pj_size_t  bits_size,
unsigned *  bits_pos 
)

Append an RTP payload to an H.263 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.
bitsThe bitstream buffer.
bits_sizeThe bitstream buffer size.
bits_posThe bitstream offset to put the unpacketized payload in the bitstream, upon return, this will be updated to the latest offset as a result of the unpacketized payload.
Returns
PJ_SUCCESS on success.

References PJ_END_DECL.

 


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