Logo Search packages:      
Sourcecode: blender version File versions

dsputil.c File Reference


Detailed Description

DSP utils

Definition in file dsputil.c.

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

Go to the source code of this file.

Defines

#define avg2(a, b)   ((a+b+1)>>1)
#define avg4(a, b, c, d)   ((a+b+c+d+2)>>2)
#define BUTTERFLY1(x, y)
#define BUTTERFLY2(o1, o2, i1, i2)
#define BUTTERFLYA(x, y)   (ABS((x)+(y)) + ABS((x)-(y)))
#define dspfunc(PFX, IDX, NUM)
#define dspfunc(PFX, IDX, NUM)
#define H264_CHROMA_MC(OPNAME, OP)
#define H264_LOWPASS(OPNAME, OP, OP2)
#define H264_MC(OPNAME, SIZE)
#define H264_WEIGHT(W, H)
#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_avg(a, b)   a = (((a)+cm[((b) + 16)>>5]+1)>>1)
#define op_avg(a, b)   a = (((a)+cm[((b) + 16)>>5]+1)>>1)
#define op_avg(a, b)   a = (((a)+(((b) + 32)>>6)+1)>>1)
#define op_avg(a, b)   a = rnd_avg32(a, b)
#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(a, b)   a = cm[((b) + 16)>>5]
#define op_put(a, b)   a = (((b) + 32)>>6)
#define op_put(a, b)   a = b
#define op_put_no_rnd(a, b)   a = cm[((b) + 15)>>5]
#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 PIXOP2(OPNAME, OP)
#define QPEL_MC(r, OPNAME, RND, OP)
#define SET_CMP_FUNC(name)
#define SQ(a)   ((a)*(a))

Functions

static void add_8x8basis_c (int16_t rem[64], int16_t basis[64], int scale)
static void add_bytes_c (uint8_t *dst, uint8_t *src, int w)
static void add_pixels4_c (uint8_t *restrict pixels, DCTELEM *block, int line_size)
static void add_pixels8_c (uint8_t *restrict pixels, DCTELEM *block, int line_size)
static void add_pixels_clamped2_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_clamped_c (const DCTELEM *block, uint8_t *restrict pixels, int line_size)
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_mc01_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_mc10_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_mc20_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 int bit8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
static void bswap_buf (uint32_t *dst, uint32_t *src, int w)
static void clear_blocks_c (DCTELEM *blocks)
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_block2 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
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_block9 (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
static int dct_max8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
static int dct_sad8x8_c (void *c, uint8_t *src1, uint8_t *src2, int stride, int h)
 DECLARE_ALIGNED_8 (uint16_t, inv_zigzag_direct16[64])
static void diff_bytes_c (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w)
static void diff_pixels_c (DCTELEM *restrict block, const uint8_t *s1, const uint8_t *s2, int stride)
void dsputil_init (DSPContext *c, AVCodecContext *avctx)
void dsputil_static_init (void)
void ff_block_permute (DCTELEM *block, uint8_t *permutation, const uint8_t *scantable, int last)
void ff_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 ff_jref_idct1_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_idct2_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_idct4_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_idct_add (uint8_t *dest, int line_size, DCTELEM *block)
static void ff_jref_idct_put (uint8_t *dest, int line_size, DCTELEM *block)
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)
static void get_pixels_c (DCTELEM *restrict block, const uint8_t *pixels, int line_size)
static void gmc1_c (uint8_t *dst, uint8_t *src, int stride, int h, int x16, int y16, int rounder)
static void h261_loop_filter_c (uint8_t *src, int stride)
static void h263_h_loop_filter_c (uint8_t *src, int stride, int qscale)
static void h263_v_loop_filter_c (uint8_t *src, int stride, int qscale)
static void h264_h_loop_filter_chroma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
static void h264_h_loop_filter_chroma_intra_c (uint8_t *pix, int stride, int alpha, int beta)
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_loop_filter_chroma_intra_c (uint8_t *pix, int xstride, int ystride, int alpha, int beta)
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_chroma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
static void h264_v_loop_filter_chroma_intra_c (uint8_t *pix, int stride, int alpha, int beta)
static void h264_v_loop_filter_luma_c (uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
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 void just_return ()
static int nsse16_c (void *v, uint8_t *s1, uint8_t *s2, int stride, int h)
static int nsse8_c (void *v, uint8_t *s1, uint8_t *s2, int stride, int h)
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_xy2_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_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_xy2_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_norm1_c (uint8_t *pix, int line_size)
static int pix_sum_c (uint8_t *pix, int line_size)
static void put_mspel8_mc00_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_mc10_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_mc20_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 put_mspel8_mc30_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_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 put_pixels_clamped2_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_clamped_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 put_tpel_pixels_mc00_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_mc02_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_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_mc20_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 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)
void simple_idct (DCTELEM *block)
static int sse16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
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 void sub_hfyu_median_prediction_c (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w, int *left, int *left_top)
static int try_8x8basis_c (int16_t rem[64], int16_t weight[64], int16_t basis[64], int scale)
static int vsad16_c (void *c, uint8_t *s1, uint8_t *s2, int stride, int h)
static int vsad_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 int vsse_intra16_c (void *c, uint8_t *s, uint8_t *dummy, int stride, int h)
static int w53_16_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
int w53_32_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
static int w53_8_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)
int w97_32_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 w_c (void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int w, int h, int type)
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 int zero_cmp (void *s, uint8_t *a, uint8_t *b, int stride, int h)

Variables

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


Generated by  Doxygen 1.6.0   Back to index