FFmpeg
Data Structures | Macros | Functions | Variables
wnv1.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  WNV1Context
 

Macros

#define CODE_VLC_BITS   9
 

Functions

static int wnv1_get_code (WNV1Context *w, int base_value)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (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

◆ CODE_VLC_BITS

#define CODE_VLC_BITS   9

Definition at line 44 of file wnv1.c.

Function Documentation

◆ wnv1_get_code()

static int wnv1_get_code ( WNV1Context w,
int  base_value 
)
inlinestatic

Definition at line 48 of file wnv1.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 58 of file wnv1.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 135 of file wnv1.c.

Variable Documentation

◆ code_tab

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 38 of file wnv1.c.

Referenced by decode_init().

◆ code_vlc

VLC code_vlc
static

Definition at line 45 of file wnv1.c.

Referenced by decode_channel(), decode_init(), and wnv1_get_code().

◆ ff_wnv1_decoder

AVCodec ff_wnv1_decoder
Initial value:
= {
.name = "wnv1",
.long_name = NULL_IF_CONFIG_SMALL("Winnov WNV1"),
.priv_data_size = sizeof(WNV1Context),
.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 150 of file wnv1.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
AV_CODEC_ID_WNV1
@ AV_CODEC_ID_WNV1
Definition: avcodec.h:291
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: wnv1.c:135
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: wnv1.c:58
WNV1Context
Definition: wnv1.c:33
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201