FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rtpdec_h261.c File Reference
#include "avformat.h"
#include "rtpdec_formats.h"
#include "libavcodec/get_bits.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 PayloadContexth261_new_context (void)
 
static void h261_free_dyn_buffer (AVIOContext **dyn_buf)
 
static void h261_free_context (PayloadContext *pl_ctx)
 
static av_cold int h261_init (AVFormatContext *ctx, int st_index, PayloadContext *data)
 
int ff_h261_handle_packet (AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 

Variables

RTPDynamicProtocolHandler ff_h261_dynamic_handler
 

Macro Definition Documentation

#define RTP_H261_PAYLOAD_HEADER_SIZE   4

Definition at line 26 of file rtpdec_h261.c.

Referenced by ff_h261_handle_packet().

Function Documentation

static PayloadContext* h261_new_context ( void  )
static

Definition at line 35 of file rtpdec_h261.c.

static void h261_free_dyn_buffer ( AVIOContext **  dyn_buf)
static

Definition at line 40 of file rtpdec_h261.c.

Referenced by ff_h261_handle_packet(), and h261_free_context().

static void h261_free_context ( PayloadContext pl_ctx)
static

Definition at line 48 of file rtpdec_h261.c.

static av_cold int h261_init ( AVFormatContext ctx,
int  st_index,
PayloadContext data 
)
static

Definition at line 63 of file rtpdec_h261.c.

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

Definition at line 76 of file rtpdec_h261.c.

Variable Documentation

RTPDynamicProtocolHandler ff_h261_dynamic_handler
Initial value:
= {
.enc_name = "H261",
.codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = AV_CODEC_ID_H261,
.init = h261_init,
.parse_packet = ff_h261_handle_packet,
.alloc = h261_new_context,
.static_payload_id = 31,
}

Definition at line 196 of file rtpdec_h261.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().