snow.c File Reference

Go to the source code of this file.

Classes

struct  BlockNode
struct  x_and_coeff
struct  SubBand
struct  Plane
struct  SnowContext
struct  dwt_compose_t

Functions

static void iterative_me (SnowContext *s)
static void slice_buffer_init (slice_buffer *buf, int line_count, int max_allocated_lines, int line_width, IDWTELEM *base_buffer)
static IDWTELEMslice_buffer_load_line (slice_buffer *buf, int line)
static void slice_buffer_release (slice_buffer *buf, int line)
static void slice_buffer_flush (slice_buffer *buf)
static void slice_buffer_destroy (slice_buffer *buf)
static int mirror (int v, int m)
static void put_symbol (RangeCoder *c, uint8_t *state, int v, int is_signed)
static int get_symbol (RangeCoder *c, uint8_t *state, int is_signed)
static void put_symbol2 (RangeCoder *c, uint8_t *state, int v, int log2)
static int get_symbol2 (RangeCoder *c, uint8_t *state, int log2)
static av_always_inline void lift (DWTELEM *dst, DWTELEM *src, DWTELEM *ref, int dst_step, int src_step, int ref_step, int width, int mul, int add, int shift, int highpass, int inverse)
static av_always_inline void inv_lift (IDWTELEM *dst, IDWTELEM *src, IDWTELEM *ref, int dst_step, int src_step, int ref_step, int width, int mul, int add, int shift, int highpass, int inverse)
static av_always_inline void liftS (DWTELEM *dst, DWTELEM *src, DWTELEM *ref, int dst_step, int src_step, int ref_step, int width, int mul, int add, int shift, int highpass, int inverse)
static av_always_inline void inv_liftS (IDWTELEM *dst, IDWTELEM *src, IDWTELEM *ref, int dst_step, int src_step, int ref_step, int width, int mul, int add, int shift, int highpass, int inverse)
static void horizontal_decompose53i (DWTELEM *b, int width)
static void vertical_decompose53iH0 (DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width)
static void vertical_decompose53iL0 (DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width)
static void spatial_decompose53i (DWTELEM *buffer, int width, int height, int stride)
static void horizontal_decompose97i (DWTELEM *b, int width)
static void vertical_decompose97iH0 (DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width)
static void vertical_decompose97iH1 (DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width)
static void vertical_decompose97iL0 (DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width)
static void vertical_decompose97iL1 (DWTELEM *b0, DWTELEM *b1, DWTELEM *b2, int width)
static void spatial_decompose97i (DWTELEM *buffer, int width, int height, int stride)
void ff_spatial_dwt (DWTELEM *buffer, int width, int height, int stride, int type, int decomposition_count)
static void horizontal_compose53i (IDWTELEM *b, int width)
static void vertical_compose53iH0 (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
static void vertical_compose53iL0 (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
static void spatial_compose53i_buffered_init (dwt_compose_t *cs, slice_buffer *sb, int height, int stride_line)
static void spatial_compose53i_init (dwt_compose_t *cs, IDWTELEM *buffer, int height, int stride)
static void spatial_compose53i_dy_buffered (dwt_compose_t *cs, slice_buffer *sb, int width, int height, int stride_line)
static void spatial_compose53i_dy (dwt_compose_t *cs, IDWTELEM *buffer, int width, int height, int stride)
void ff_snow_horizontal_compose97i (IDWTELEM *b, int width)
static void vertical_compose97iH0 (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
static void vertical_compose97iH1 (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
static void vertical_compose97iL0 (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
static void vertical_compose97iL1 (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width)
void ff_snow_vertical_compose97i (IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, IDWTELEM *b5, int width)
static void spatial_compose97i_buffered_init (dwt_compose_t *cs, slice_buffer *sb, int height, int stride_line)
static void spatial_compose97i_init (dwt_compose_t *cs, IDWTELEM *buffer, int height, int stride)
static void spatial_compose97i_dy_buffered (DSPContext *dsp, dwt_compose_t *cs, slice_buffer *sb, int width, int height, int stride_line)
static void spatial_compose97i_dy (dwt_compose_t *cs, IDWTELEM *buffer, int width, int height, int stride)
static void ff_spatial_idwt_buffered_init (dwt_compose_t *cs, slice_buffer *sb, int width, int height, int stride_line, int type, int decomposition_count)
static void ff_spatial_idwt_init (dwt_compose_t *cs, IDWTELEM *buffer, int width, int height, int stride, int type, int decomposition_count)
static void ff_spatial_idwt_slice (dwt_compose_t *cs, IDWTELEM *buffer, int width, int height, int stride, int type, int decomposition_count, int y)
static void ff_spatial_idwt_buffered_slice (DSPContext *dsp, dwt_compose_t *cs, slice_buffer *slice_buf, int width, int height, int stride_line, int type, int decomposition_count, int y)
static void ff_spatial_idwt (IDWTELEM *buffer, int width, int height, int stride, int type, int decomposition_count)
static int encode_subband_c0run (SnowContext *s, SubBand *b, IDWTELEM *src, IDWTELEM *parent, int stride, int orientation)
static int encode_subband (SnowContext *s, SubBand *b, IDWTELEM *src, IDWTELEM *parent, int stride, int orientation)
static void unpack_coeffs (SnowContext *s, SubBand *b, SubBand *parent, int orientation)
static void decode_subband_slice_buffered (SnowContext *s, SubBand *b, slice_buffer *sb, int start_y, int h, int save_state[1])
static void reset_contexts (SnowContext *s)
static int alloc_blocks (SnowContext *s)
static void copy_rac_state (RangeCoder *d, RangeCoder *s)
static int pix_sum (uint8_t *pix, int line_size, int w)
static int pix_norm1 (uint8_t *pix, int line_size, int w)
static void set_blocks (SnowContext *s, int level, int x, int y, int l, int cb, int cr, int mx, int my, int ref, int type)
static void init_ref (MotionEstContext *c, uint8_t *src[3], uint8_t *ref[3], uint8_t *ref2[3], int x, int y, int ref_index)
static void pred_mv (SnowContext *s, int *mx, int *my, int ref, const BlockNode *left, const BlockNode *top, const BlockNode *tr)
static int encode_q_branch (SnowContext *s, int level, int x, int y)
static av_always_inline int same_block (BlockNode *a, BlockNode *b)
static void encode_q_branch2 (SnowContext *s, int level, int x, int y)
static void decode_q_branch (SnowContext *s, int level, int x, int y)
static void encode_blocks (SnowContext *s, int search)
static void decode_blocks (SnowContext *s)
static void mc_block (Plane *p, uint8_t *dst, const uint8_t *src, uint8_t *tmp, int stride, int b_w, int b_h, int dx, int dy)
 mca (mca(0, mca(0, 16)
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)
static av_always_inline void add_yblock (SnowContext *s, int sliced, slice_buffer *sb, IDWTELEM *dst, uint8_t *dst8, const uint8_t *obmc, int src_x, int src_y, int b_w, int b_h, int w, int h, int dst_stride, int src_stride, int obmc_stride, int b_x, int b_y, int add, int offset_dst, int plane_index)
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 av_always_inline void predict_slice (SnowContext *s, IDWTELEM *buf, int plane_index, int add, int mb_y)
static av_always_inline void predict_plane (SnowContext *s, IDWTELEM *buf, int plane_index, int add)
static int get_dc (SnowContext *s, int mb_x, int mb_y, int plane_index)
static int get_block_bits (SnowContext *s, int x, int y, int w)
static int get_block_rd (SnowContext *s, int mb_x, int mb_y, int plane_index, const uint8_t *obmc_edged)
static int get_4block_rd (SnowContext *s, int mb_x, int mb_y, int plane_index)
static av_always_inline int check_block (SnowContext *s, int mb_x, int mb_y, int p[3], int intra, const uint8_t *obmc_edged, int *best_rd)
static av_always_inline int check_block_inter (SnowContext *s, int mb_x, int mb_y, int p0, int p1, const uint8_t *obmc_edged, int *best_rd)
static av_always_inline int check_4block_inter (SnowContext *s, int mb_x, int mb_y, int p0, int p1, int ref, int *best_rd)
static void quantize (SnowContext *s, SubBand *b, IDWTELEM *dst, DWTELEM *src, int stride, int bias)
static void dequantize_slice_buffered (SnowContext *s, slice_buffer *sb, SubBand *b, IDWTELEM *src, int stride, int start_y, int end_y)
static void dequantize (SnowContext *s, SubBand *b, IDWTELEM *src, int stride)
static void decorrelate (SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median)
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 correlate (SnowContext *s, SubBand *b, IDWTELEM *src, int stride, int inverse, int use_median)
static void encode_qlogs (SnowContext *s)
static void encode_header (SnowContext *s)
static void decode_qlogs (SnowContext *s)
static int decode_header (SnowContext *s)
static void init_qexp (void)
static int common_init (AVCodecContext *avctx)
static int common_init_after_header (AVCodecContext *avctx)
static int qscale2qlog (int qscale)
static int ratecontrol_1pass (SnowContext *s, AVFrame *pict)
static void calculate_visual_weight (SnowContext *s, Plane *p)
static void find_sse (SnowContext *s, Plane *p, int *score, int score_stride, IDWTELEM *r0, IDWTELEM *r1, int level, int orientation)
static void dequantize_all (SnowContext *s, Plane *p, IDWTELEM *buffer, int width, int height)
static void dwt_quantize (SnowContext *s, Plane *p, DWTELEM *buffer, int width, int height, int stride, int type)
static int encode_init (AVCodecContext *avctx)
static void halfpel_interpol (SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame)
static int frame_start (SnowContext *s)
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
static void common_end (SnowContext *s)
static int encode_end (AVCodecContext *avctx)
static int decode_init (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int decode_end (AVCodecContext *avctx)
int main ()

Variables

static const int8_t quant3 [256]
static const int8_t quant3b [256]
static const int8_t quant3bA [256]
static const int8_t quant5 [256]
static const int8_t quant7 [256]
static const int8_t quant9 [256]
static const int8_t quant11 [256]
static const int8_t quant13 [256]
static const uint8_t obmc32 [1024]
static const uint8_t obmc16 [256]
static const uint8_t obmc8 [64]
static const uint8_t obmc4 [16]
static const uint8_t * obmc_tab [4]
static int scale_mv_ref [MAX_REF_FRAMES][MAX_REF_FRAMES]
static const BlockNode null_block
static uint8_t qexp [QROOT]
AVCodec snow_decoder
AVCodec snow_encoder


Function Documentation

static void iterative_me ( SnowContext s  )  [static]

Definition at line 3080 of file snow.c.

Referenced by encode_blocks().

static void slice_buffer_init ( slice_buffer buf,
int  line_count,
int  max_allocated_lines,
int  line_width,
IDWTELEM base_buffer 
) [static]

Definition at line 506 of file snow.c.

Referenced by decode_frame().

static IDWTELEM* slice_buffer_load_line ( slice_buffer buf,
int  line 
) [static]

Definition at line 525 of file snow.c.

static void slice_buffer_release ( slice_buffer buf,
int  line 
) [static]

Definition at line 547 of file snow.c.

Referenced by decode_frame(), and slice_buffer_flush().

static void slice_buffer_flush ( slice_buffer buf  )  [static]

Definition at line 564 of file snow.c.

Referenced by decode_frame(), and slice_buffer_destroy().

static void slice_buffer_destroy ( slice_buffer buf  )  [static]

Definition at line 577 of file snow.c.

Referenced by decode_end(), and decode_frame().

static int mirror ( int  v,
int  m 
) [inline, static]

static void put_symbol ( RangeCoder c,
uint8_t *  state,
int  v,
int  is_signed 
) [inline, static]

Definition at line 605 of file snow.c.

static int get_symbol ( RangeCoder c,
uint8_t *  state,
int  is_signed 
) [inline, static]

Definition at line 666 of file snow.c.

static void put_symbol2 ( RangeCoder c,
uint8_t *  state,
int  v,
int  log2 
) [inline, static]

Definition at line 688 of file snow.c.

Referenced by encode_subband_c0run().

static int get_symbol2 ( RangeCoder c,
uint8_t *  state,
int  log2 
) [inline, static]

Definition at line 708 of file snow.c.

Referenced by unpack_coeffs().

static av_always_inline void lift ( DWTELEM dst,
DWTELEM src,
DWTELEM ref,
int  dst_step,
int  src_step,
int  ref_step,
int  width,
int  mul,
int  add,
int  shift,
int  highpass,
int  inverse 
) [static]

Definition at line 729 of file snow.c.

Referenced by horizontal_decompose53i(), and horizontal_decompose97i().

static av_always_inline void inv_lift ( IDWTELEM dst,
IDWTELEM src,
IDWTELEM ref,
int  dst_step,
int  src_step,
int  ref_step,
int  width,
int  mul,
int  add,
int  shift,
int  highpass,
int  inverse 
) [static]

Definition at line 761 of file snow.c.

Referenced by ff_snow_horizontal_compose97i(), and horizontal_compose53i().

static av_always_inline void liftS ( DWTELEM dst,
DWTELEM src,
DWTELEM ref,
int  dst_step,
int  src_step,
int  ref_step,
int  width,
int  mul,
int  add,
int  shift,
int  highpass,
int  inverse 
) [static]

Definition at line 794 of file snow.c.

Referenced by horizontal_decompose97i().

static av_always_inline void inv_liftS ( IDWTELEM dst,
IDWTELEM src,
IDWTELEM ref,
int  dst_step,
int  src_step,
int  ref_step,
int  width,
int  mul,
int  add,
int  shift,
int  highpass,
int  inverse 
) [static]

Definition at line 827 of file snow.c.

Referenced by ff_snow_horizontal_compose97i().

static void horizontal_decompose53i ( DWTELEM b,
int  width 
) [static]

Definition at line 861 of file snow.c.

Referenced by spatial_decompose53i().

static void vertical_decompose53iH0 ( DWTELEM b0,
DWTELEM b1,
DWTELEM b2,
int  width 
) [static]

Definition at line 910 of file snow.c.

Referenced by spatial_decompose53i().

static void vertical_decompose53iL0 ( DWTELEM b0,
DWTELEM b1,
DWTELEM b2,
int  width 
) [static]

Definition at line 918 of file snow.c.

Referenced by spatial_decompose53i().

static void spatial_decompose53i ( DWTELEM buffer,
int  width,
int  height,
int  stride 
) [static]

Definition at line 926 of file snow.c.

Referenced by ff_spatial_dwt().

static void horizontal_decompose97i ( DWTELEM b,
int  width 
) [static]

Definition at line 950 of file snow.c.

Referenced by spatial_decompose97i().

static void vertical_decompose97iH0 ( DWTELEM b0,
DWTELEM b1,
DWTELEM b2,
int  width 
) [static]

Definition at line 961 of file snow.c.

Referenced by spatial_decompose97i().

static void vertical_decompose97iH1 ( DWTELEM b0,
DWTELEM b1,
DWTELEM b2,
int  width 
) [static]

Definition at line 969 of file snow.c.

Referenced by spatial_decompose97i().

static void vertical_decompose97iL0 ( DWTELEM b0,
DWTELEM b1,
DWTELEM b2,
int  width 
) [static]

Definition at line 977 of file snow.c.

Referenced by spatial_decompose97i().

static void vertical_decompose97iL1 ( DWTELEM b0,
DWTELEM b1,
DWTELEM b2,
int  width 
) [static]

Definition at line 989 of file snow.c.

Referenced by spatial_decompose97i().

static void spatial_decompose97i ( DWTELEM buffer,
int  width,
int  height,
int  stride 
) [static]

Definition at line 997 of file snow.c.

Referenced by ff_spatial_dwt().

void ff_spatial_dwt ( DWTELEM buffer,
int  width,
int  height,
int  stride,
int  type,
int  decomposition_count 
)

Definition at line 1032 of file snow.c.

Referenced by dwt_quantize(), encode_frame(), main(), and w_c().

static void horizontal_compose53i ( IDWTELEM b,
int  width 
) [static]

Definition at line 1043 of file snow.c.

Referenced by spatial_compose53i_dy(), and spatial_compose53i_dy_buffered().

static void vertical_compose53iH0 ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
int  width 
) [static]

Definition at line 1090 of file snow.c.

Referenced by spatial_compose53i_dy(), and spatial_compose53i_dy_buffered().

static void vertical_compose53iL0 ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
int  width 
) [static]

Definition at line 1098 of file snow.c.

Referenced by spatial_compose53i_dy(), and spatial_compose53i_dy_buffered().

static void spatial_compose53i_buffered_init ( dwt_compose_t cs,
slice_buffer sb,
int  height,
int  stride_line 
) [static]

Definition at line 1106 of file snow.c.

Referenced by ff_spatial_idwt_buffered_init().

static void spatial_compose53i_init ( dwt_compose_t cs,
IDWTELEM buffer,
int  height,
int  stride 
) [static]

Definition at line 1112 of file snow.c.

Referenced by ff_spatial_idwt_init().

static void spatial_compose53i_dy_buffered ( dwt_compose_t cs,
slice_buffer sb,
int  width,
int  height,
int  stride_line 
) [static]

Definition at line 1118 of file snow.c.

Referenced by ff_spatial_idwt_buffered_slice().

static void spatial_compose53i_dy ( dwt_compose_t cs,
IDWTELEM buffer,
int  width,
int  height,
int  stride 
) [static]

Definition at line 1141 of file snow.c.

Referenced by ff_spatial_idwt_slice().

void ff_snow_horizontal_compose97i ( IDWTELEM b,
int  width 
)

Definition at line 1164 of file snow.c.

Referenced by dsputil_init(), and spatial_compose97i_dy().

static void vertical_compose97iH0 ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
int  width 
) [static]

Definition at line 1174 of file snow.c.

Referenced by spatial_compose97i_dy(), and spatial_compose97i_dy_buffered().

static void vertical_compose97iH1 ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
int  width 
) [static]

Definition at line 1182 of file snow.c.

Referenced by spatial_compose97i_dy(), and spatial_compose97i_dy_buffered().

static void vertical_compose97iL0 ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
int  width 
) [static]

Definition at line 1190 of file snow.c.

Referenced by spatial_compose97i_dy(), and spatial_compose97i_dy_buffered().

static void vertical_compose97iL1 ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
int  width 
) [static]

Definition at line 1202 of file snow.c.

Referenced by spatial_compose97i_dy(), and spatial_compose97i_dy_buffered().

void ff_snow_vertical_compose97i ( IDWTELEM b0,
IDWTELEM b1,
IDWTELEM b2,
IDWTELEM b3,
IDWTELEM b4,
IDWTELEM b5,
int  width 
)

Definition at line 1210 of file snow.c.

Referenced by dsputil_init().

static void spatial_compose97i_buffered_init ( dwt_compose_t cs,
slice_buffer sb,
int  height,
int  stride_line 
) [static]

Definition at line 1225 of file snow.c.

Referenced by ff_spatial_idwt_buffered_init().

static void spatial_compose97i_init ( dwt_compose_t cs,
IDWTELEM buffer,
int  height,
int  stride 
) [static]

Definition at line 1233 of file snow.c.

Referenced by ff_spatial_idwt_init().

static void spatial_compose97i_dy_buffered ( DSPContext dsp,
dwt_compose_t cs,
slice_buffer sb,
int  width,
int  height,
int  stride_line 
) [static]

Definition at line 1241 of file snow.c.

Referenced by ff_spatial_idwt_buffered_slice().

static void spatial_compose97i_dy ( dwt_compose_t cs,
IDWTELEM buffer,
int  width,
int  height,
int  stride 
) [static]

Definition at line 1276 of file snow.c.

Referenced by ff_spatial_idwt_slice().

static void ff_spatial_idwt_buffered_init ( dwt_compose_t cs,
slice_buffer sb,
int  width,
int  height,
int  stride_line,
int  type,
int  decomposition_count 
) [static]

Definition at line 1306 of file snow.c.

Referenced by decode_frame().

static void ff_spatial_idwt_init ( dwt_compose_t cs,
IDWTELEM buffer,
int  width,
int  height,
int  stride,
int  type,
int  decomposition_count 
) [static]

Definition at line 1316 of file snow.c.

Referenced by ff_spatial_idwt().

static void ff_spatial_idwt_slice ( dwt_compose_t cs,
IDWTELEM buffer,
int  width,
int  height,
int  stride,
int  type,
int  decomposition_count,
int  y 
) [static]

Definition at line 1326 of file snow.c.

Referenced by ff_spatial_idwt().

static void ff_spatial_idwt_buffered_slice ( DSPContext dsp,
dwt_compose_t cs,
slice_buffer slice_buf,
int  width,
int  height,
int  stride_line,
int  type,
int  decomposition_count,
int  y 
) [static]

Definition at line 1343 of file snow.c.

Referenced by decode_frame().

static void ff_spatial_idwt ( IDWTELEM buffer,
int  width,
int  height,
int  stride,
int  type,
int  decomposition_count 
) [static]

Definition at line 1360 of file snow.c.

Referenced by calculate_visual_weight(), dwt_quantize(), encode_frame(), and main().

static int encode_subband_c0run ( SnowContext s,
SubBand b,
IDWTELEM src,
IDWTELEM parent,
int  stride,
int  orientation 
) [static]

Definition at line 1368 of file snow.c.

Referenced by encode_subband().

static int encode_subband ( SnowContext s,
SubBand b,
IDWTELEM src,
IDWTELEM parent,
int  stride,
int  orientation 
) [static]

Definition at line 1488 of file snow.c.

Referenced by encode_frame().

static void unpack_coeffs ( SnowContext s,
SubBand b,
SubBand parent,
int  orientation 
) [inline, static]

Definition at line 1495 of file snow.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] 
) [inline, static]

Definition at line 1595 of file snow.c.

Referenced by decode_frame().

static void reset_contexts ( SnowContext s  )  [static]

Definition at line 1642 of file snow.c.

Referenced by decode_header(), and encode_header().

static int alloc_blocks ( SnowContext s  )  [static]

Definition at line 1656 of file snow.c.

Referenced by decode_frame(), and encode_init().

static void copy_rac_state ( RangeCoder d,
RangeCoder s 
) [inline, static]

Definition at line 1667 of file snow.c.

static int pix_sum ( uint8_t *  pix,
int  line_size,
int  w 
) [static]

Definition at line 1676 of file snow.c.

Referenced by encode_q_branch().

static int pix_norm1 ( uint8_t *  pix,
int  line_size,
int  w 
) [static]

Definition at line 1692 of file snow.c.

Referenced by encode_q_branch().

static void set_blocks ( SnowContext s,
int  level,
int  x,
int  y,
int  l,
int  cb,
int  cr,
int  mx,
int  my,
int  ref,
int  type 
) [inline, static]

Definition at line 1708 of file snow.c.

Referenced by decode_q_branch(), encode_q_branch(), and encode_q_branch2().

static void init_ref ( MotionEstContext c,
uint8_t *  src[3],
uint8_t *  ref[3],
uint8_t *  ref2[3],
int  x,
int  y,
int  ref_index 
) [inline, static]

Definition at line 1732 of file snow.c.

static void pred_mv ( SnowContext s,
int *  mx,
int *  my,
int  ref,
const BlockNode left,
const BlockNode top,
const BlockNode tr 
) [inline, static]

Definition at line 1746 of file snow.c.

Referenced by decode_q_branch(), encode_q_branch(), encode_q_branch2(), and get_block_bits().

static int encode_q_branch ( SnowContext s,
int  level,
int  x,
int  y 
) [static]

Definition at line 1770 of file snow.c.

Referenced by encode_blocks(), and iterative_me().

static av_always_inline int same_block ( BlockNode a,
BlockNode b 
) [static]

Definition at line 1994 of file snow.c.

Referenced by add_yblock(), encode_q_branch2(), get_4block_rd(), and iterative_me().

static void encode_q_branch2 ( SnowContext s,
int  level,
int  x,
int  y 
) [static]

Definition at line 2002 of file snow.c.

Referenced by encode_blocks().

static void decode_q_branch ( SnowContext s,
int  level,
int  x,
int  y 
) [static]

Definition at line 2056 of file snow.c.

Referenced by decode_blocks().

static void encode_blocks ( SnowContext s,
int  search 
) [static]

Definition at line 2105 of file snow.c.

Referenced by encode_frame().

static void decode_blocks ( SnowContext s  )  [static]

Definition at line 2127 of file snow.c.

Referenced by decode_frame().

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

Definition at line 2139 of file snow.c.

Referenced by mca().

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

Definition at line 2332 of file snow.c.

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 
)

static av_always_inline void add_yblock ( SnowContext s,
int  sliced,
slice_buffer sb,
IDWTELEM dst,
uint8_t *  dst8,
const uint8_t *  obmc,
int  src_x,
int  src_y,
int  b_w,
int  b_h,
int  w,
int  h,
int  dst_stride,
int  src_stride,
int  obmc_stride,
int  b_x,
int  b_y,
int  add,
int  offset_dst,
int  plane_index 
) [static]

Definition at line 2455 of file snow.c.

Referenced by get_4block_rd(), get_dc(), predict_slice(), and 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 2613 of file snow.c.

Referenced by decode_frame().

static av_always_inline void predict_slice ( SnowContext s,
IDWTELEM buf,
int  plane_index,
int  add,
int  mb_y 
) [static]

Definition at line 2680 of file snow.c.

Referenced by predict_plane().

static av_always_inline void predict_plane ( SnowContext s,
IDWTELEM buf,
int  plane_index,
int  add 
) [static]

Definition at line 2737 of file snow.c.

Referenced by decode_frame(), and encode_frame().

static int get_dc ( SnowContext s,
int  mb_x,
int  mb_y,
int  plane_index 
) [static]

Definition at line 2744 of file snow.c.

static int get_block_bits ( SnowContext s,
int  x,
int  y,
int  w 
) [inline, static]

Definition at line 2799 of file snow.c.

Referenced by get_4block_rd(), and get_block_rd().

static int get_block_rd ( SnowContext s,
int  mb_x,
int  mb_y,
int  plane_index,
const uint8_t *  obmc_edged 
) [static]

Definition at line 2837 of file snow.c.

Referenced by check_block().

static int get_4block_rd ( SnowContext s,
int  mb_x,
int  mb_y,
int  plane_index 
) [static]

Definition at line 2935 of file snow.c.

Referenced by check_4block_inter(), and iterative_me().

static av_always_inline int check_block ( SnowContext s,
int  mb_x,
int  mb_y,
int  p[3],
int  intra,
const uint8_t *  obmc_edged,
int *  best_rd 
) [static]

Definition at line 2999 of file snow.c.

Referenced by check_block_inter(), and iterative_me().

static av_always_inline int check_block_inter ( SnowContext s,
int  mb_x,
int  mb_y,
int  p0,
int  p1,
const uint8_t *  obmc_edged,
int *  best_rd 
) [static]

Definition at line 3038 of file snow.c.

Referenced by iterative_me().

static av_always_inline int check_4block_inter ( SnowContext s,
int  mb_x,
int  mb_y,
int  p0,
int  p1,
int  ref,
int *  best_rd 
) [static]

Definition at line 3043 of file snow.c.

Referenced by iterative_me().

static void quantize ( SnowContext s,
SubBand b,
IDWTELEM dst,
DWTELEM src,
int  stride,
int  bias 
) [static]

Definition at line 3305 of file snow.c.

Referenced by dwt_quantize(), and encode_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 3371 of file snow.c.

Referenced by decode_frame().

static void dequantize ( SnowContext s,
SubBand b,
IDWTELEM src,
int  stride 
) [static]

Definition at line 3398 of file snow.c.

Referenced by dequantize_all(), and encode_frame().

static void decorrelate ( SnowContext s,
SubBand b,
IDWTELEM src,
int  stride,
int  inverse,
int  use_median 
) [static]

Definition at line 3424 of file snow.c.

Referenced by encode_frame(), and ratecontrol_1pass().

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

Referenced by decode_frame().

static void correlate ( SnowContext s,
SubBand b,
IDWTELEM src,
int  stride,
int  inverse,
int  use_median 
) [static]

Definition at line 3482 of file snow.c.

Referenced by encode_frame().

static void encode_qlogs ( SnowContext s  )  [static]

Definition at line 3506 of file snow.c.

Referenced by encode_header().

static void encode_header ( SnowContext s  )  [static]

Definition at line 3519 of file snow.c.

Referenced by encode_frame().

static void decode_qlogs ( SnowContext s  )  [static]

Definition at line 3600 of file snow.c.

Referenced by decode_header().

static int decode_header ( SnowContext s  )  [static]

Definition at line 3616 of file snow.c.

Referenced by decode_frame().

static void init_qexp ( void   )  [static]

Definition at line 3696 of file snow.c.

Referenced by common_init().

static int common_init ( AVCodecContext avctx  )  [static]

Definition at line 3706 of file snow.c.

static int common_init_after_header ( AVCodecContext avctx  )  [static]

Definition at line 3773 of file snow.c.

Referenced by decode_frame(), and encode_frame().

static int qscale2qlog ( int  qscale  )  [static]

Definition at line 3827 of file snow.c.

Referenced by encode_frame(), and ratecontrol_1pass().

static int ratecontrol_1pass ( SnowContext s,
AVFrame pict 
) [static]

Definition at line 3832 of file snow.c.

Referenced by encode_frame().

static void calculate_visual_weight ( SnowContext s,
Plane p 
) [static]

Definition at line 3884 of file snow.c.

Referenced by encode_frame().

static void find_sse ( SnowContext s,
Plane p,
int *  score,
int  score_stride,
IDWTELEM r0,
IDWTELEM r1,
int  level,
int  orientation 
) [static]

Definition at line 3916 of file snow.c.

Referenced by dwt_quantize().

static void dequantize_all ( SnowContext s,
Plane p,
IDWTELEM buffer,
int  width,
int  height 
) [static]

Definition at line 3944 of file snow.c.

Referenced by dwt_quantize().

static void dwt_quantize ( SnowContext s,
Plane p,
DWTELEM buffer,
int  width,
int  height,
int  stride,
int  type 
) [static]

Definition at line 3957 of file snow.c.

Referenced by encode_frame().

static int encode_init ( AVCodecContext avctx  )  [static]

Definition at line 4028 of file snow.c.

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

Definition at line 4130 of file snow.c.

Referenced by frame_start().

static int frame_start ( SnowContext s  )  [static]

Definition at line 4174 of file snow.c.

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void *  data 
) [static]

Definition at line 4214 of file snow.c.

static void common_end ( SnowContext s  )  [static]

Definition at line 4494 of file snow.c.

static int encode_end ( AVCodecContext avctx  )  [static]

Definition at line 4525 of file snow.c.

static int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 4535 of file snow.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 4544 of file snow.c.

static int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 4715 of file snow.c.

int main ( void   ) 

Definition at line 4758 of file snow.c.


Variable Documentation

const int8_t quant3[256] [static]

Initial value:

{
 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, 0,
}

Definition at line 32 of file snow.c.

const int8_t quant3b[256] [static]

Initial value:

{
 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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2,-2,-2,-2,-2,-2,-2,
-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,
-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-1,-1,
}

Definition at line 104 of file snow.c.

const int8_t quant9[256] [static]

Initial value:

{
 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-3,-3,-3,-3,
-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-2,-2,-2,-2,-1,-1,
}

Definition at line 122 of file snow.c.

const int8_t quant11[256] [static]

Initial value:

{
 0, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4,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 6, 6,
 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,
-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,
-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,
-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,
-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-5,
-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,
-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,
-4,-4,-4,-4,-4,-4,-4,-4,-4,-3,-3,-3,-3,-2,-2,-1,
}

Definition at line 158 of file snow.c.

static const uint8_t obmc32 [static]

Definition at line 178 of file snow.c.

static const uint8_t obmc16 [static]

Initial value:

{
  0,  0,  0,  0,  0,  0,  4,  4,  4,  4,  0,  0,  0,  0,  0,  0,
  0,  4,  4,  8, 16, 20, 20, 24, 24, 20, 20, 16,  8,  4,  4,  0,
  0,  4, 16, 24, 36, 44, 52, 60, 60, 52, 44, 36, 24, 16,  4,  0,
  0,  8, 24, 44, 60, 80, 96,104,104, 96, 80, 60, 44, 24,  8,  0,
  0, 16, 36, 60, 92,116,136,152,152,136,116, 92, 60, 36, 16,  0,
  0, 20, 44, 80,116,152,180,196,196,180,152,116, 80, 44, 20,  0,
  4, 20, 52, 96,136,180,212,228,228,212,180,136, 96, 52, 20,  4,
  4, 24, 60,104,152,196,228,248,248,228,196,152,104, 60, 24,  4,
  4, 24, 60,104,152,196,228,248,248,228,196,152,104, 60, 24,  4,
  4, 20, 52, 96,136,180,212,228,228,212,180,136, 96, 52, 20,  4,
  0, 20, 44, 80,116,152,180,196,196,180,152,116, 80, 44, 20,  0,
  0, 16, 36, 60, 92,116,136,152,152,136,116, 92, 60, 36, 16,  0,
  0,  8, 24, 44, 60, 80, 96,104,104, 96, 80, 60, 44, 24,  8,  0,
  0,  4, 16, 24, 36, 44, 52, 60, 60, 52, 44, 36, 24, 16,  4,  0,
  0,  4,  4,  8, 16, 20, 20, 24, 24, 20, 20, 16,  8,  4,  4,  0,
  0,  0,  0,  0,  0,  0,  4,  4,  4,  4,  0,  0,  0,  0,  0,  0,

}

Definition at line 213 of file snow.c.

const uint8_t obmc8[64] [static]

Initial value:

{
  4, 12, 20, 28, 28, 20, 12,  4,
 12, 36, 60, 84, 84, 60, 36, 12,
 20, 60,100,140,140,100, 60, 20,
 28, 84,140,196,196,140, 84, 28,
 28, 84,140,196,196,140, 84, 28,
 20, 60,100,140,140,100, 60, 20,
 12, 36, 60, 84, 84, 60, 36, 12,
  4, 12, 20, 28, 28, 20, 12,  4,

}

Definition at line 345 of file snow.c.

const uint8_t obmc4[16] [static]

Initial value:

{
 16, 48, 48, 16,
 48,144,144, 48,
 48,144,144, 48,
 16, 48, 48, 16,

}

Definition at line 358 of file snow.c.

Referenced by add_yblock(), ff_snow_inner_add_yblock(), inner_add_yblock_a_bw_16_obmc_32_altivec(), inner_add_yblock_a_bw_8_obmc_16_altivec(), inner_add_yblock_bw_16_obmc_32_altivec(), and inner_add_yblock_bw_8_obmc_16_altivec().

const uint8_t* obmc_tab[4] [static]

Initial value:

Definition at line 366 of file snow.c.

Referenced by get_4block_rd(), get_dc(), iterative_me(), predict_slice(), and predict_slice_buffered().

int scale_mv_ref[MAX_REF_FRAMES][MAX_REF_FRAMES] [static]

Definition at line 370 of file snow.c.

Referenced by common_init(), and pred_mv().

const BlockNode null_block [static]

Initial value:

 { 
    .color= {128,128,128},
    .mx= 0,
    .my= 0,
    .ref= 0,
    .type= 0,
    .level= 0,
}

Definition at line 385 of file snow.c.

uint8_t qexp[QROOT] [static]

Initial value:

Definition at line 4726 of file snow.c.

Initial value:

Definition at line 4740 of file snow.c.


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5