libavformat/smacker.c File Reference

#include "libavutil/bswap.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  SmackerContext
struct  SmackerFrame


#define SMACKER_PAL   0x01


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


static int smacker_probe (AVProbeData *p)
static int smacker_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int smacker_read_packet (AVFormatContext *s, AVPacket *pkt)
static int smacker_read_close (AVFormatContext *s)


static const uint8_t smk_pal [64]
AVInputFormat ff_smacker_demuxer

Define Documentation


Definition at line 32 of file smacker.c.

Referenced by smacker_read_header().

#define SMACKER_PAL   0x01

Definition at line 31 of file smacker.c.

Referenced by smacker_read_packet().

Enumeration Type Documentation

enum SAudFlags


Definition at line 34 of file smacker.c.

Function Documentation

static int smacker_probe ( AVProbeData p  )  [static]

Definition at line 92 of file smacker.c.

static int smacker_read_close ( AVFormatContext s  )  [static]

Definition at line 351 of file smacker.c.

static int smacker_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 101 of file smacker.c.

static int smacker_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 232 of file smacker.c.

Variable Documentation

Initial value:

    .name           = "smk",
    .long_name      = NULL_IF_CONFIG_SMALL("Smacker video"),
    .priv_data_size = sizeof(SmackerContext),
    .read_probe     = smacker_probe,
    .read_header    = smacker_read_header,
    .read_packet    = smacker_read_packet,
    .read_close     = smacker_read_close,

Definition at line 364 of file smacker.c.

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 80 of file smacker.c.

Referenced by smacker_read_packet().

Generated on Fri Oct 26 02:46:10 2012 for FFmpeg by  doxygen 1.5.8