hvirtual/quicktime/ffmpeg/libavcodec/dsputil.c File Reference

#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "simple_idct.h"
#include "faandct.h"

Include dependency graph for dsputil.c:

Go to the source code of this file.

Defines

#define PIXOP2(OPNAME, OP)
#define op_avg(a, b)   a = rnd_avg32(a, b)
#define op_put(a, b)   a = b
#define avg2(a, b)   ((a+b+1)>>1)
#define avg4(a, b, c, d)   ((a+b+c+d+2)>>2)
#define H264_CHROMA_MC(OPNAME, OP)
#define op_avg(a, b)   a = (((a)+(((b) + 32)>>6)+1)>>1)
#define op_put(a, b)   a = (((b) + 32)>>6)
#define QPEL_MC(r, OPNAME, RND, OP)
#define op_avg(a, b)   a = (((a)+cm[((b) + 16)>>5]+1)>>1)
#define op_avg_no_rnd(a, b)   a = (((a)+cm[((b) + 15)>>5])>>1)
#define op_put(a, b)   a = cm[((b) + 16)>>5]
#define op_put_no_rnd(a, b)   a = cm[((b) + 15)>>5]
#define H264_LOWPASS(OPNAME, OP, OP2)
#define H264_MC(OPNAME, SIZE)
#define op_avg(a, b)   a = (((a)+cm[((b) + 16)>>5]+1)>>1)
#define op_put(a, b)   a = cm[((b) + 16)>>5]
#define op2_avg(a, b)   a = (((a)+cm[((b) + 512)>>10]+1)>>1)
#define op2_put(a, b)   a = cm[((b) + 512)>>10]
#define op_scale1(x)   block[x] = clip_uint8( (block[x]*weight + offset) >> log2_denom )
#define op_scale2(x)   dst[x] = clip_uint8( (src[x]*weights + dst[x]*weightd + offset) >> (log2_denom+1))
#define H264_WEIGHT(W, H)
#define BUTTERFLY2(o1, o2, i1, i2)
#define BUTTERFLY1(x, y)
#define BUTTERFLYA(x, y)   (ABS((x)+(y)) + ABS((x)-(y)))
#define SQ(a)   ((a)*(a))
#define dspfunc(PFX, IDX, NUM)
#define dspfunc(PFX, IDX, NUM)
#define SET_CMP_FUNC(name)

Functions

void ff_spatial_dwt (int *buffer, int width, int height, int stride, int type, int decomposition_count)
static int pix_sum_c (uint8_t *pix, int line_size)
static int pix_norm1_c (uint8_t *pix, int line_size)
static void bswap_buf (uint32_t *dst, uint32_t *src, int w)
static int sse4_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int sse8_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int sse16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int w_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int w, int h, int type)
static int w53_8_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int w97_8_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int w53_16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int w97_16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static void get_pixels_c (DCTELEM *restrict block, const uint8_t *pixels, int line_size)
static void diff_pixels_c (DCTELEM *restrict block, const uint8_t *s1, const uint8_t *s2, int stride)
static void put_pixels_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void put_pixels_clamped4_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void put_pixels_clamped2_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void put_signed_pixels_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void add_pixels_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void add_pixels_clamped4_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void add_pixels_clamped2_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
static void add_pixels8_c (uint8_t *restrict pixels, DCTELEM *block, int line_size)
static void add_pixels4_c (uint8_t *restrict pixels, DCTELEM *block, int line_size)
static void put_no_rnd_pixels16_l2_c (uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h)
static void put_no_rnd_pixels8_l2_c (uint8_t *dst, const uint8_t *a, const uint8_t *b, int stride, int h)
static void gmc1_c (uint8_t *dst, uint8_t *src, int stride, int h, int x16, int y16, int rounder)
static void gmc_c (uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height)
static void put_tpel_pixels_mc00_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc10_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc20_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc01_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc11_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc12_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc02_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc21_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void put_tpel_pixels_mc22_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc00_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc10_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc20_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc01_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc11_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc12_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc02_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc21_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void avg_tpel_pixels_mc22_c (uint8_t *dst, const uint8_t *src, int stride, int width, int height)
static void copy_block4 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static void copy_block8 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static void copy_block16 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static void copy_block17 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static void copy_block9 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static void wmv2_mspel8_h_lowpass (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static void wmv2_mspel8_v_lowpass (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w)
static void put_mspel8_mc00_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc10_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc20_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc30_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc02_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc12_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc32_c (uint8_t *dst, uint8_t *src, int stride)
static void put_mspel8_mc22_c (uint8_t *dst, uint8_t *src, int stride)
static void h263_v_loop_filter_c (uint8_t *src, int stride, int qscale)
static void h263_h_loop_filter_c (uint8_t *src, int stride, int qscale)
static void h261_loop_filter_c (uint8_t *src, int stride)
static void h264_loop_filter_luma_c (uint8_t *pix, int xstride, int ystride, int alpha, int beta, int8_t *tc0)
static void h264_v_loop_filter_luma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
static void h264_h_loop_filter_luma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
static void h264_loop_filter_chroma_c (uint8_t *pix, int xstride, int ystride, int alpha, int beta, int8_t *tc0)
static void h264_v_loop_filter_chroma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
static void h264_h_loop_filter_chroma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
static void h264_loop_filter_chroma_intra_c (uint8_t *pix, int xstride, int ystride, int alpha, int beta)
static void h264_v_loop_filter_chroma_intra_c (uint8_t *pix, int stride, int alpha, int beta)
static void h264_h_loop_filter_chroma_intra_c (uint8_t *pix, int stride, int alpha, int beta)
static int pix_abs16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs16_x2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs16_y2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs16_xy2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs8_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs8_x2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs8_y2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int pix_abs8_xy2_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int nsse16_c (MpegEncContext *c, uint8_t *s1, uint8_t *s2, int stride, int h)
static int nsse8_c (MpegEncContext *c, uint8_t *s1, uint8_t *s2, int stride, int h)
static int try_8x8basis_c (int16_t rem[64], int16_t weight[64], int16_t basis[64], int scale)
static void add_8x8basis_c (int16_t rem[64], int16_t basis[64], int scale)
void ff_block_permute (DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last)
static int zero_cmp (void *s, uint8_t *a, uint8_t *b, int stride, int h)
void ff_set_cmp (DSPContext *c, me_cmp_func *cmp, int type)
static void clear_blocks_c (DCTELEM *blocks)
static void add_bytes_c (uint8_t *dst, uint8_t *src, int w)
static void diff_bytes_c (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w)
static void sub_hfyu_median_prediction_c (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w, int *left, int *left_top)
static int hadamard8_diff8x8_c (void *s, uint8_t *dst, uint8_t *src, int stride, int h)
static int hadamard8_intra8x8_c (void *s, uint8_t *src, uint8_t *dummy, int stride, int h)
static int dct_sad8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
static int dct_max8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
void simple_idct (DCTELEM *block)
static int quant_psnr8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
static int rd8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
static int bit8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
static int vsad_intra16_c (void *c, uint8_t *s, uint8_t *dummy, int stride, int h)
static int vsad16_c (void *c, uint8_t *s1, uint8_t *s2, int stride, int h)
static int vsse_intra16_c (void *c, uint8_t *s, uint8_t *dummy, int stride, int h)
static int vsse16_c (void *c, uint8_t *s1, uint8_t *s2, int stride, int h)
static void ff_jref_idct_put (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct_add (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct4_put (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct4_add (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct2_put (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct2_add (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct1_put (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct1_add (uint8_t *dest, int line_size, DCTELEM *block)
void dsputil_static_init (void)
void dsputil_init (DSPContext *c, AVCodecContext *avctx)

Variables

uint8_t cropTbl [256+2 *MAX_NEG_CROP] = {0, }
uint32_t squareTbl [512] = {0, }
const uint8_t ff_zigzag_direct [64]
const uint8_t ff_zigzag248_direct [64]
uint16_t __align8 inv_zigzag_direct16 [64] = {0, }
const uint8_t ff_alternate_horizontal_scan [64]
const uint8_t ff_alternate_vertical_scan [64]
const uint32_t inverse [256]
static const uint8_t simple_mmx_permutation [64]


Detailed Description

DSP utils

Definition in file dsputil.c.


Define Documentation

#define avg2 ( a,
b   )     ((a+b+1)>>1)

#define avg4 ( a,
b,
c,
 )     ((a+b+c+d+2)>>2)

#define BUTTERFLY1 ( x,
 ) 

Value:

{\
    int a,b;\
    a= x;\
    b= y;\
    x= a+b;\
    y= a-b;\
}

Definition at line 3214 of file dsputil.c.

Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().

#define BUTTERFLY2 ( o1,
o2,
i1,
i2   ) 

Value:

o1= (i1)+(i2);\
o2= (i1)-(i2);

Definition at line 3210 of file dsputil.c.

Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().

#define BUTTERFLYA ( x,
 )     (ABS((x)+(y)) + ABS((x)-(y)))

Definition at line 3223 of file dsputil.c.

Referenced by hadamard8_diff8x8_c(), and hadamard8_intra8x8_c().

#define dspfunc ( PFX,
IDX,
NUM   ) 

Value:

c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_c; \
    c->PFX ## _pixels_tab[IDX][ 1] = PFX ## NUM ## _mc10_c; \
    c->PFX ## _pixels_tab[IDX][ 2] = PFX ## NUM ## _mc20_c; \
    c->PFX ## _pixels_tab[IDX][ 3] = PFX ## NUM ## _mc30_c; \
    c->PFX ## _pixels_tab[IDX][ 4] = PFX ## NUM ## _mc01_c; \
    c->PFX ## _pixels_tab[IDX][ 5] = PFX ## NUM ## _mc11_c; \
    c->PFX ## _pixels_tab[IDX][ 6] = PFX ## NUM ## _mc21_c; \
    c->PFX ## _pixels_tab[IDX][ 7] = PFX ## NUM ## _mc31_c; \
    c->PFX ## _pixels_tab[IDX][ 8] = PFX ## NUM ## _mc02_c; \
    c->PFX ## _pixels_tab[IDX][ 9] = PFX ## NUM ## _mc12_c; \
    c->PFX ## _pixels_tab[IDX][10] = PFX ## NUM ## _mc22_c; \
    c->PFX ## _pixels_tab[IDX][11] = PFX ## NUM ## _mc32_c; \
    c->PFX ## _pixels_tab[IDX][12] = PFX ## NUM ## _mc03_c; \
    c->PFX ## _pixels_tab[IDX][13] = PFX ## NUM ## _mc13_c; \
    c->PFX ## _pixels_tab[IDX][14] = PFX ## NUM ## _mc23_c; \
    c->PFX ## _pixels_tab[IDX][15] = PFX ## NUM ## _mc33_c

#define dspfunc ( PFX,
IDX,
NUM   ) 

Value:

c->PFX ## _pixels_tab[IDX][0] = PFX ## _pixels ## NUM ## _c;     \
    c->PFX ## _pixels_tab[IDX][1] = PFX ## _pixels ## NUM ## _x2_c;  \
    c->PFX ## _pixels_tab[IDX][2] = PFX ## _pixels ## NUM ## _y2_c;  \
    c->PFX ## _pixels_tab[IDX][3] = PFX ## _pixels ## NUM ## _xy2_c

Referenced by dsputil_h264_init_ppc(), dsputil_init(), dsputil_init_align(), and dsputil_init_mmx().

#define H264_CHROMA_MC ( OPNAME,
OP   ) 

Definition at line 1419 of file dsputil.c.

#define H264_LOWPASS ( OPNAME,
OP,
OP2   ) 

Definition at line 2054 of file dsputil.c.

#define H264_MC ( OPNAME,
SIZE   ) 

Definition at line 2256 of file dsputil.c.

#define H264_WEIGHT ( W,
 ) 

Definition at line 2416 of file dsputil.c.

#define op2_avg ( a,
b   )     a = (((a)+cm[((b) + 512)>>10]+1)>>1)

Definition at line 2396 of file dsputil.c.

#define op2_put ( a,
b   )     a = cm[((b) + 512)>>10]

Definition at line 2397 of file dsputil.c.

#define op_avg ( a,
b   )     a = (((a)+cm[((b) + 16)>>5]+1)>>1)

Definition at line 2393 of file dsputil.c.

#define op_avg ( a,
b   )     a = (((a)+cm[((b) + 16)>>5]+1)>>1)

Definition at line 2393 of file dsputil.c.

#define op_avg ( a,
b   )     a = (((a)+(((b) + 32)>>6)+1)>>1)

Definition at line 2393 of file dsputil.c.

#define op_avg ( a,
b   )     a = rnd_avg32(a, b)

Definition at line 2393 of file dsputil.c.

Referenced by avg_pixels16_altivec().

#define op_avg_no_rnd ( a,
b   )     a = (((a)+cm[((b) + 15)>>5])>>1)

Definition at line 2040 of file dsputil.c.

#define op_put ( a,
b   )     a = cm[((b) + 16)>>5]

Definition at line 2395 of file dsputil.c.

#define op_put ( a,
b   )     a = cm[((b) + 16)>>5]

Definition at line 2395 of file dsputil.c.

#define op_put ( a,
b   )     a = (((b) + 32)>>6)

Definition at line 2395 of file dsputil.c.

#define op_put ( a,
b   )     a = b

Definition at line 2395 of file dsputil.c.

#define op_put_no_rnd ( a,
b   )     a = cm[((b) + 15)>>5]

Definition at line 2042 of file dsputil.c.

#define op_scale1 (  )     block[x] = clip_uint8( (block[x]*weight + offset) >> log2_denom )

Definition at line 2414 of file dsputil.c.

#define op_scale2 (  )     dst[x] = clip_uint8( (src[x]*weights + dst[x]*weightd + offset) >> (log2_denom+1))

Definition at line 2415 of file dsputil.c.

#define PIXOP2 ( OPNAME,
OP   ) 

Definition at line 737 of file dsputil.c.

#define QPEL_MC ( r,
OPNAME,
RND,
OP   ) 

Definition at line 1556 of file dsputil.c.

#define SET_CMP_FUNC ( name   ) 

Value:

c->name[0]= name ## 16_c;\
    c->name[1]= name ## 8x8_c;

Referenced by dsputil_init().

#define SQ ( a   )     ((a)*(a))

Definition at line 3554 of file dsputil.c.


Function Documentation

static void add_8x8basis_c ( int16_t  rem[64],
int16_t  basis[64],
int  scale 
) [static]

Definition at line 3056 of file dsputil.c.

References BASIS_SHIFT, and RECON_SHIFT.

Referenced by dsputil_init().

static void add_bytes_c ( uint8_t *  dst,
uint8_t *  src,
int  w 
) [static]

Definition at line 3160 of file dsputil.c.

Referenced by dsputil_init().

static void add_pixels4_c ( uint8_t *restrict  pixels,
DCTELEM block,
int  line_size 
) [static]

Definition at line 580 of file dsputil.c.

Referenced by dsputil_init().

static void add_pixels8_c ( uint8_t *restrict  pixels,
DCTELEM block,
int  line_size 
) [static]

Definition at line 563 of file dsputil.c.

Referenced by dsputil_init().

static void add_pixels_clamped2_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 548 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by ff_jref_idct2_add().

static void add_pixels_clamped4_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 531 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by ff_jref_idct4_add().

static void add_pixels_clamped_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 510 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by dsputil_init(), and ff_jref_idct_add().

static void avg_tpel_pixels_mc00_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1301 of file dsputil.c.

References avg_pixels16_c, avg_pixels4_c(), and avg_pixels8_c.

Referenced by dsputil_init().

Here is the call graph for this function:

static void avg_tpel_pixels_mc01_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1332 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc02_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1365 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc10_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1310 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc11_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1343 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc12_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1354 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc20_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1321 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc21_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1376 of file dsputil.c.

Referenced by dsputil_init().

static void avg_tpel_pixels_mc22_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1387 of file dsputil.c.

Referenced by dsputil_init().

static int bit8x8_c ( void *  c,
uint8_t *  src1,
uint8_t *  src2,
int  stride,
int  h 
) [static]

static void bswap_buf ( uint32_t *  dst,
uint32_t *  src,
int  w 
) [static]

Definition at line 207 of file dsputil.c.

References bswap_32().

Referenced by dsputil_init().

Here is the call graph for this function:

static void clear_blocks_c ( DCTELEM blocks  )  [static]

memset(blocks, 0, sizeof(DCTELEM)*6*64)

Definition at line 3155 of file dsputil.c.

Referenced by dsputil_init().

static void copy_block16 ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  h 
) [inline, static]

Definition at line 1513 of file dsputil.c.

References LD32, and ST32.

static void copy_block17 ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  h 
) [inline, static]

Definition at line 1527 of file dsputil.c.

References LD32, and ST32.

static void copy_block4 ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  h 
) [inline, static]

Definition at line 1490 of file dsputil.c.

References LD32, and ST32.

static void copy_block8 ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  h 
) [inline, static]

Definition at line 1501 of file dsputil.c.

References LD32, and ST32.

static void copy_block9 ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  h 
) [inline, static]

Definition at line 1542 of file dsputil.c.

References LD32, and ST32.

static int dct_max8x8_c ( void *  c,
uint8_t *  src1,
uint8_t *  src2,
int  stride,
int  h 
) [static]

Definition at line 3342 of file dsputil.c.

References __align8, ABS, DSPContext::diff_pixels, MpegEncContext::dsp, DSPContext::fdct, and s.

static int dct_sad8x8_c ( void *  c,
uint8_t *  src1,
uint8_t *  src2,
int  stride,
int  h 
) [static]

Definition at line 3325 of file dsputil.c.

References __align8, ABS, DSPContext::diff_pixels, MpegEncContext::dsp, DSPContext::fdct, and s.

static void diff_bytes_c ( uint8_t *  dst,
uint8_t *  src1,
uint8_t *  src2,
int  w 
) [static]

Definition at line 3176 of file dsputil.c.

Referenced by dsputil_init().

static void diff_pixels_c ( DCTELEM *restrict  block,
const uint8_t *  s1,
const uint8_t *  s2,
int  stride 
) [static]

Definition at line 412 of file dsputil.c.

Referenced by dsputil_init().

void dsputil_init ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 3660 of file dsputil.c.

References DSPContext::add_8x8basis, add_8x8basis_c(), DSPContext::add_bytes, add_bytes_c(), DSPContext::add_pixels4, add_pixels4_c(), DSPContext::add_pixels8, add_pixels8_c(), DSPContext::add_pixels_clamped, add_pixels_clamped_c(), av_log(), AV_LOG_ERROR, avg, DSPContext::avg_h264_chroma_pixels_tab, avg_tpel_pixels_mc00_c(), avg_tpel_pixels_mc01_c(), avg_tpel_pixels_mc02_c(), avg_tpel_pixels_mc10_c(), avg_tpel_pixels_mc11_c(), avg_tpel_pixels_mc12_c(), avg_tpel_pixels_mc20_c(), avg_tpel_pixels_mc21_c(), avg_tpel_pixels_mc22_c(), DSPContext::avg_tpel_pixels_tab, DSPContext::biweight_h264_pixels_tab, bswap_buf(), DSPContext::bswap_buf, DSPContext::clear_blocks, clear_blocks_c(), AVCodecContext::dct_algo, DSPContext::diff_bytes, diff_bytes_c(), DSPContext::diff_pixels, diff_pixels_c(), dspfunc, dsputil_init_alpha(), dsputil_init_armv4l(), dsputil_init_mlib(), dsputil_init_mmi(), dsputil_init_mmx(), dsputil_init_ppc(), dsputil_init_sh4(), DSPContext::fdct, DSPContext::fdct248, fdct_ifast(), fdct_ifast248(), FF_DCT_FAAN, FF_DCT_FASTINT, ff_faandct(), ff_faandct248(), ff_fdct248_islow(), ff_h264_idct8_add_c(), ff_h264_idct_add_c(), ff_h264_lowres_idct_add_c(), ff_h264_lowres_idct_put_c(), FF_IDCT_AUTO, FF_IDCT_INT, FF_IDCT_VP3, ff_jpeg_fdct_islow(), ff_jref_idct1_add(), ff_jref_idct1_put(), ff_jref_idct2_add(), ff_jref_idct2_put(), ff_jref_idct4_add(), ff_jref_idct4_put(), ff_jref_idct_add(), ff_jref_idct_put(), FF_LIBMPEG2_IDCT_PERM, FF_NO_IDCT_PERM, FF_PARTTRANS_IDCT_PERM, FF_SIMPLE_IDCT_PERM, FF_TRANSPOSE_IDCT_PERM, ff_vp3_idct_add_c(), ff_vp3_idct_c(), ff_vp3_idct_put_c(), DSPContext::get_pixels, get_pixels_c(), DSPContext::gmc, DSPContext::gmc1, gmc1_c(), gmc_c(), DSPContext::h261_loop_filter, h261_loop_filter_c(), DSPContext::h263_h_loop_filter, h263_h_loop_filter_c(), DSPContext::h263_v_loop_filter, h263_v_loop_filter_c(), DSPContext::h264_h_loop_filter_chroma, h264_h_loop_filter_chroma_c(), DSPContext::h264_h_loop_filter_chroma_intra, h264_h_loop_filter_chroma_intra_c(), DSPContext::h264_h_loop_filter_luma, h264_h_loop_filter_luma_c(), DSPContext::h264_idct8_add, DSPContext::h264_idct_add, DSPContext::h264_v_loop_filter_chroma, h264_v_loop_filter_chroma_c(), DSPContext::h264_v_loop_filter_chroma_intra, h264_v_loop_filter_chroma_intra_c(), DSPContext::h264_v_loop_filter_luma, h264_v_loop_filter_luma_c(), DSPContext::hadamard8_diff, DSPContext::idct, DSPContext::idct_add, AVCodecContext::idct_algo, DSPContext::idct_permutation, DSPContext::idct_permutation_type, DSPContext::idct_put, j_rev_dct(), j_rev_dct1(), j_rev_dct2(), j_rev_dct4(), AVCodecContext::lowres, DSPContext::nsse, nsse16_c(), nsse8_c(), DSPContext::pix_abs, pix_abs16_c(), pix_abs16_x2_c(), pix_abs16_xy2_c(), pix_abs16_y2_c(), pix_abs8_c(), pix_abs8_x2_c(), pix_abs8_xy2_c(), pix_abs8_y2_c(), DSPContext::pix_norm1, pix_norm1_c(), DSPContext::pix_sum, pix_sum_c(), DSPContext::put_h264_chroma_pixels_tab, put_mspel8_mc00_c(), put_mspel8_mc02_c(), put_mspel8_mc10_c(), put_mspel8_mc12_c(), put_mspel8_mc20_c(), put_mspel8_mc22_c(), put_mspel8_mc30_c(), put_mspel8_mc32_c(), DSPContext::put_mspel_pixels_tab, put_no_rnd_pixels16_l2_c(), put_no_rnd_pixels8_l2_c(), DSPContext::put_no_rnd_pixels_l2, DSPContext::put_pixels_clamped, put_pixels_clamped_c(), DSPContext::put_signed_pixels_clamped, put_signed_pixels_clamped_c(), put_tpel_pixels_mc00_c(), put_tpel_pixels_mc01_c(), put_tpel_pixels_mc02_c(), put_tpel_pixels_mc10_c(), put_tpel_pixels_mc11_c(), put_tpel_pixels_mc12_c(), put_tpel_pixels_mc20_c(), put_tpel_pixels_mc21_c(), put_tpel_pixels_mc22_c(), DSPContext::put_tpel_pixels_tab, DSPContext::sad, SET_CMP_FUNC, simple_idct(), simple_idct_add(), simple_idct_put(), simple_mmx_permutation, DSPContext::sse, sse16_c(), sse4_c(), sse8_c(), DSPContext::sub_hfyu_median_prediction, sub_hfyu_median_prediction_c(), DSPContext::try_8x8basis, try_8x8basis_c(), DSPContext::vsad, vsad16_c(), vsad_intra16_c(), DSPContext::vsse, vsse16_c(), vsse_intra16_c(), DSPContext::w53, w53_16_c(), w53_8_c(), DSPContext::w97, w97_16_c(), w97_8_c(), and DSPContext::weight_h264_pixels_tab.

Referenced by cinepak_decode_init(), common_init(), dvvideo_init(), idcin_decode_init(), ipvideo_decode_init(), mdec_common_init(), mjpeg_decode_init(), MPV_common_init(), msvideo1_decode_init(), qtrle_decode_init(), roq_decode_init(), rpza_decode_init(), smc_decode_init(), vmdvideo_decode_init(), vp3_decode_init(), vqa_decode_init(), and xan_decode_init().

void dsputil_static_init ( void   ) 

Definition at line 3642 of file dsputil.c.

References cropTbl, ff_zigzag_direct, inv_zigzag_direct16, MAX_NEG_CROP, and squareTbl.

Referenced by avcodec_init().

void ff_block_permute ( DCTELEM block,
uint8_t *  permutation,
const uint8_t *  scantable,
int  last 
)

permutes an 8x8 block.

Parameters:
block the block which will be permuted according to the given permutation vector
permutation the permutation vector
last the last non zero coefficient in scantable order, used to speed the permutation up
scantable the used scantable, this is only used to speed the permutation up, the block is not (inverse) permutated to scantable order!

Definition at line 3072 of file dsputil.c.

Referenced by dct_quantize_altivec().

static void ff_jref_idct1_add ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3634 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by dsputil_init().

static void ff_jref_idct1_put ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3628 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by dsputil_init().

static void ff_jref_idct2_add ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3622 of file dsputil.c.

References add_pixels_clamped2_c(), and j_rev_dct2().

Referenced by dsputil_init().

Here is the call graph for this function:

static void ff_jref_idct2_put ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3617 of file dsputil.c.

References j_rev_dct2(), and put_pixels_clamped2_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void ff_jref_idct4_add ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3611 of file dsputil.c.

References add_pixels_clamped4_c(), and j_rev_dct4().

Referenced by dsputil_init().

Here is the call graph for this function:

static void ff_jref_idct4_put ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3606 of file dsputil.c.

References j_rev_dct4(), and put_pixels_clamped4_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void ff_jref_idct_add ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3600 of file dsputil.c.

References add_pixels_clamped_c(), and j_rev_dct().

Referenced by dsputil_init().

Here is the call graph for this function:

static void ff_jref_idct_put ( uint8_t *  dest,
int  line_size,
DCTELEM block 
) [static]

Definition at line 3595 of file dsputil.c.

References j_rev_dct(), and put_pixels_clamped_c().

Referenced by dsputil_init().

Here is the call graph for this function:

void ff_set_cmp ( DSPContext c,
me_cmp_func cmp,
int  type 
)

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

Referenced by encode_frame(), and w_c().

static void get_pixels_c ( DCTELEM *restrict  block,
const uint8_t *  pixels,
int  line_size 
) [static]

Definition at line 393 of file dsputil.c.

Referenced by dsputil_init().

static void gmc1_c ( uint8_t *  dst,
uint8_t *  src,
int  stride,
int  h,
int  x16,
int  y16,
int  rounder 
) [static]

Definition at line 1123 of file dsputil.c.

References B, and C.

Referenced by dsputil_init(), and dsputil_init_align().

static void gmc_c ( uint8_t *  dst,
uint8_t *  src,
int  stride,
int  h,
int  ox,
int  oy,
int  dxx,
int  dxy,
int  dyx,
int  dyy,
int  shift,
int  r,
int  width,
int  height 
) [static]

Definition at line 1146 of file dsputil.c.

References s.

Referenced by dsputil_init(), and dsputil_init_align().

static void h261_loop_filter_c ( uint8_t *  src,
int  stride 
) [static]

Definition at line 2650 of file dsputil.c.

Referenced by dsputil_init().

static void h263_h_loop_filter_c ( uint8_t *  src,
int  stride,
int  qscale 
) [static]

Definition at line 2615 of file dsputil.c.

References ABS, and ff_h263_loop_filter_strength.

Referenced by dsputil_init().

static void h263_v_loop_filter_c ( uint8_t *  src,
int  stride,
int  qscale 
) [static]

Definition at line 2580 of file dsputil.c.

References ABS, and ff_h263_loop_filter_strength.

Referenced by dsputil_init().

static void h264_h_loop_filter_chroma_c ( uint8_t *  pix,
int  stride,
int  alpha,
int  beta,
int8_t *  tc0 
) [static]

Definition at line 2758 of file dsputil.c.

References h264_loop_filter_chroma_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void h264_h_loop_filter_chroma_intra_c ( uint8_t *  pix,
int  stride,
int  alpha,
int  beta 
) [static]

Definition at line 2786 of file dsputil.c.

References h264_loop_filter_chroma_intra_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void h264_h_loop_filter_luma_c ( uint8_t *  pix,
int  stride,
int  alpha,
int  beta,
int8_t *  tc0 
) [static]

Definition at line 2721 of file dsputil.c.

References h264_loop_filter_luma_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void h264_loop_filter_chroma_c ( uint8_t *  pix,
int  xstride,
int  ystride,
int  alpha,
int  beta,
int8_t *  tc0 
) [inline, static]

Definition at line 2726 of file dsputil.c.

References ABS.

Referenced by h264_h_loop_filter_chroma_c(), and h264_v_loop_filter_chroma_c().

static void h264_loop_filter_chroma_intra_c ( uint8_t *  pix,
int  xstride,
int  ystride,
int  alpha,
int  beta 
) [inline, static]

Definition at line 2763 of file dsputil.c.

References ABS.

Referenced by h264_h_loop_filter_chroma_intra_c(), and h264_v_loop_filter_chroma_intra_c().

static void h264_loop_filter_luma_c ( uint8_t *  pix,
int  xstride,
int  ystride,
int  alpha,
int  beta,
int8_t *  tc0 
) [inline, static]

Definition at line 2677 of file dsputil.c.

References ABS.

Referenced by h264_h_loop_filter_luma_c(), and h264_v_loop_filter_luma_c().

static void h264_v_loop_filter_chroma_c ( uint8_t *  pix,
int  stride,
int  alpha,
int  beta,
int8_t *  tc0 
) [static]

Definition at line 2754 of file dsputil.c.

References h264_loop_filter_chroma_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void h264_v_loop_filter_chroma_intra_c ( uint8_t *  pix,
int  stride,
int  alpha,
int  beta 
) [static]

Definition at line 2782 of file dsputil.c.

References h264_loop_filter_chroma_intra_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static void h264_v_loop_filter_luma_c ( uint8_t *  pix,
int  stride,
int  alpha,
int  beta,
int8_t *  tc0 
) [static]

Definition at line 2717 of file dsputil.c.

References h264_loop_filter_luma_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static int hadamard8_diff8x8_c ( void *  s,
uint8_t *  dst,
uint8_t *  src,
int  stride,
int  h 
) [static]

Definition at line 3225 of file dsputil.c.

References BUTTERFLY1, BUTTERFLY2, and BUTTERFLYA.

static int hadamard8_intra8x8_c ( void *  s,
uint8_t *  src,
uint8_t *  dummy,
int  stride,
int  h 
) [static]

Definition at line 3277 of file dsputil.c.

References ABS, BUTTERFLY1, BUTTERFLY2, and BUTTERFLYA.

static int nsse16_c ( MpegEncContext c,
uint8_t *  s1,
uint8_t *  s2,
int  stride,
int  h 
) [static]

Definition at line 2991 of file dsputil.c.

References ABS, MpegEncContext::avctx, and AVCodecContext::nsse_weight.

Referenced by dsputil_init().

static int nsse8_c ( MpegEncContext c,
uint8_t *  s1,
uint8_t *  s2,
int  stride,
int  h 
) [static]

Definition at line 3016 of file dsputil.c.

References ABS, MpegEncContext::avctx, and AVCodecContext::nsse_weight.

Referenced by dsputil_init().

static int pix_abs16_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [inline, static]

Definition at line 2791 of file dsputil.c.

References s.

Referenced by dsputil_init().

static int pix_abs16_x2_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 2819 of file dsputil.c.

References avg2, and s.

Referenced by dsputil_init().

static int pix_abs16_xy2_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 2877 of file dsputil.c.

References avg4, and s.

Referenced by dsputil_init().

static int pix_abs16_y2_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 2847 of file dsputil.c.

References avg2, and s.

Referenced by dsputil_init().

static int pix_abs8_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [inline, static]

Definition at line 2907 of file dsputil.c.

References s.

Referenced by dsputil_init().

static int pix_abs8_x2_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 2927 of file dsputil.c.

References avg2, and s.

Referenced by dsputil_init().

static int pix_abs8_xy2_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 2969 of file dsputil.c.

References avg4, and s.

Referenced by dsputil_init().

static int pix_abs8_y2_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 2947 of file dsputil.c.

References avg2, and s.

Referenced by dsputil_init().

static int pix_norm1_c ( uint8_t *  pix,
int  line_size 
) [static]

Definition at line 159 of file dsputil.c.

References s, sq, and squareTbl.

Referenced by dsputil_init().

static int pix_sum_c ( uint8_t *  pix,
int  line_size 
) [static]

Definition at line 137 of file dsputil.c.

References s.

Referenced by dsputil_init().

static void put_mspel8_mc00_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2532 of file dsputil.c.

References put_pixels8_c.

Referenced by dsputil_init(), and dsputil_init_align().

static void put_mspel8_mc02_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2552 of file dsputil.c.

References wmv2_mspel8_v_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_mspel8_mc10_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2536 of file dsputil.c.

References put_pixels8_l2(), and wmv2_mspel8_h_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_mspel8_mc12_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2556 of file dsputil.c.

References put_pixels8_l2(), wmv2_mspel8_h_lowpass(), and wmv2_mspel8_v_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_mspel8_mc20_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2542 of file dsputil.c.

References wmv2_mspel8_h_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_mspel8_mc22_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2574 of file dsputil.c.

References wmv2_mspel8_h_lowpass(), and wmv2_mspel8_v_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_mspel8_mc30_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2546 of file dsputil.c.

References put_pixels8_l2(), and wmv2_mspel8_h_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_mspel8_mc32_c ( uint8_t *  dst,
uint8_t *  src,
int  stride 
) [static]

Definition at line 2565 of file dsputil.c.

References put_pixels8_l2(), wmv2_mspel8_h_lowpass(), and wmv2_mspel8_v_lowpass().

Referenced by dsputil_init(), and dsputil_init_align().

Here is the call graph for this function:

static void put_no_rnd_pixels16_l2_c ( uint8_t *  dst,
const uint8_t *  a,
const uint8_t *  b,
int  stride,
int  h 
) [static]

Definition at line 1115 of file dsputil.c.

References put_no_rnd_pixels16_l2().

Referenced by dsputil_init().

Here is the call graph for this function:

static void put_no_rnd_pixels8_l2_c ( uint8_t *  dst,
const uint8_t *  a,
const uint8_t *  b,
int  stride,
int  h 
) [static]

Definition at line 1119 of file dsputil.c.

References put_no_rnd_pixels8_l2().

Referenced by dsputil_init().

Here is the call graph for this function:

static void put_pixels_clamped2_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 473 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by ff_jref_idct2_put().

static void put_pixels_clamped4_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 455 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by ff_jref_idct4_put().

static void put_pixels_clamped_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 433 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by dsputil_init(), and ff_jref_idct_put().

static void put_signed_pixels_clamped_c ( const DCTELEM block,
uint8_t *restrict  pixels,
int  line_size 
) [static]

Definition at line 489 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc00_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1204 of file dsputil.c.

References put_pixels16_c, put_pixels4_c(), and put_pixels8_c.

Referenced by dsputil_init().

Here is the call graph for this function:

static void put_tpel_pixels_mc01_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1235 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc02_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1268 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc10_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1213 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc11_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1246 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc12_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1257 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc20_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1224 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc21_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1279 of file dsputil.c.

Referenced by dsputil_init().

static void put_tpel_pixels_mc22_c ( uint8_t *  dst,
const uint8_t *  src,
int  stride,
int  width,
int  height 
) [inline, static]

Definition at line 1290 of file dsputil.c.

Referenced by dsputil_init().

static int quant_psnr8x8_c ( void *  c,
uint8_t *  src1,
uint8_t *  src2,
int  stride,
int  h 
) [static]

static int rd8x8_c ( void *  c,
uint8_t *  src1,
uint8_t *  src2,
int  stride,
int  h 
) [static]

void simple_idct ( DCTELEM block  ) 

Definition at line 408 of file simple_idct.c.

Referenced by dsputil_init(), main(), and quant_psnr8x8_c().

static int sse16_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 263 of file dsputil.c.

References s, sq, and squareTbl.

Referenced by dsputil_init().

static int sse4_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 225 of file dsputil.c.

References s, sq, and squareTbl.

Referenced by dsputil_init().

static int sse8_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 242 of file dsputil.c.

References s, sq, and squareTbl.

Referenced by dsputil_init().

static void sub_hfyu_median_prediction_c ( uint8_t *  dst,
uint8_t *  src1,
uint8_t *  src2,
int  w,
int *  left,
int *  left_top 
) [static]

Definition at line 3192 of file dsputil.c.

References pred().

Referenced by dsputil_init().

Here is the call graph for this function:

static int try_8x8basis_c ( int16_t  rem[64],
int16_t  weight[64],
int16_t  basis[64],
int  scale 
) [static]

Definition at line 3041 of file dsputil.c.

References b, BASIS_SHIFT, and RECON_SHIFT.

Referenced by dsputil_init().

static int vsad16_c ( void *  c,
uint8_t *  s1,
uint8_t *  s2,
int  stride,
int  h 
) [static]

Definition at line 3539 of file dsputil.c.

References ABS.

Referenced by dsputil_init().

static int vsad_intra16_c ( void *  c,
uint8_t *  s,
uint8_t *  dummy,
int  stride,
int  h 
) [static]

Definition at line 3524 of file dsputil.c.

References ABS.

Referenced by dsputil_init().

static int vsse16_c ( void *  c,
uint8_t *  s1,
uint8_t *  s2,
int  stride,
int  h 
) [static]

Definition at line 3570 of file dsputil.c.

References SQ.

Referenced by dsputil_init().

static int vsse_intra16_c ( void *  c,
uint8_t *  s,
uint8_t *  dummy,
int  stride,
int  h 
) [static]

Definition at line 3555 of file dsputil.c.

References SQ.

Referenced by dsputil_init().

static int w53_16_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 385 of file dsputil.c.

References w_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static int w53_8_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 377 of file dsputil.c.

References w_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static int w97_16_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 389 of file dsputil.c.

References w_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static int w97_8_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  h 
) [static]

Definition at line 381 of file dsputil.c.

References w_c().

Referenced by dsputil_init().

Here is the call graph for this function:

static int w_c ( void *  v,
uint8_t *  pix1,
uint8_t *  pix2,
int  line_size,
int  w,
int  h,
int  type 
) [inline, static]

Definition at line 294 of file dsputil.c.

References ABS, ff_spatial_dwt(), level, s, and stride.

Referenced by w53_16_c(), w53_8_c(), w97_16_c(), and w97_8_c().

Here is the call graph for this function:

static void wmv2_mspel8_h_lowpass ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  h 
) [static]

static void wmv2_mspel8_v_lowpass ( uint8_t *  dst,
uint8_t *  src,
int  dstStride,
int  srcStride,
int  w 
) [static]

Definition at line 2503 of file dsputil.c.

References cm, cropTbl, and MAX_NEG_CROP.

Referenced by put_mspel8_mc02_c(), put_mspel8_mc12_c(), put_mspel8_mc22_c(), and put_mspel8_mc32_c().

static int zero_cmp ( void *  s,
uint8_t *  a,
uint8_t *  b,
int  stride,
int  h 
) [static]

Definition at line 3093 of file dsputil.c.

Referenced by ff_init_me(), and ff_set_cmp().


Variable Documentation

uint8_t cropTbl[256+2 *MAX_NEG_CROP] = {0, }

Definition at line 37 of file dsputil.c.

const uint8_t ff_alternate_horizontal_scan[64]

Initial value:

 {
    0,  1,   2,  3,  8,  9, 16, 17, 
    10, 11,  4,  5,  6,  7, 15, 14,
    13, 12, 19, 18, 24, 25, 32, 33, 
    26, 27, 20, 21, 22, 23, 28, 29,
    30, 31, 34, 35, 40, 41, 48, 49, 
    42, 43, 36, 37, 38, 39, 44, 45,
    46, 47, 50, 51, 56, 57, 58, 59, 
    52, 53, 54, 55, 60, 61, 62, 63,
}

Definition at line 67 of file dsputil.c.

Referenced by DCT_common_init(), and decode_vop_header().

const uint8_t ff_alternate_vertical_scan[64]

Initial value:

 {
    0,  8,  16, 24,  1,  9,  2, 10, 
    17, 25, 32, 40, 48, 56, 57, 49,
    41, 33, 26, 18,  3, 11,  4, 12, 
    19, 27, 34, 42, 50, 58, 35, 43,
    51, 59, 20, 28,  5, 13,  6, 14, 
    21, 29, 36, 44, 52, 60, 37, 45,
    53, 61, 22, 30,  7, 15, 23, 31, 
    38, 46, 54, 62, 39, 47, 55, 63,
}

Definition at line 78 of file dsputil.c.

Referenced by DCT_common_init(), decode_vop_header(), and mpeg_decode_picture_coding_extension().

const uint8_t ff_zigzag248_direct[64]

Initial value:

 {
     0,  8,  1,  9, 16, 24,  2, 10,
    17, 25, 32, 40, 48, 56, 33, 41,
    18, 26,  3, 11,  4, 12, 19, 27,
    34, 42, 49, 57, 50, 58, 35, 43,
    20, 28,  5, 13,  6, 14, 21, 29,
    36, 44, 51, 59, 52, 60, 37, 45,
    22, 30,  7, 15, 23, 31, 38, 46,
    53, 61, 54, 62, 39, 47, 55, 63,
}

Definition at line 53 of file dsputil.c.

Referenced by dv_encode_video_segment(), and dvvideo_init().

const uint8_t ff_zigzag_direct[64]

Initial value:

 {
    0,   1,  8, 16,  9,  2,  3, 10,
    17, 24, 32, 25, 18, 11,  4,  5,
    12, 19, 26, 33, 40, 48, 41, 34,
    27, 20, 13,  6,  7, 14, 21, 28,
    35, 42, 49, 56, 57, 50, 43, 36,
    29, 22, 15, 23, 30, 37, 44, 51,
    58, 59, 52, 45, 38, 31, 39, 46,
    53, 60, 61, 54, 47, 55, 62, 63
}

Definition at line 40 of file dsputil.c.

Referenced by DCT_common_init(), decode_i_block(), decode_init(), decode_vol_header(), decode_vop_header(), dsputil_static_init(), dv_encode_video_segment(), dvvideo_init(), mpeg1_decode_sequence(), mpeg_decode_picture_coding_extension(), mpeg_decode_quant_matrix_extension(), and vp3_decode_init().

uint16_t __align8 inv_zigzag_direct16[64] = {0, }

Definition at line 65 of file dsputil.c.

Referenced by dct_quantize(), and dsputil_static_init().

const uint32_t inverse[256]

Definition at line 90 of file dsputil.c.

Referenced by cam_xyz_coeff(), dct_quantize(), msmpeg4_pred_dc(), and vorbis_residue_decode().

const uint8_t simple_mmx_permutation[64] [static]

Initial value:

{
        0x00, 0x08, 0x04, 0x09, 0x01, 0x0C, 0x05, 0x0D, 
        0x10, 0x18, 0x14, 0x19, 0x11, 0x1C, 0x15, 0x1D, 
        0x20, 0x28, 0x24, 0x29, 0x21, 0x2C, 0x25, 0x2D, 
        0x12, 0x1A, 0x16, 0x1B, 0x13, 0x1E, 0x17, 0x1F, 
        0x02, 0x0A, 0x06, 0x0B, 0x03, 0x0E, 0x07, 0x0F, 
        0x30, 0x38, 0x34, 0x39, 0x31, 0x3C, 0x35, 0x3D, 
        0x22, 0x2A, 0x26, 0x2B, 0x23, 0x2E, 0x27, 0x2F, 
        0x32, 0x3A, 0x36, 0x3B, 0x33, 0x3E, 0x37, 0x3F,
}

Definition at line 126 of file dsputil.c.

Referenced by dsputil_init().

uint32_t squareTbl[512] = {0, }

Definition at line 38 of file dsputil.c.

Referenced by dsputil_static_init(), pix_norm1(), pix_norm1_c(), sse16_c(), sse4_c(), and sse8_c().


Generated on Mon Apr 28 14:03:44 2008 for Cinelerra by  doxygen 1.5.5