FFmpeg
Classes | Macros | Typedefs | Variables
shorten.c File Reference

Shorten decoder. More...

#include <limits.h>
#include "avcodec.h"
#include "bswapdsp.h"
#include "bytestream.h"
#include "get_bits.h"
#include "golomb.h"
#include "internal.h"

Classes

struct  ShortenContext
 

Macros

#define MAX_CHANNELS   8
 
#define MAX_BLOCKSIZE   65535
 
#define OUT_BUFFER_SIZE   16384
 
#define ULONGSIZE   2
 
#define WAVE_FORMAT_PCM   0x0001
 
#define DEFAULT_BLOCK_SIZE   256
 
#define TYPESIZE   4
 
#define CHANSIZE   0
 
#define LPCQSIZE   2
 
#define ENERGYSIZE   3
 
#define BITSHIFTSIZE   2
 
#define TYPE_S8   1
 
#define TYPE_U8   2
 
#define TYPE_S16HL   3
 
#define TYPE_U16HL   4
 
#define TYPE_S16LH   5
 
#define TYPE_U16LH   6
 
#define NWRAP   3
 
#define NSKIPSIZE   1
 
#define LPCQUANT   5
 
#define V2LPCQOFFSET   (1 << LPCQUANT)
 
#define FNSIZE   2
 
#define FN_DIFF0   0
 
#define FN_DIFF1   1
 
#define FN_DIFF2   2
 
#define FN_DIFF3   3
 
#define FN_QUIT   4
 
#define FN_BLOCKSIZE   5
 
#define FN_BITSHIFT   6
 
#define FN_QLPC   7
 
#define FN_ZERO   8
 
#define FN_VERBATIM   9
 
#define VERBATIM_CKSIZE_SIZE   5
 
#define VERBATIM_BYTE_SIZE   8
 
#define CANONICAL_HEADER_SIZE   44
 

Typedefs

typedef struct ShortenContext ShortenContext
 

Variables

AVCodec ff_shorten_decoder
 

Detailed Description

Shorten decoder.

Author
Jeff Muizelaar

Variable Documentation

§ ff_shorten_decoder

AVCodec ff_shorten_decoder
Initial value:
= {
.name = "shorten",
.long_name = NULL_IF_CONFIG_SMALL("Shorten"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_SHORTEN,
.priv_data_size = sizeof(ShortenContext),
.init = shorten_decode_init,
.close = shorten_decode_close,
.decode = shorten_decode_frame,
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
AV_SAMPLE_FMT_NONE },
}
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:984
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
unsigned 8 bits, planar
Definition: samplefmt.h:66
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
#define AV_CODEC_CAP_SUBFRAMES
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time...
Definition: avcodec.h:1002
signed 16 bits, planar
Definition: samplefmt.h:67
Definition: shorten.c:85
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959