FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
snowdec.c File Reference
#include "libavutil/intmath.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "dsputil.h"
#include "snow_dwt.h"
#include "internal.h"
#include "snow.h"
#include "rangecoder.h"
#include "mathops.h"
#include "mpegvideo.h"
#include "h263.h"

Go to the source code of this file.

Macros

#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 int 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 int decode_blocks (SnowContext *s)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_snow_decoder
 

Macro Definition Documentation

#define GET_S (   dst,
  check 
)
Value:
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 261 of file snowdec.c.

Referenced by decode_header().

Function Documentation

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 36 of file snowdec.c.

Referenced by decode_frame().

static void decode_subband_slice_buffered ( SnowContext s,
SubBand b,
slice_buffer sb,
int  start_y,
int  h,
int  save_state[1] 
)
inlinestatic

Definition at line 93 of file snowdec.c.

Referenced by decode_frame().

static int decode_q_branch ( SnowContext s,
int  level,
int  x,
int  y 
)
static

Definition at line 134 of file snowdec.c.

Referenced by decode_blocks().

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 192 of file snowdec.c.

Referenced by decode_frame().

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 215 of file snowdec.c.

Referenced by decode_frame().

static void decode_qlogs ( SnowContext s)
static

Definition at line 245 of file snowdec.c.

Referenced by decode_header().

static int decode_header ( SnowContext s)
static

Definition at line 269 of file snowdec.c.

Referenced by decode_frame().

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 378 of file snowdec.c.

static int decode_blocks ( SnowContext s)
static

Definition at line 390 of file snowdec.c.

Referenced by decode_frame().

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

Definition at line 405 of file snowdec.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 580 of file snowdec.c.

Variable Documentation

AVCodec ff_snow_decoder
Initial value:
= {
.name = "snow",
.long_name = NULL_IF_CONFIG_SMALL("Snow"),
.priv_data_size = sizeof(SnowContext),
.capabilities = CODEC_CAP_DR1 ,
}

Definition at line 591 of file snowdec.c.