#include "libavcodec/bitstream.h"
#include "avformat.h"
#include "mpegts.h"
#include <unistd.h>
#include "network.h"
#include "rtpenc.h"
Go to the source code of this file.
Defines | |
#define | RTCP_SR_SIZE 28 |
#define | NTP_OFFSET 2208988800ULL |
#define | NTP_OFFSET_US (NTP_OFFSET * 1000000ULL) |
Functions | |
static uint64_t | ntp_time (void) |
static int | rtp_write_header (AVFormatContext *s1) |
static void | rtcp_send_sr (AVFormatContext *s1, int64_t ntp_time) |
void | ff_rtp_send_data (AVFormatContext *s1, const uint8_t *buf1, int len, int m) |
static void | rtp_send_samples (AVFormatContext *s1, const uint8_t *buf1, int size, int sample_size) |
static void | rtp_send_mpegaudio (AVFormatContext *s1, const uint8_t *buf1, int size) |
static void | rtp_send_raw (AVFormatContext *s1, const uint8_t *buf1, int size) |
static void | rtp_send_mpegts_raw (AVFormatContext *s1, const uint8_t *buf1, int size) |
static int | rtp_write_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | rtp_write_trailer (AVFormatContext *s1) |
Variables | |
AVOutputFormat | rtp_muxer |
#define RTCP_SR_SIZE 28 |
Definition at line 33 of file rtpenc.c.
Referenced by rtp_write_packet().
void ff_rtp_send_data | ( | AVFormatContext * | s1, | |
const uint8_t * | buf1, | |||
int | len, | |||
int | m | |||
) |
Definition at line 144 of file rtpenc.c.
Referenced by ff_rtp_send_aac(), ff_rtp_send_mpegvideo(), nal_send(), rtp_send_mpegaudio(), rtp_send_mpegts_raw(), rtp_send_raw(), and rtp_send_samples().
static uint64_t ntp_time | ( | void | ) | [static] |
Definition at line 37 of file rtpenc.c.
Referenced by rtp_check_and_send_back_rr(), and rtp_write_packet().
static void rtcp_send_sr | ( | AVFormatContext * | s1, | |
int64_t | ntp_time | |||
) | [static] |
Definition at line 119 of file rtpenc.c.
Referenced by rtp_write_packet().
static void rtp_send_mpegaudio | ( | AVFormatContext * | s1, | |
const uint8_t * | buf1, | |||
int | size | |||
) | [static] |
Definition at line 195 of file rtpenc.c.
Referenced by rtp_write_packet().
static void rtp_send_mpegts_raw | ( | AVFormatContext * | s1, | |
const uint8_t * | buf1, | |||
int | size | |||
) | [static] |
Definition at line 269 of file rtpenc.c.
Referenced by rtp_write_packet().
static void rtp_send_raw | ( | AVFormatContext * | s1, | |
const uint8_t * | buf1, | |||
int | size | |||
) | [static] |
Definition at line 247 of file rtpenc.c.
Referenced by rtp_write_packet().
static void rtp_send_samples | ( | AVFormatContext * | s1, | |
const uint8_t * | buf1, | |||
int | size, | |||
int | sample_size | |||
) | [static] |
Definition at line 167 of file rtpenc.c.
Referenced by rtp_write_packet().
static int rtp_write_header | ( | AVFormatContext * | s1 | ) | [static] |
static int rtp_write_packet | ( | AVFormatContext * | s1, | |
AVPacket * | pkt | |||
) | [static] |
static int rtp_write_trailer | ( | AVFormatContext * | s1 | ) | [static] |
{ "rtp", NULL_IF_CONFIG_SMALL("RTP output format"), NULL, NULL, sizeof(RTPMuxContext), CODEC_ID_PCM_MULAW, CODEC_ID_NONE, rtp_write_header, rtp_write_packet, rtp_write_trailer, }