wnv1.c File Reference

Winnov WNV1 codec. More...

#include "avcodec.h"
#include "get_bits.h"
#include "libavutil/common.h"

Go to the source code of this file.

Data Structures

struct  WNV1Context
 

Macros

#define CODE_VLC_BITS   9
 

Typedefs

typedef struct WNV1Context WNV1Context
 

Functions

static int wnv1_get_code (WNV1Context *w, int base_value)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

static const uint16_t code_tab [16][2]
 
static VLC code_vlc
 
AVCodec ff_wnv1_decoder
 

Detailed Description

Winnov WNV1 codec.

Definition in file wnv1.c.

Macro Definition Documentation

#define CODE_VLC_BITS   9

Definition at line 46 of file wnv1.c.

Referenced by decode_init(), and wnv1_get_code().

Typedef Documentation

typedef struct WNV1Context WNV1Context

Function Documentation

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 154 of file wnv1.c.

static int decode_frame ( AVCodecContext avctx,
void data,
int *  data_size,
AVPacket avpkt 
)
static

Definition at line 60 of file wnv1.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 138 of file wnv1.c.

static int wnv1_get_code ( WNV1Context w,
int  base_value 
)
inlinestatic

Definition at line 50 of file wnv1.c.

Referenced by decode_frame().

Variable Documentation

const uint16_t code_tab[16][2]
static
Initial value:
={
{0x1FD,9}, {0xFD,8}, {0x7D,7}, {0x3D,6}, {0x1D,5}, {0x0D,4}, {0x005,3},
{0x000,1},
{0x004,3}, {0x0C,4}, {0x1C,5}, {0x3C,6}, {0x7C,7}, {0xFC,8}, {0x1FC,9}, {0xFF,8}
}

Definition at line 40 of file wnv1.c.

Referenced by decode_init().

VLC code_vlc
static

Definition at line 47 of file wnv1.c.

AVCodec ff_wnv1_decoder
Initial value:
= {
.name = "wnv1",
.priv_data_size = sizeof(WNV1Context),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Winnov WNV1"),
}
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: wnv1.c:60
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
static av_cold int decode_end(AVCodecContext *avctx)
Definition: wnv1.c:154
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:719
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
struct WNV1Context WNV1Context
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327
static av_cold int decode_init(AVCodecContext *avctx)
Definition: wnv1.c:138

Definition at line 164 of file wnv1.c.