FFmpeg
Macros | Functions | Variables
wnv1.c File Reference

Winnov WNV1 codec. More...

#include "libavutil/thread.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define BITSTREAM_READER_LE
 
#define CODE_VLC_BITS   9
 

Functions

static int wnv1_get_code (GetBitContext *gb, int shift, int base_value)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold void wnv1_init_static (void)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

static const uint8_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 BITSTREAM_READER_LE

Definition at line 29 of file wnv1.c.

#define CODE_VLC_BITS   9

Definition at line 40 of file wnv1.c.

Referenced by wnv1_get_code(), and wnv1_init_static().

Function Documentation

static int wnv1_get_code ( GetBitContext gb,
int  shift,
int  base_value 
)
inlinestatic

Definition at line 44 of file wnv1.c.

Referenced by decode_frame().

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

Definition at line 54 of file wnv1.c.

static av_cold void wnv1_init_static ( void  )
static

Definition at line 117 of file wnv1.c.

Referenced by decode_init().

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 125 of file wnv1.c.

Variable Documentation

const uint8_t code_tab[16][2]
static
Initial value:
= {
{ 7, 1 }, { 8, 3 }, { 6, 3 }, { 9, 4 }, { 5, 4 }, { 10, 5 }, { 4, 5 },
{ 11, 6 }, { 3, 6 }, { 12, 7 }, { 2, 7 }, { 13, 8 }, { 1, 8 }, { 14, 9 },
{ 0, 9 }, { 15, 8 }
}

Definition at line 34 of file wnv1.c.

Referenced by wnv1_init_static().

VLC code_vlc
static

Definition at line 41 of file wnv1.c.

Referenced by decode_channel().

AVCodec ff_wnv1_decoder
Initial value:
= {
.name = "wnv1",
.long_name = NULL_IF_CONFIG_SMALL("Winnov WNV1"),
.init = decode_init,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: wnv1.c:54
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
static av_cold int decode_init(AVCodecContext *avctx)
Definition: wnv1.c:125
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 136 of file wnv1.c.