FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
smacker.c File Reference
#include <inttypes.h>
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.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  SmackerContext
 

Macros

#define SMACKER_PAL   0x01
 
#define SMACKER_FLAG_RING_FRAME   0x01
 
#define SMACKER_FLAG_Y_INTERLACE   (1 << 1)
 
#define SMACKER_FLAG_Y_DOUBLE   (1 << 2)
 

Enumerations

enum  SAudFlags {
  SMK_AUD_PACKED = 0x80, SMK_AUD_16BITS = 0x20, SMK_AUD_STEREO = 0x10, SMK_AUD_BINKAUD = 0x08,
  SMK_AUD_USEDCT = 0x04
}
 

Functions

static int smacker_probe (const AVProbeData *p)
 
static int smacker_read_header (AVFormatContext *s)
 
static int smacker_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int smacker_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

static const uint8_t smk_pal [64]
 
const FFInputFormat ff_smacker_demuxer
 

Macro Definition Documentation

◆ SMACKER_PAL

#define SMACKER_PAL   0x01

Definition at line 35 of file smacker.c.

◆ SMACKER_FLAG_RING_FRAME

#define SMACKER_FLAG_RING_FRAME   0x01

Definition at line 36 of file smacker.c.

◆ SMACKER_FLAG_Y_INTERLACE

#define SMACKER_FLAG_Y_INTERLACE   (1 << 1)

Definition at line 37 of file smacker.c.

◆ SMACKER_FLAG_Y_DOUBLE

#define SMACKER_FLAG_Y_DOUBLE   (1 << 2)

Definition at line 38 of file smacker.c.

Enumeration Type Documentation

◆ SAudFlags

enum SAudFlags
Enumerator
SMK_AUD_PACKED 
SMK_AUD_16BITS 
SMK_AUD_STEREO 
SMK_AUD_BINKAUD 
SMK_AUD_USEDCT 

Definition at line 40 of file smacker.c.

Function Documentation

◆ smacker_probe()

static int smacker_probe ( const AVProbeData p)
static

Definition at line 81 of file smacker.c.

◆ smacker_read_header()

static int smacker_read_header ( AVFormatContext s)
static

Definition at line 93 of file smacker.c.

◆ smacker_read_packet()

static int smacker_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 239 of file smacker.c.

◆ smacker_read_seek()

static int smacker_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 374 of file smacker.c.

Variable Documentation

◆ smk_pal

const uint8_t smk_pal[64]
static
Initial value:
= {
0x00, 0x04, 0x08, 0x0C, 0x10, 0x14, 0x18, 0x1C,
0x20, 0x24, 0x28, 0x2C, 0x30, 0x34, 0x38, 0x3C,
0x41, 0x45, 0x49, 0x4D, 0x51, 0x55, 0x59, 0x5D,
0x61, 0x65, 0x69, 0x6D, 0x71, 0x75, 0x79, 0x7D,
0x82, 0x86, 0x8A, 0x8E, 0x92, 0x96, 0x9A, 0x9E,
0xA2, 0xA6, 0xAA, 0xAE, 0xB2, 0xB6, 0xBA, 0xBE,
0xC3, 0xC7, 0xCB, 0xCF, 0xD3, 0xD7, 0xDB, 0xDF,
0xE3, 0xE7, 0xEB, 0xEF, 0xF3, 0xF7, 0xFB, 0xFF
}

Definition at line 69 of file smacker.c.

Referenced by smacker_read_packet().

◆ ff_smacker_demuxer

const FFInputFormat ff_smacker_demuxer
Initial value:
= {
.p.name = "smk",
.p.long_name = NULL_IF_CONFIG_SMALL("Smacker"),
.priv_data_size = sizeof(SmackerContext),
}

Definition at line 407 of file smacker.c.

read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
smacker_probe
static int smacker_probe(const AVProbeData *p)
Definition: smacker.c:81
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
SmackerContext
Definition: smacker.c:48
smacker_read_packet
static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: smacker.c:239
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:106
smacker_read_header
static int smacker_read_header(AVFormatContext *s)
Definition: smacker.c:93
smacker_read_seek
static int smacker_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: smacker.c:374
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30