VLC 4.0.0-dev
|
RTP payload type operations. More...
#include <rtp.h>
Data Fields | |
void(* | release )(struct vlc_rtp_pt *pt) |
Releases the payload type. | |
void *(* | init )(struct vlc_rtp_pt *pt) |
Starts using a payload type. | |
void(* | destroy )(struct vlc_rtp_pt *pt, void *data) |
Stops using a payload type. | |
void(* | decode )(struct vlc_rtp_pt *pt, void *data, block_t *block, const struct vlc_rtp_pktinfo *restrict info) |
Processes a data payload. | |
RTP payload type operations.
This structures contains the callbacks provided by an RTP payload type (vlc_rtp_pt).
void(* vlc_rtp_pt_operations::decode) (struct vlc_rtp_pt *pt, void *data, block_t *block, const struct vlc_rtp_pktinfo *restrict info) |
Processes a data payload.
pt | RTP payload type of the payload |
data | data pointer returned by init() |
block | payload of a received RTP packet |
info | RTP packet header infos |
Referenced by vlc_rtp_pt_decode().
void(* vlc_rtp_pt_operations::destroy) (struct vlc_rtp_pt *pt, void *data) |
Stops using a payload type.
This optional callback deinitialises per-source resources.
pt | RTP payload type to relinquish |
data | data pointer returned by init() |
Referenced by vlc_rtp_pt_end().
void *(* vlc_rtp_pt_operations::init) (struct vlc_rtp_pt *pt) |
Starts using a payload type.
This required callback initialises per-source resources for the payload type, such as an elementary stream output.
pt | RTP payload type being taken into use |
Referenced by vlc_rtp_pt_begin().
void(* vlc_rtp_pt_operations::release) (struct vlc_rtp_pt *pt) |
Releases the payload type.
This optional callback releases any resources associated with the payload format, such as copies of the payload format parameters.
pt | RTP payload type that is being released |
Referenced by vlc_rtp_pt_release().