#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "libavcodec/get_bits.h"
#include "avformat.h"
#include "mpegts.h"
#include <unistd.h>
#include "network.h"
#include <assert.h>
#include "rtpdec.h"
#include "rtpdec_h264.h"
Go to the source code of this file.
Data Structures | |
struct | PayloadContext |
RTP/H264 specific private data. More... | |
Defines | |
#define | MAGIC_COOKIE (0xdeadbeef) |
Cookie for the extradata; to verify we are what we think we are, and that we haven't been freed. | |
#define | DEAD_COOKIE (0xdeaddead) |
Cookie for the extradata; once it is freed. | |
Functions | |
static void | sdp_parse_fmtp_config_h264 (AVStream *stream, PayloadContext *h264_data, char *attr, char *value) |
static int | h264_handle_packet (AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags) |
static PayloadContext * | h264_new_context (void) |
static void | h264_free_context (PayloadContext *data) |
static int | parse_h264_sdp_line (AVFormatContext *s, int st_index, PayloadContext *h264_data, const char *line) |
Variables | |
RTPDynamicProtocolHandler | ff_h264_dynamic_handler |
This is the structure for expanding on the dynamic rtp protocols (makes everything static. |
TODO: 1) RTCP sender reports for udp streams are required..
Definition in file rtpdec_h264.c.
#define DEAD_COOKIE (0xdeaddead) |
Cookie for the extradata; once it is freed.
Definition at line 69 of file rtpdec_h264.c.
Referenced by h264_free_context().
#define MAGIC_COOKIE (0xdeadbeef) |
Cookie for the extradata; to verify we are what we think we are, and that we haven't been freed.
Definition at line 68 of file rtpdec_h264.c.
Referenced by h264_free_context(), h264_handle_packet(), h264_new_context(), and parse_h264_sdp_line().
static void h264_free_context | ( | PayloadContext * | data | ) | [static] |
Definition at line 336 of file rtpdec_h264.c.
static int h264_handle_packet | ( | AVFormatContext * | ctx, | |
PayloadContext * | data, | |||
AVStream * | st, | |||
AVPacket * | pkt, | |||
uint32_t * | timestamp, | |||
const uint8_t * | buf, | |||
int | len, | |||
int | flags | |||
) | [static] |
Definition at line 166 of file rtpdec_h264.c.
static PayloadContext* h264_new_context | ( | void | ) | [static] |
Definition at line 323 of file rtpdec_h264.c.
static int parse_h264_sdp_line | ( | AVFormatContext * | s, | |
int | st_index, | |||
PayloadContext * | h264_data, | |||
const char * | line | |||
) | [static] |
Definition at line 358 of file rtpdec_h264.c.
static void sdp_parse_fmtp_config_h264 | ( | AVStream * | stream, | |
PayloadContext * | h264_data, | |||
char * | attr, | |||
char * | value | |||
) | [static] |
Initial value:
{ .enc_name = "H264", .codec_type = AVMEDIA_TYPE_VIDEO, .codec_id = CODEC_ID_H264, .parse_sdp_a_line = parse_h264_sdp_line, .open = h264_new_context, .close = h264_free_context, .parse_packet = h264_handle_packet }
yay!)
Definition at line 412 of file rtpdec_h264.c.
Referenced by av_register_rtp_dynamic_payload_handlers().