FFmpeg
Macros | Functions
snow.c File Reference
#include "libavutil/log.h"
#include "libavutil/thread.h"
#include "avcodec.h"
#include "snow_dwt.h"
#include "snow.h"
#include "snowdata.h"

Go to the source code of this file.

Macros

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

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 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, ptrdiff_t stride, int sx, int sy, int b_w, int b_h, const BlockNode *block, int plane_index, int w, int h)
 
 mca (mca(0, mca(0, 16)
 
av_cold int ff_snow_common_init (AVCodecContext *avctx)
 
int ff_snow_common_init_after_header (AVCodecContext *avctx)
 
void ff_snow_release_buffer (AVCodecContext *avctx)
 
int ff_snow_frames_prepare (SnowContext *s)
 
av_cold void ff_snow_common_end (SnowContext *s)
 

Macro Definition Documentation

◆ MC_STRIDE

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

◆ mca

#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);\
}

Definition at line 372 of file snow.c.

◆ mcfh

#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;

Function Documentation

◆ ff_snow_inner_add_yblock()

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 29 of file snow.c.

Referenced by ff_dwt_init().

◆ ff_snow_reset_contexts()

void ff_snow_reset_contexts ( SnowContext s)

Definition at line 62 of file snow.c.

Referenced by decode_header(), and encode_header().

◆ ff_snow_alloc_blocks()

int ff_snow_alloc_blocks ( SnowContext s)

Definition at line 76 of file snow.c.

Referenced by decode_frame(), and encode_init().

◆ mc_block()

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 91 of file snow.c.

Referenced by ff_snow_pred_block().

◆ ff_snow_pred_block()

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

Definition at line 284 of file snow.c.

Referenced by add_yblock(), and get_block_rd().

◆ mca()

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

Definition at line 378 of file snow.c.

◆ ff_snow_common_init()

av_cold int ff_snow_common_init ( AVCodecContext avctx)

Definition at line 394 of file snow.c.

Referenced by encode_init().

◆ ff_snow_common_init_after_header()

int ff_snow_common_init_after_header ( AVCodecContext avctx)

Definition at line 449 of file snow.c.

Referenced by decode_frame(), and encode_frame().

◆ ff_snow_release_buffer()

void ff_snow_release_buffer ( AVCodecContext avctx)

Definition at line 513 of file snow.c.

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

◆ ff_snow_frames_prepare()

int ff_snow_frames_prepare ( SnowContext s)

Definition at line 522 of file snow.c.

Referenced by decode_frame(), and encode_frame().

◆ ff_snow_common_end()

av_cold void ff_snow_common_end ( SnowContext s)

Definition at line 553 of file snow.c.

Referenced by decode_end(), and encode_end().

s
#define s(width, name)
Definition: cbs_vp9.c:198
NULL
#define NULL
Definition: coverity.c:32
stride
#define stride
Definition: h264pred_template.c:537
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
HTAPS_MAX
#define HTAPS_MAX
Definition: snow.h:75
h
h
Definition: vp9dsp_template.c:2038