FFmpeg  4.0
Macros | Functions | Variables
snowdec.c File Reference
#include "libavutil/intmath.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.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

◆ GET_S

#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);\
}\
dst= tmp;
const char * s
Definition: avisynth_c.h:768
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
static av_noinline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed)
Definition: ffv1dec.c:66
#define check(x, y, S, v)
static uint8_t tmp[11]
Definition: aes_ctr.c:26

Definition at line 294 of file snowdec.c.

Referenced by decode_header().

Function Documentation

◆ predict_slice_buffered()

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

Referenced by decode_frame().

◆ decode_subband_slice_buffered()

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

Referenced by decode_frame().

◆ decode_q_branch()

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

Definition at line 158 of file snowdec.c.

Referenced by decode_blocks().

◆ dequantize_slice_buffered()

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

Referenced by decode_frame().

◆ correlate_slice_buffered()

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

Referenced by decode_frame().

◆ decode_qlogs()

static void decode_qlogs ( SnowContext s)
static

Definition at line 278 of file snowdec.c.

Referenced by decode_header().

◆ decode_header()

static int decode_header ( SnowContext s)
static

Definition at line 302 of file snowdec.c.

Referenced by decode_frame().

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 422 of file snowdec.c.

◆ decode_blocks()

static int decode_blocks ( SnowContext s)
static

Definition at line 433 of file snowdec.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 450 of file snowdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 648 of file snowdec.c.

Variable Documentation

◆ ff_snow_decoder

AVCodec ff_snow_decoder
Initial value:
= {
.name = "snow",
.long_name = NULL_IF_CONFIG_SMALL("Snow"),
.priv_data_size = sizeof(SnowContext),
.close = decode_end,
.capabilities = AV_CODEC_CAP_DR1 ,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int decode_end(AVCodecContext *avctx)
Definition: snowdec.c:648
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: snowdec.c:450
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#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
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static av_cold int decode_init(AVCodecContext *avctx)
Definition: snowdec.c:422
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 659 of file snowdec.c.