#include "libavutil/intmath.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "dsputil.h"
#include "dwt.h"
#include "snow.h"
#include "rangecoder.h"
#include "mathops.h"
#include "mpegvideo.h"
#include "h263.h"
#include <assert.h>
Go to the source code of this file.
Defines | |
#define | GET_S(dst, check) |
Functions | |
static av_always_inline void | predict_slice_buffered (SnowContext *s, slice_buffer *sb, IDWTELEM *old_buffer, int plane_index, int add, int mb_y) |
static void | decode_subband_slice_buffered (SnowContext *s, SubBand *b, slice_buffer *sb, int start_y, int h, int save_state[1]) |
static void | decode_q_branch (SnowContext *s, int level, int x, int y) |
static void | dequantize_slice_buffered (SnowContext *s, slice_buffer *sb, SubBand *b, IDWTELEM *src, int stride, int start_y, int end_y) |
static void | correlate_slice_buffered (SnowContext *s, slice_buffer *sb, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median, int start_y, int end_y) |
static void | decode_qlogs (SnowContext *s) |
static int | decode_header (SnowContext *s) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static void | decode_blocks (SnowContext *s) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_snow_decoder |
#define GET_S | ( | dst, | ||
check | ||||
) |
tmp= get_symbol(&s->c, s->header_state, 0);\ if(!(check)){\ av_log(s->avctx, AV_LOG_ERROR, "Error " #dst " is %d\n", tmp);\ return -1;\ }\ dst= tmp;
Definition at line 253 of file snowdec.c.
Referenced by decode_header().
static void correlate_slice_buffered | ( | SnowContext * | s, | |
slice_buffer * | sb, | |||
SubBand * | b, | |||
IDWTELEM * | src, | |||
int | stride, | |||
int | inverse, | |||
int | use_median, | |||
int | start_y, | |||
int | end_y | |||
) | [static] |
Definition at line 207 of file snowdec.c.
Referenced by decode_frame().
static void decode_blocks | ( | SnowContext * | s | ) | [static] |
Definition at line 352 of file snowdec.c.
Referenced by decode_frame().
static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static int decode_header | ( | SnowContext * | s | ) | [static] |
Definition at line 261 of file snowdec.c.
Referenced by decode_frame().
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static void decode_q_branch | ( | SnowContext * | s, | |
int | level, | |||
int | x, | |||
int | y | |||
) | [static] |
Definition at line 135 of file snowdec.c.
Referenced by decode_blocks().
static void decode_qlogs | ( | SnowContext * | s | ) | [static] |
Definition at line 237 of file snowdec.c.
Referenced by decode_header().
static void decode_subband_slice_buffered | ( | SnowContext * | s, | |
SubBand * | b, | |||
slice_buffer * | sb, | |||
int | start_y, | |||
int | h, | |||
int | save_state[1] | |||
) | [inline, static] |
Definition at line 94 of file snowdec.c.
Referenced by decode_frame().
static void dequantize_slice_buffered | ( | SnowContext * | s, | |
slice_buffer * | sb, | |||
SubBand * | b, | |||
IDWTELEM * | src, | |||
int | stride, | |||
int | start_y, | |||
int | end_y | |||
) | [static] |
Definition at line 184 of file snowdec.c.
Referenced by decode_frame().
static av_always_inline void predict_slice_buffered | ( | SnowContext * | s, | |
slice_buffer * | sb, | |||
IDWTELEM * | old_buffer, | |||
int | plane_index, | |||
int | add, | |||
int | mb_y | |||
) | [static] |
Definition at line 38 of file snowdec.c.
Referenced by decode_frame().
{ .name = "snow", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_SNOW, .priv_data_size = sizeof(SnowContext), .init = decode_init, .close = decode_end, .decode = decode_frame, .capabilities = CODEC_CAP_DR1 , .long_name = NULL_IF_CONFIG_SMALL("Snow"), }