FFmpeg
Data Structures | Macros | Functions | Variables
takdec.c File Reference
#include "libavutil/crc.h"
#include "libavutil/mem.h"
#include "libavcodec/tak.h"
#include "apetag.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "internal.h"
#include "rawdec.h"

Go to the source code of this file.

Data Structures

struct  TAKDemuxContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static int tak_probe (const AVProbeData *p)
 
static unsigned long tak_check_crc (unsigned long checksum, const uint8_t *buf, unsigned int len)
 
static int tak_read_header (AVFormatContext *s)
 
static int raw_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFInputFormat ff_tak_demuxer
 

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 25 of file takdec.c.

Function Documentation

◆ tak_probe()

static int tak_probe ( const AVProbeData p)
static

Definition at line 41 of file takdec.c.

◆ tak_check_crc()

static unsigned long tak_check_crc ( unsigned long  checksum,
const uint8_t *  buf,
unsigned int  len 
)
static

Definition at line 48 of file takdec.c.

Referenced by tak_read_header().

◆ tak_read_header()

static int tak_read_header ( AVFormatContext s)
static

Definition at line 54 of file takdec.c.

◆ raw_read_packet()

static int raw_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 192 of file takdec.c.

Variable Documentation

◆ ff_tak_demuxer

const FFInputFormat ff_tak_demuxer
Initial value:
= {
.p.name = "tak",
.p.long_name = NULL_IF_CONFIG_SMALL("raw TAK"),
.p.flags = AVFMT_GENERIC_INDEX,
.p.extensions = "tak",
.p.priv_class = &ff_raw_demuxer_class,
.priv_data_size = sizeof(TAKDemuxContext),
.raw_codec_id = AV_CODEC_ID_TAK,
}

Definition at line 218 of file takdec.c.

tak_probe
static int tak_probe(const AVProbeData *p)
Definition: takdec.c:41
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
TAKDemuxContext
Definition: takdec.c:35
ff_raw_demuxer_class
const AVClass ff_raw_demuxer_class
Definition: rawdec.c:141
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
raw_read_packet
static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: takdec.c:192
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
tak_read_header
static int tak_read_header(AVFormatContext *s)
Definition: takdec.c:54
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
AV_CODEC_ID_TAK
@ AV_CODEC_ID_TAK
Definition: codec_id.h:508