libavcodec/snow.c File Reference

#include "libavutil/intmath.h"
#include "avcodec.h"
#include "dsputil.h"
#include "dwt.h"
#include "snow.h"
#include "rangecoder.h"
#include "mathops.h"
#include "mpegvideo.h"
#include "h263.h"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  BlockNode
struct  x_and_coeff
struct  SubBand
struct  Plane
struct  SnowContext

Defines

#define BLOCK_INTRA   1
#define BLOCK_OPT   2
#define LOG2_MB_SIZE   4
#define MB_SIZE   (1<<LOG2_MB_SIZE)
#define ENCODER_EXTRA_BITS   4
#define HTAPS_MAX   8
#define QBIAS_SHIFT   3
#define ME_CACHE_SIZE   1024
#define QEXPSHIFT   (7-FRAC_BITS+8)
#define mca(dx, dy, b_w)
#define GET_S(dst, check)
#define mcf(dx, dy)
#define mcfh(dx, dy)
#define QUANTIZE2   0
#define USE_HALFPEL_PLANE   0

Functions

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 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 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 av_always_inline int same_block (BlockNode *a, BlockNode *b)
static void decode_q_branch (SnowContext *s, int level, int x, int y)
static void decode_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)
 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 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 void init_qexp (void)
static av_cold int common_init (AVCodecContext *avctx)
static int common_init_after_header (AVCodecContext *avctx)
static void halfpel_interpol (SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame)
static void release_buffer (AVCodecContext *avctx)
static int frame_start (SnowContext *s)
static av_cold void common_end (SnowContext *s)
static av_cold int decode_init (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_end (AVCodecContext *avctx)

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 *const 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 ff_snow_decoder


Define Documentation

#define BLOCK_INTRA   1

Definition at line 383 of file snow.c.

Referenced by decode_q_branch(), mca(), and same_block().

#define BLOCK_OPT   2

Definition at line 384 of file snow.c.

#define ENCODER_EXTRA_BITS   4

Definition at line 400 of file snow.c.

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

Referenced by decode_header().

#define HTAPS_MAX   8

Definition at line 401 of file snow.c.

Referenced by decode_header(), mc_block(), and mca().

#define LOG2_MB_SIZE   4

Definition at line 398 of file snow.c.

Referenced by alloc_blocks().

#define MB_SIZE   (1<<LOG2_MB_SIZE)

#define mca ( dx,
dy,
b_w   ) 

Value:

static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, const uint8_t *src, int stride, int h){\
    assert(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 1107 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->dsp.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->dsp.put_h264_qpel_pixels_tab[1][dy+dx/4];

Referenced by common_init().

#define mcfh ( dx,
dy   ) 

Value:

s->dsp.put_pixels_tab       [0][dy/4+dx/8]=\
    s->dsp.put_no_rnd_pixels_tab[0][dy/4+dx/8]=\
        mc_block_hpel ## dx ## dy ## 16;\
    s->dsp.put_pixels_tab       [1][dy/4+dx/8]=\
    s->dsp.put_no_rnd_pixels_tab[1][dy/4+dx/8]=\
        mc_block_hpel ## dx ## dy ## 8;

Referenced by common_init().

#define ME_CACHE_SIZE   1024

Definition at line 489 of file snow.c.

#define QBIAS_SHIFT   3

Definition at line 482 of file snow.c.

Referenced by decode_subband_slice_buffered(), and dequantize_slice_buffered().

#define QEXPSHIFT   (7-FRAC_BITS+8)

Definition at line 503 of file snow.c.

Referenced by decode_subband_slice_buffered(), and dequantize_slice_buffered().

#define QUANTIZE2   0

Definition at line 1798 of file snow.c.

#define USE_HALFPEL_PLANE   0

Definition at line 1915 of file snow.c.

Referenced by frame_start().


Function Documentation

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

Referenced by predict_slice(), and predict_slice_buffered().

static int alloc_blocks ( SnowContext s  )  [static]

Definition at line 780 of file snow.c.

Referenced by decode_frame().

static av_cold void common_end ( SnowContext s  )  [static]

Definition at line 2023 of file snow.c.

static av_cold int common_init ( AVCodecContext avctx  )  [static]

Definition at line 1675 of file snow.c.

static int common_init_after_header ( AVCodecContext avctx  )  [static]

Definition at line 1745 of file snow.c.

Referenced by decode_frame().

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

Definition at line 792 of file snow.c.

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

Referenced by decode_frame().

static void decode_blocks ( SnowContext s  )  [static]

Definition at line 911 of file snow.c.

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 2230 of file snow.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 2069 of file snow.c.

static int decode_header ( SnowContext s  )  [static]

Definition at line 1583 of file snow.c.

Referenced by decode_frame().

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 2060 of file snow.c.

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

Definition at line 862 of file snow.c.

Referenced by decode_blocks().

static void decode_qlogs ( SnowContext s  )  [static]

Definition at line 1559 of file snow.c.

Referenced by decode_header().

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

Referenced by decode_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 1506 of file snow.c.

Referenced by decode_frame().

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 int frame_start ( SnowContext s  )  [static]

Definition at line 1971 of file snow.c.

Referenced by decode_dds1(), decode_dsw1(), decode_frame(), and decode_tsw1().

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

Definition at line 567 of file snow.c.

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

Definition at line 607 of file snow.c.

Referenced by unpack_coeffs().

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

Definition at line 1917 of file snow.c.

Referenced by frame_start().

static void init_qexp ( void   )  [static]

Definition at line 1665 of file snow.c.

Referenced by common_init().

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

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

Referenced by mca().

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

Definition at line 1113 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 838 of file snow.c.

Referenced by decode_q_branch().

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

Definition at line 1499 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 1449 of file snow.c.

Referenced by predict_plane().

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

Referenced by decode_frame().

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

Definition at line 506 of file snow.c.

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

Definition at line 587 of file snow.c.

static void release_buffer ( AVCodecContext avctx  )  [static]

Definition at line 1959 of file snow.c.

Referenced by decode_frame(), and frame_start().

static void reset_contexts ( SnowContext s  )  [static]

Definition at line 766 of file snow.c.

Referenced by decode_header().

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

Definition at line 854 of file snow.c.

Referenced by add_yblock().

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

Referenced by decode_q_branch().

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

Definition at line 627 of file snow.c.

Referenced by decode_frame().


Variable Documentation

Initial value:

Definition at line 2241 of file snow.c.

const BlockNode null_block [static]

Initial value:

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

Definition at line 389 of file snow.c.

const uint8_t obmc16[256] [static]

Initial value:

{
  0,  4,  4,  8,  8, 12, 12, 16, 16, 12, 12,  8,  8,  4,  4,  0,
  4,  8, 16, 20, 28, 32, 40, 44, 44, 40, 32, 28, 20, 16,  8,  4,
  4, 16, 24, 36, 44, 56, 64, 76, 76, 64, 56, 44, 36, 24, 16,  4,
  8, 20, 36, 48, 64, 76, 92,104,104, 92, 76, 64, 48, 36, 20,  8,
  8, 28, 44, 64, 80,100,116,136,136,116,100, 80, 64, 44, 28,  8,
 12, 32, 56, 76,100,120,144,164,164,144,120,100, 76, 56, 32, 12,
 12, 40, 64, 92,116,144,168,196,196,168,144,116, 92, 64, 40, 12,
 16, 44, 76,104,136,164,196,224,224,196,164,136,104, 76, 44, 16,
 16, 44, 76,104,136,164,196,224,224,196,164,136,104, 76, 44, 16,
 12, 40, 64, 92,116,144,168,196,196,168,144,116, 92, 64, 40, 12,
 12, 32, 56, 76,100,120,144,164,164,144,120,100, 76, 56, 32, 12,
  8, 28, 44, 64, 80,100,116,136,136,116,100, 80, 64, 44, 28,  8,
  8, 20, 36, 48, 64, 76, 92,104,104, 92, 76, 64, 48, 36, 20,  8,
  4, 16, 24, 36, 44, 56, 64, 76, 76, 64, 56, 44, 36, 24, 16,  4,
  4,  8, 16, 20, 28, 32, 40, 44, 44, 40, 32, 28, 20, 16,  8,  4,
  0,  4,  4,  8,  8, 12, 12, 16, 16, 12, 12,  8,  8,  4,  4,  0,

}

Definition at line 272 of file snow.c.

const uint8_t obmc32[1024] [static]

Definition at line 237 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 362 of file snow.c.

Referenced by add_yblock(), and ff_snow_inner_add_yblock().

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

const uint8_t* const obmc_tab[4] [static]

Initial value:

Definition at line 370 of file snow.c.

Referenced by predict_slice(), and predict_slice_buffered().

uint8_t qexp[QROOT] [static]

const int8_t quant11[256] [static]

Initial value:

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

Definition at line 144 of file snow.c.

const int8_t quant13[256] [static]

Initial value:

{
 0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
 4, 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, 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,-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 162 of file snow.c.

const int8_t quant3[256] [static]

Initial value:

{
 0, 0, 1, 1,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line 108 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 126 of file snow.c.

int scale_mv_ref[MAX_REF_FRAMES][MAX_REF_FRAMES] [static]

Definition at line 374 of file snow.c.

Referenced by common_init(), and pred_mv().


Generated on Fri Oct 26 02:39:46 2012 for FFmpeg by  doxygen 1.5.8