FFmpeg
Loading...
Searching...
No Matches
lafdec.c File Reference
#include "libavutil/intfloat.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  StreamParams
 
struct  LAFContext
 

Macros

#define MAX_STREAMS   4096
 

Functions

static int laf_probe (const AVProbeData *p)
 
static int laf_read_header (AVFormatContext *ctx)
 
static int laf_read_packet (AVFormatContext *ctx, AVPacket *pkt)
 
static int laf_read_close (AVFormatContext *ctx)
 
static int laf_read_seek (AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
 

Variables

const FFInputFormat ff_laf_demuxer
 

Macro Definition Documentation

◆ MAX_STREAMS

#define MAX_STREAMS   4096

Definition at line 30 of file lafdec.c.

Referenced by laf_read_header().

Function Documentation

◆ laf_probe()

static int laf_probe ( const AVProbeData * p)
static

Definition at line 53 of file lafdec.c.

◆ laf_read_header()

static int laf_read_header ( AVFormatContext * ctx)
static

Definition at line 62 of file lafdec.c.

◆ laf_read_packet()

static int laf_read_packet ( AVFormatContext * ctx,
AVPacket * pkt )
static

Definition at line 176 of file lafdec.c.

◆ laf_read_close()

static int laf_read_close ( AVFormatContext * ctx)
static

Definition at line 259 of file lafdec.c.

◆ laf_read_seek()

static int laf_read_seek ( AVFormatContext * ctx,
int stream_index,
int64_t timestamp,
int flags )
static

Definition at line 268 of file lafdec.c.

Variable Documentation

◆ ff_laf_demuxer

const FFInputFormat ff_laf_demuxer
Initial value:
= {
.p.name = "laf",
.p.long_name = NULL_IF_CONFIG_SMALL("LAF (Limitless Audio Format)"),
.p.extensions = "laf",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(LAFContext),
.flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition demux.h:35
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
static int laf_read_header(AVFormatContext *ctx)
Definition lafdec.c:62
static int laf_read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition lafdec.c:268
static int laf_read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition lafdec.c:176
static int laf_read_close(AVFormatContext *ctx)
Definition lafdec.c:259
static int laf_probe(const AVProbeData *p)
Definition lafdec.c:53
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static av_cold int read_close(AVFormatContext *ctx)
Definition libcdio.c:143
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151

Definition at line 278 of file lafdec.c.