FFmpeg
Data Structures | Macros | Functions | Variables
rtpdec_h261.c File Reference
#include "libavcodec/get_bits.h"
#include "avformat.h"
#include "avio_internal.h"
#include "rtpdec_formats.h"

Go to the source code of this file.

Data Structures

struct  PayloadContext
 RTP/JPEG specific private data. More...
 

Macros

#define RTP_H261_PAYLOAD_HEADER_SIZE   4
 

Functions

static av_cold void h261_close_context (PayloadContext *pl_ctx)
 
static int h261_handle_packet (AVFormatContext *ctx, PayloadContext *rtp_h261_ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 

Variables

const RTPDynamicProtocolHandler ff_h261_dynamic_handler
 

Macro Definition Documentation

◆ RTP_H261_PAYLOAD_HEADER_SIZE

#define RTP_H261_PAYLOAD_HEADER_SIZE   4

Definition at line 27 of file rtpdec_h261.c.

Function Documentation

◆ h261_close_context()

static av_cold void h261_close_context ( PayloadContext pl_ctx)
static

Definition at line 36 of file rtpdec_h261.c.

◆ h261_handle_packet()

static int h261_handle_packet ( AVFormatContext ctx,
PayloadContext rtp_h261_ctx,
AVStream st,
AVPacket pkt,
uint32_t *  timestamp,
const uint8_t buf,
int  len,
uint16_t  seq,
int  flags 
)
static

Definition at line 46 of file rtpdec_h261.c.

Variable Documentation

◆ ff_h261_dynamic_handler

const RTPDynamicProtocolHandler ff_h261_dynamic_handler
Initial value:
= {
.enc_name = "H261",
.codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = AV_CODEC_ID_H261,
.need_parsing = AVSTREAM_PARSE_FULL,
.priv_data_size = sizeof(PayloadContext),
.static_payload_id = 31,
}

Definition at line 165 of file rtpdec_h261.c.

parse_packet
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
Parse a packet, add all split parts to parse_queue.
Definition: utils.c:1451
AV_CODEC_ID_H261
@ AV_CODEC_ID_H261
Definition: avcodec.h:221
h261_close_context
static av_cold void h261_close_context(PayloadContext *pl_ctx)
Definition: rtpdec_h261.c:36
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AVSTREAM_PARSE_FULL
@ AVSTREAM_PARSE_FULL
full parsing and repack
Definition: avformat.h:791
h261_handle_packet
static int h261_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_h261_ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
Definition: rtpdec_h261.c:46
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:83