FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rtpdec_hevc.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "libavcodec/get_bits.h"
#include "avformat.h"
#include "rtpdec.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_HEVC_PAYLOAD_HEADER_SIZE   2
 
#define RTP_HEVC_FU_HEADER_SIZE   1
 
#define RTP_HEVC_DONL_FIELD_SIZE   2
 
#define RTP_HEVC_DOND_FIELD_SIZE   1
 
#define RTP_HEVC_AP_NALU_LENGTH_FIELD_SIZE   2
 
#define HEVC_SPECIFIED_NAL_UNIT_TYPES   48
 

Functions

static av_cold int hevc_sdp_parse_fmtp_config (AVFormatContext *s, AVStream *stream, PayloadContext *hevc_data, const char *attr, const char *value)
 
static av_cold int hevc_parse_sdp_line (AVFormatContext *ctx, int st_index, PayloadContext *hevc_data, const char *line)
 
static int hevc_handle_packet (AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 

Variables

static const uint8_t start_sequence [] = { 0x00, 0x00, 0x00, 0x01 }
 
RTPDynamicProtocolHandler ff_hevc_dynamic_handler
 

Macro Definition Documentation

#define RTP_HEVC_PAYLOAD_HEADER_SIZE   2

Definition at line 31 of file rtpdec_hevc.c.

Referenced by hevc_handle_packet().

#define RTP_HEVC_FU_HEADER_SIZE   1

Definition at line 32 of file rtpdec_hevc.c.

Referenced by hevc_handle_packet().

#define RTP_HEVC_DONL_FIELD_SIZE   2

Definition at line 33 of file rtpdec_hevc.c.

Referenced by hevc_handle_packet().

#define RTP_HEVC_DOND_FIELD_SIZE   1

Definition at line 34 of file rtpdec_hevc.c.

Referenced by hevc_handle_packet().

#define RTP_HEVC_AP_NALU_LENGTH_FIELD_SIZE   2

Definition at line 35 of file rtpdec_hevc.c.

#define HEVC_SPECIFIED_NAL_UNIT_TYPES   48

Definition at line 36 of file rtpdec_hevc.c.

Function Documentation

static av_cold int hevc_sdp_parse_fmtp_config ( AVFormatContext s,
AVStream stream,
PayloadContext hevc_data,
const char *  attr,
const char *  value 
)
static

Definition at line 48 of file rtpdec_hevc.c.

Referenced by hevc_parse_sdp_line().

static av_cold int hevc_parse_sdp_line ( AVFormatContext ctx,
int  st_index,
PayloadContext hevc_data,
const char *  line 
)
static

Definition at line 130 of file rtpdec_hevc.c.

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

Definition at line 186 of file rtpdec_hevc.c.

Variable Documentation

const uint8_t start_sequence[] = { 0x00, 0x00, 0x00, 0x01 }
static

Definition at line 46 of file rtpdec_hevc.c.

Referenced by hevc_handle_packet().

RTPDynamicProtocolHandler ff_hevc_dynamic_handler
Initial value:
= {
.enc_name = "H265",
.codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = AV_CODEC_ID_HEVC,
.need_parsing = AVSTREAM_PARSE_FULL,
.priv_data_size = sizeof(PayloadContext),
.parse_sdp_a_line = hevc_parse_sdp_line,
}
RTP/JPEG specific private data.
Definition: rdt.c:83
static av_cold int hevc_parse_sdp_line(AVFormatContext *ctx, int st_index, PayloadContext *hevc_data, const char *line)
Definition: rtpdec_hevc.c:130
static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
Definition: rtpdec_hevc.c:186
full parsing and repack
Definition: avformat.h:810
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
Parse a packet, add all split parts to parse_queue.
Definition: utils.c:1368

Definition at line 350 of file rtpdec_hevc.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().