FFmpeg
Functions | Variables
ffmetadec.c File Reference
#include "libavutil/bprint.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "demux.h"
#include "ffmeta.h"
#include "libavutil/dict.h"

Go to the source code of this file.

Functions

static int probe (const AVProbeData *p)
 
static int64_t read_line_to_bprint_escaped (AVIOContext *s, AVBPrint *bp)
 
static void get_bprint_line (AVIOContext *s, AVBPrint *bp)
 
static void get_line (AVIOContext *s, uint8_t *buf, int size)
 
static AVChapterread_chapter (AVFormatContext *s)
 
static uint8_t * unescape (const uint8_t *buf, int size)
 
static int read_tag (const uint8_t *line, AVDictionary **m)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_ffmetadata_demuxer
 

Function Documentation

◆ probe()

static int probe ( const AVProbeData p)
static

Definition at line 30 of file ffmetadec.c.

◆ read_line_to_bprint_escaped()

static int64_t read_line_to_bprint_escaped ( AVIOContext s,
AVBPrint *  bp 
)
static

Definition at line 37 of file ffmetadec.c.

Referenced by get_bprint_line().

◆ get_bprint_line()

static void get_bprint_line ( AVIOContext s,
AVBPrint *  bp 
)
static

Definition at line 70 of file ffmetadec.c.

Referenced by read_header().

◆ get_line()

static void get_line ( AVIOContext s,
uint8_t *  buf,
int  size 
)
static

Definition at line 79 of file ffmetadec.c.

Referenced by read_chapter().

◆ read_chapter()

static AVChapter* read_chapter ( AVFormatContext s)
static

Definition at line 100 of file ffmetadec.c.

Referenced by read_header().

◆ unescape()

static uint8_t* unescape ( const uint8_t *  buf,
int  size 
)
static

Definition at line 128 of file ffmetadec.c.

Referenced by read_tag().

◆ read_tag()

static int read_tag ( const uint8_t *  line,
AVDictionary **  m 
)
static

Definition at line 146 of file ffmetadec.c.

Referenced by read_header().

◆ read_header()

static int read_header ( AVFormatContext s)
static

Definition at line 175 of file ffmetadec.c.

◆ read_packet()

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 221 of file ffmetadec.c.

Variable Documentation

◆ ff_ffmetadata_demuxer

const FFInputFormat ff_ffmetadata_demuxer
Initial value:
= {
.p.name = "ffmetadata",
.p.long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text"),
.read_probe = probe,
.read_header = read_header,
.read_packet = read_packet,
}

Definition at line 226 of file ffmetadec.c.

read_header
static int read_header(AVFormatContext *s)
Definition: ffmetadec.c:175
read_packet
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ffmetadec.c:221
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
probe
static int probe(const AVProbeData *p)
Definition: ffmetadec.c:30