RTS API Documentation
1.10.11
|
Go to the source code of this file.
Typedefs | |
typedef void | switch_packetizer_t |
Enumerations | |
enum | switch_packetizer_bitstream_t { SPT_H264_BITSTREAM, SPT_H264_SIZED_BITSTREAM, SPT_H264_SIGNALE_NALU, SPT_VP8_BITSTREAM, SPT_VP9_BITSTREAM, SPT_INVALID_STREAM } |
Functions | |
switch_packetizer_t * | switch_packetizer_create (switch_packetizer_bitstream_t type, uint32_t slice_size) |
switch_status_t | switch_packetizer_feed (switch_packetizer_t *packetizer, void *data, uint32_t size) |
switch_status_t | switch_packetizer_feed_extradata (switch_packetizer_t *packetizer, void *data, uint32_t size) |
switch_status_t | switch_packetizer_read (switch_packetizer_t *packetizer, switch_frame_t *frame) |
void | switch_packetizer_close (switch_packetizer_t **packetizer) |
typedef void switch_packetizer_t |
Definition at line 35 of file switch_packetizer.h.
Enumerator | |
---|---|
SPT_H264_BITSTREAM | |
SPT_H264_SIZED_BITSTREAM | |
SPT_H264_SIGNALE_NALU | |
SPT_VP8_BITSTREAM | |
SPT_VP9_BITSTREAM | |
SPT_INVALID_STREAM |
Definition at line 37 of file switch_packetizer.h.
void switch_packetizer_close | ( | switch_packetizer_t ** | packetizer | ) |
Definition at line 386 of file switch_packetizer.c.
References h264_packetizer_s::extradata.
switch_packetizer_t* switch_packetizer_create | ( | switch_packetizer_bitstream_t | type, |
uint32_t | slice_size | ||
) |
Definition at line 112 of file switch_packetizer.c.
References memset(), h264_packetizer_s::slice_size, and h264_packetizer_s::type.
switch_status_t switch_packetizer_feed | ( | switch_packetizer_t * | packetizer, |
void * | data, | ||
uint32_t | size | ||
) |
Definition at line 214 of file switch_packetizer.c.
References our_h264_nalu_s::eat, fs_avc_find_startcode(), our_h264_nalu_s::len, MAX_NALUS, memset(), h264_packetizer_s::nalu_current_index, h264_packetizer_s::nalus, SPT_H264_SIGNALE_NALU, SPT_H264_SIZED_BITSTREAM, our_h264_nalu_s::start, SWITCH_CHANNEL_LOG, switch_log_printf(), SWITCH_LOG_WARNING, SWITCH_STATUS_MORE_DATA, SWITCH_STATUS_SUCCESS, and h264_packetizer_s::type.
switch_status_t switch_packetizer_feed_extradata | ( | switch_packetizer_t * | packetizer, |
void * | data, | ||
uint32_t | size | ||
) |
Definition at line 122 of file switch_packetizer.c.
References h264_packetizer_s::extradata, h264_packetizer_s::pps, h264_packetizer_s::pps_len, h264_packetizer_s::sps, h264_packetizer_s::sps_len, SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STATUS_FALSE, SWITCH_STATUS_MEMERR, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_packetizer_read | ( | switch_packetizer_t * | packetizer, |
switch_frame_t * | frame | ||
) |
Definition at line 286 of file switch_packetizer.c.
References switch_frame::data, switch_frame::datalen, our_h264_nalu_s::eat, our_h264_nalu_s::len, switch_frame::m, h264_packetizer_s::nalu_current_index, h264_packetizer_s::nalus, h264_packetizer_s::pps, h264_packetizer_s::pps_len, h264_packetizer_s::pps_sent, SFF_CNG, h264_packetizer_s::slice_size, h264_packetizer_s::sps, h264_packetizer_s::sps_len, h264_packetizer_s::sps_sent, SPT_H264_BITSTREAM, SPT_H264_SIZED_BITSTREAM, our_h264_nalu_s::start, SWITCH_CHANNEL_LOG, switch_clear_flag, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STATUS_FALSE, SWITCH_STATUS_MORE_DATA, SWITCH_STATUS_SUCCESS, and h264_packetizer_s::type.