#include "avcodec.h"#include "common.h"#include "bitstream.h"

Go to the source code of this file.
Data Structures | |
| struct | WNV1Context |
Defines | |
| #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 *data_size, uint8_t *buf, int buf_size) |
| static int | decode_init (AVCodecContext *avctx) |
Variables | |
| static uint16_t | code_tab [16][2] |
| static VLC | code_vlc |
| AVCodec | wnv1_decoder |
Definition in file wnv1.c.
| static int decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 59 of file wnv1.c.
References av_log(), AV_LOG_ERROR, ff_reverse, WNV1Context::gb, AVCodecContext::get_buffer, AVCodecContext::height, init_get_bits(), WNV1Context::pic, AVCodecContext::priv_data, AVCodecContext::release_buffer, WNV1Context::shift, AVCodecContext::width, and wnv1_get_code().

| static int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 119 of file wnv1.c.
References WNV1Context::avctx, code_tab, CODE_VLC_BITS, init_vlc(), AVCodecContext::pix_fmt, PIX_FMT_YUV422P, AVCodecContext::priv_data, and VLC::table.

| static int wnv1_get_code | ( | WNV1Context * | w, | |
| int | base_value | |||
| ) | [inline, static] |
Definition at line 49 of file wnv1.c.
References CODE_VLC_BITS, ff_reverse, WNV1Context::gb, get_bits(), get_vlc2(), WNV1Context::shift, and VLC::table.
Referenced by decode_frame().

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 39 of file wnv1.c.
Referenced by decode_init().
Initial value:
{
"wnv1",
CODEC_TYPE_VIDEO,
CODEC_ID_WNV1,
sizeof(WNV1Context),
decode_init,
NULL,
NULL,
decode_frame,
CODEC_CAP_DR1,
}
Definition at line 134 of file wnv1.c.
Referenced by avcodec_register_all().
1.5.5