FFmpeg
Classes | Macros | Typedefs | Enumerations | Variables
smacker.c File Reference

Smacker decoder. More...

#include <stdio.h>
#include <stdlib.h>
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
#include "mathops.h"

Classes

struct  SmackVContext
 
struct  HuffContext
 Context used for code reconstructing. More...
 
struct  DBCtx
 

Macros

#define BITSTREAM_READER_LE
 
#define SMKTREE_BITS   9
 
#define SMK_NODE   0x80000000
 
#define SMKTREE_DECODE_MAX_RECURSION   32
 
#define SMKTREE_DECODE_BIG_MAX_RECURSION   500
 

Typedefs

typedef struct SmackVContext SmackVContext
 
typedef struct HuffContext HuffContext
 Context used for code reconstructing.
 
typedef struct DBCtx DBCtx
 

Enumerations

enum  SmkBlockTypes { SMK_BLK_MONO = 0, SMK_BLK_FULL = 1, SMK_BLK_SKIP = 2, SMK_BLK_FILL = 3 }
 

Variables

AVCodec ff_smacker_decoder
 
AVCodec ff_smackaud_decoder
 

Detailed Description

Smacker decoder.

Variable Documentation

§ ff_smackaud_decoder

AVCodec ff_smackaud_decoder
Initial value:
= {
.name = "smackaud",
.long_name = NULL_IF_CONFIG_SMALL("Smacker audio"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_SMACKAUDIO,
.init = smka_decode_init,
.decode = smka_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

§ ff_smacker_decoder

AVCodec ff_smacker_decoder
Initial value:
= {
.name = "smackvid",
.long_name = NULL_IF_CONFIG_SMALL("Smacker video"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_SMACKVIDEO,
.priv_data_size = sizeof(SmackVContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
Definition: smacker.c:49
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959