snow.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 "snowdata.h"
#include "rangecoder.h"
#include "mathops.h"
#include "h263.h"
Include dependency graph for snow.c:

Go to the source code of this file.

Macros

#define MC_STRIDE(x)   (needs[x] ? 64 : stride)
 
#define mca(dx, dy, b_w)
 
#define mcf(dx, dy)
 
#define mcfh(dx, dy)
 
#define USE_HALFPEL_PLANE   0
 

Functions

void ff_snow_inner_add_yblock (const uint8_t *obmc, const int obmc_stride, uint8_t **block, int b_w, int b_h, int src_x, int src_y, int src_stride, slice_buffer *sb, int add, uint8_t *dst8)
 
void ff_snow_reset_contexts (SnowContext *s)
 
int ff_snow_alloc_blocks (SnowContext *s)
 
static void init_qexp (void)
 
static void mc_block (Plane *p, uint8_t *dst, const uint8_t *src, int stride, int b_w, int b_h, int dx, int dy)
 
void ff_snow_pred_block (SnowContext *s, uint8_t *dst, uint8_t *tmp, int stride, int sx, int sy, int b_w, int b_h, BlockNode *block, int plane_index, int w, int h)
 
 mca (mca(0, mca(0, 16)
 
int ff_snow_common_init_after_header (AVCodecContext *avctx)
 
static void halfpel_interpol (SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame)
 
void ff_snow_release_buffer (AVCodecContext *avctx)
 
int ff_snow_frame_start (SnowContext *s)
 
av_cold void ff_snow_common_end (SnowContext *s)
 

Macro Definition Documentation

#define MC_STRIDE (   x)    (needs[x] ? 64 : stride)

Referenced by mc_block().

#define mca (   dx,
  dy,
  b_w 
)
Value:
static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, int h){\
av_assert2(h==b_w);\
mc_block(NULL, dst, src-(HTAPS_MAX/2-1)-(HTAPS_MAX/2-1)*stride, stride, b_w, b_w, dx, dy);\
}
int stride
Definition: mace.c:144
#define HTAPS_MAX
Definition: snow.h:70
uint8_t
#define av_assert2(cond)
assert() equivalent, that does lie in speed critical code.
Definition: avassert.h:63
static void mc_block(Plane *p, uint8_t *dst, const uint8_t *src, int stride, int b_w, int b_h, int dx, int dy)
Definition: snow.c:104
NULL
Definition: eval.c:55
AVS_Value src
Definition: avisynth_c.h:523
else dst[i][x+y *dst_stride[i]]
Definition: vf_mcdeint.c:160

Definition at line 378 of file snow.c.

#define mcf (   dx,
  dy 
)
Value:
s->dsp.put_qpel_pixels_tab [0][dy+dx/4]=\
s->dsp.put_no_rnd_qpel_pixels_tab[0][dy+dx/4]=\
s->h264qpel.put_h264_qpel_pixels_tab[0][dy+dx/4];\
s->dsp.put_qpel_pixels_tab [1][dy+dx/4]=\
s->dsp.put_no_rnd_qpel_pixels_tab[1][dy+dx/4]=\
s->h264qpel.put_h264_qpel_pixels_tab[1][dy+dx/4];
const char * s
Definition: avisynth_c.h:668

Referenced by mca().

#define mcfh (   dx,
  dy 
)
Value:
s->hdsp.put_pixels_tab [0][dy/4+dx/8]=\
s->hdsp.put_no_rnd_pixels_tab[0][dy/4+dx/8]=\
mc_block_hpel ## dx ## dy ## 16;\
s->hdsp.put_pixels_tab [1][dy/4+dx/8]=\
s->hdsp.put_no_rnd_pixels_tab[1][dy/4+dx/8]=\
mc_block_hpel ## dx ## dy ## 8;
const char * s
Definition: avisynth_c.h:668

Referenced by mca().

#define USE_HALFPEL_PLANE   0

Definition at line 542 of file snow.c.

Referenced by ff_snow_frame_start().

Function Documentation

int ff_snow_alloc_blocks ( SnowContext s)

Definition at line 83 of file snow.c.

Referenced by decode_frame(), encode_init(), and snow_horizontal_compose_liftS_lead_out().

av_cold void ff_snow_common_end ( SnowContext s)
int ff_snow_common_init_after_header ( AVCodecContext avctx)

Definition at line 472 of file snow.c.

Referenced by decode_frame(), encode_frame(), and snow_horizontal_compose_liftS_lead_out().

int ff_snow_frame_start ( SnowContext s)

Definition at line 599 of file snow.c.

Referenced by decode_frame(), encode_frame(), and snow_horizontal_compose_liftS_lead_out().

void ff_snow_inner_add_yblock ( const uint8_t obmc,
const int  obmc_stride,
uint8_t **  block,
int  b_w,
int  b_h,
int  src_x,
int  src_y,
int  src_stride,
slice_buffer sb,
int  add,
uint8_t dst8 
)

Definition at line 36 of file snow.c.

Referenced by ff_dwt_init().

void ff_snow_pred_block ( SnowContext s,
uint8_t dst,
uint8_t tmp,
int  stride,
int  sx,
int  sy,
int  b_w,
int  b_h,
BlockNode block,
int  plane_index,
int  w,
int  h 
)

Definition at line 297 of file snow.c.

Referenced by add_yblock(), get_block_rd(), and snow_horizontal_compose_liftS_lead_out().

void ff_snow_release_buffer ( AVCodecContext avctx)
void ff_snow_reset_contexts ( SnowContext s)

Definition at line 69 of file snow.c.

Referenced by decode_header(), encode_header(), and snow_horizontal_compose_liftS_lead_out().

static void halfpel_interpol ( SnowContext s,
uint8_t halfpel[4][4],
AVFrame frame 
)
static

Definition at line 544 of file snow.c.

Referenced by ff_snow_frame_start().

static void init_qexp ( void  )
static

Definition at line 95 of file snow.c.

Referenced by mca().

static void mc_block ( Plane p,
uint8_t dst,
const uint8_t src,
int  stride,
int  b_w,
int  b_h,
int  dx,
int  dy 
)
static

Definition at line 104 of file snow.c.

Referenced by ff_snow_pred_block().

mca ( mca(  0,
mca(  0,
16   
)

Definition at line 384 of file snow.c.