Home --> Documentations --> PJMEDIA Reference
Packetizes/unpacketizes H.263 bitstream into RTP payload.
More...
|
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) |
|
◆ pjmedia_h263_packetizer
Opaque declaration for H.263 packetizer.
◆ 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.
|
◆ pjmedia_h263_packetizer_create()
Create H.263 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_h263_packetize()
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
-
pktz | The packetizer. |
bits | The picture bitstream to be packetized. |
bits_len | The length of the bitstream. |
bits_pos | The bitstream offset to be packetized. |
payload | The output payload. |
payload_len | The output payload length. |
- Returns
- PJ_SUCCESS on success.
◆ pjmedia_h263_unpacketize()
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
-
pktz | The packetizer. |
payload | The payload to be unpacketized. |
payload_len | The payload length. |
bits | The bitstream buffer. |
bits_size | The bitstream buffer size. |
bits_pos | The 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.
|