FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
lrcdec.c File Reference
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include "avformat.h"
#include "internal.h"
#include "lrc.h"
#include "metadata.h"
#include "subtitles.h"
#include "libavutil/bprint.h"
#include "libavutil/dict.h"

Go to the source code of this file.

Data Structures

struct  LRCContext
 

Functions

static int64_t find_header (const char *p)
 
static int64_t count_ts (const char *p)
 
static int64_t read_ts (const char *p, int64_t *start)
 
static int64_t read_line (AVBPrint *buf, AVIOContext *pb)
 
static int lrc_probe (AVProbeData *p)
 
static int lrc_read_header (AVFormatContext *s)
 
static int lrc_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int lrc_read_seek (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
 
static int lrc_read_close (AVFormatContext *s)
 

Variables

AVInputFormat ff_lrc_demuxer
 

Function Documentation

static int64_t find_header ( const char *  p)
static

Definition at line 39 of file lrcdec.c.

Referenced by lrc_read_header().

static int64_t count_ts ( const char *  p)
static

Definition at line 52 of file lrcdec.c.

Referenced by lrc_read_header().

static int64_t read_ts ( const char *  p,
int64_t *  start 
)
static

Definition at line 77 of file lrcdec.c.

Referenced by lrc_read_header().

static int64_t read_line ( AVBPrint *  buf,
AVIOContext pb 
)
static

Definition at line 102 of file lrcdec.c.

Referenced by lrc_read_header().

static int lrc_probe ( AVProbeData p)
static

Definition at line 119 of file lrcdec.c.

static int lrc_read_header ( AVFormatContext s)
static

Definition at line 156 of file lrcdec.c.

static int lrc_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 219 of file lrcdec.c.

static int lrc_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  min_ts,
int64_t  ts,
int64_t  max_ts,
int  flags 
)
static

Definition at line 225 of file lrcdec.c.

static int lrc_read_close ( AVFormatContext s)
static

Definition at line 233 of file lrcdec.c.

Variable Documentation

AVInputFormat ff_lrc_demuxer
Initial value:
= {
.name = "lrc",
.long_name = NULL_IF_CONFIG_SMALL("LRC lyrics"),
.priv_data_size = sizeof (LRCContext),
.read_seek2 = lrc_read_seek
}
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
static int lrc_read_close(AVFormatContext *s)
Definition: lrcdec.c:233
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int lrc_probe(AVProbeData *p)
Definition: lrcdec.c:119
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int lrc_read_header(AVFormatContext *s)
Definition: lrcdec.c:156
static int lrc_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: lrcdec.c:219
static int lrc_read_seek(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
Definition: lrcdec.c:225

Definition at line 240 of file lrcdec.c.