libavcodec/cavsdsp.c File Reference

#include <stdio.h>
#include "dsputil.h"

Go to the source code of this file.

Defines

#define P2   p0_p[-3*stride]
#define P1   p0_p[-2*stride]
#define P0   p0_p[-1*stride]
#define Q0   p0_p[ 0*stride]
#define Q1   p0_p[ 1*stride]
#define Q2   p0_p[ 2*stride]
#define CAVS_SUBPIX(OPNAME, OP, NAME, A, B, C, D, E, F)
#define CAVS_SUBPIX_HV(OPNAME, OP, NAME, AH, BH, CH, DH, EH, FH, AV, BV, CV, DV, EV, FV, FULL)
#define CAVS_MC(OPNAME, SIZE)
#define op_put1(a, b)   a = cm[((b)+4)>>3]
#define op_put2(a, b)   a = cm[((b)+64)>>7]
#define op_put3(a, b)   a = cm[((b)+32)>>6]
#define op_put4(a, b)   a = cm[((b)+512)>>10]
#define op_avg1(a, b)   a = ((a)+cm[((b)+4)>>3] +1)>>1
#define op_avg2(a, b)   a = ((a)+cm[((b)+64)>>7] +1)>>1
#define op_avg3(a, b)   a = ((a)+cm[((b)+32)>>6] +1)>>1
#define op_avg4(a, b)   a = ((a)+cm[((b)+512)>>10]+1)>>1
#define dspfunc(PFX, IDX, NUM)

Functions

static void loop_filter_l2 (uint8_t *p0_p, int stride, int alpha, int beta)
static void loop_filter_l1 (uint8_t *p0_p, int stride, int alpha, int beta, int tc)
static void loop_filter_c2 (uint8_t *p0_p, int stride, int alpha, int beta)
static void loop_filter_c1 (uint8_t *p0_p, int stride, int alpha, int beta, int tc)
static void cavs_filter_lv_c (uint8_t *d, int stride, int alpha, int beta, int tc, int bs1, int bs2)
static void cavs_filter_lh_c (uint8_t *d, int stride, int alpha, int beta, int tc, int bs1, int bs2)
static void cavs_filter_cv_c (uint8_t *d, int stride, int alpha, int beta, int tc, int bs1, int bs2)
static void cavs_filter_ch_c (uint8_t *d, int stride, int alpha, int beta, int tc, int bs1, int bs2)
static void cavs_idct8_add_c (uint8_t *dst, DCTELEM *block, int stride)
av_cold void ff_cavsdsp_init (DSPContext *c, AVCodecContext *avctx)


Define Documentation

#define CAVS_MC ( OPNAME,
SIZE   ) 

Definition at line 421 of file cavsdsp.c.

#define CAVS_SUBPIX ( OPNAME,
OP,
NAME,
A,
B,
C,
D,
E,
 ) 

Definition at line 259 of file cavsdsp.c.

#define CAVS_SUBPIX_HV ( OPNAME,
OP,
NAME,
AH,
BH,
CH,
DH,
EH,
FH,
AV,
BV,
CV,
DV,
EV,
FV,
FULL   ) 

Definition at line 329 of file cavsdsp.c.

#define dspfunc ( PFX,
IDX,
NUM   ) 

Value:

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

Referenced by dsputil_h264_init_ppc(), dsputil_init(), dsputil_init_align(), ff_cavsdsp_init(), ff_cavsdsp_init_3dnow(), and ff_cavsdsp_init_mmx2().

#define op_avg1 ( a,
 )     a = ((a)+cm[((b)+4)>>3] +1)>>1

Definition at line 486 of file cavsdsp.c.

#define op_avg2 ( a,
 )     a = ((a)+cm[((b)+64)>>7] +1)>>1

Definition at line 487 of file cavsdsp.c.

#define op_avg3 ( a,
 )     a = ((a)+cm[((b)+32)>>6] +1)>>1

Definition at line 488 of file cavsdsp.c.

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

Definition at line 489 of file cavsdsp.c.

#define op_put1 ( a,
 )     a = cm[((b)+4)>>3]

Definition at line 482 of file cavsdsp.c.

#define op_put2 ( a,
 )     a = cm[((b)+64)>>7]

Definition at line 483 of file cavsdsp.c.

#define op_put3 ( a,
 )     a = cm[((b)+32)>>6]

Definition at line 484 of file cavsdsp.c.

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

Definition at line 485 of file cavsdsp.c.

#define P0   p0_p[-1*stride]

Definition at line 36 of file cavsdsp.c.

Referenced by loop_filter_c1(), loop_filter_c2(), loop_filter_l1(), and loop_filter_l2().

#define P1   p0_p[-2*stride]

Definition at line 35 of file cavsdsp.c.

Referenced by loop_filter_c1(), loop_filter_c2(), loop_filter_l1(), and loop_filter_l2().

#define P2   p0_p[-3*stride]

Definition at line 34 of file cavsdsp.c.

Referenced by loop_filter_c2(), loop_filter_l1(), and loop_filter_l2().

#define Q0   p0_p[ 0*stride]

Definition at line 37 of file cavsdsp.c.

Referenced by loop_filter_c1(), loop_filter_c2(), loop_filter_l1(), and loop_filter_l2().

#define Q1   p0_p[ 1*stride]

Definition at line 38 of file cavsdsp.c.

Referenced by loop_filter_c1(), loop_filter_c2(), loop_filter_l1(), and loop_filter_l2().

#define Q2   p0_p[ 2*stride]

Definition at line 39 of file cavsdsp.c.

Referenced by loop_filter_c2(), loop_filter_l1(), and loop_filter_l2().


Function Documentation

static void cavs_filter_ch_c ( uint8_t *  d,
int  stride,
int  alpha,
int  beta,
int  tc,
int  bs1,
int  bs2 
) [static]

Definition at line 162 of file cavsdsp.c.

Referenced by ff_cavsdsp_init().

static void cavs_filter_cv_c ( uint8_t *  d,
int  stride,
int  alpha,
int  beta,
int  tc,
int  bs1,
int  bs2 
) [static]

Definition at line 146 of file cavsdsp.c.

Referenced by ff_cavsdsp_init().

static void cavs_filter_lh_c ( uint8_t *  d,
int  stride,
int  alpha,
int  beta,
int  tc,
int  bs1,
int  bs2 
) [static]

Definition at line 130 of file cavsdsp.c.

Referenced by ff_cavsdsp_init().

static void cavs_filter_lv_c ( uint8_t *  d,
int  stride,
int  alpha,
int  beta,
int  tc,
int  bs1,
int  bs2 
) [static]

Definition at line 114 of file cavsdsp.c.

Referenced by ff_cavsdsp_init().

static void cavs_idct8_add_c ( uint8_t *  dst,
DCTELEM block,
int  stride 
) [static]

Definition at line 184 of file cavsdsp.c.

Referenced by ff_cavsdsp_init().

av_cold void ff_cavsdsp_init ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 513 of file cavsdsp.c.

Referenced by dsputil_init().

static void loop_filter_c1 ( uint8_t *  p0_p,
int  stride,
int  alpha,
int  beta,
int  tc 
) [inline, static]

Definition at line 98 of file cavsdsp.c.

Referenced by cavs_filter_ch_c(), and cavs_filter_cv_c().

static void loop_filter_c2 ( uint8_t *  p0_p,
int  stride,
int  alpha,
int  beta 
) [inline, static]

Definition at line 80 of file cavsdsp.c.

Referenced by cavs_filter_ch_c(), and cavs_filter_cv_c().

static void loop_filter_l1 ( uint8_t *  p0_p,
int  stride,
int  alpha,
int  beta,
int  tc 
) [inline, static]

Definition at line 61 of file cavsdsp.c.

Referenced by cavs_filter_lh_c(), and cavs_filter_lv_c().

static void loop_filter_l2 ( uint8_t *  p0_p,
int  stride,
int  alpha,
int  beta 
) [inline, static]

Definition at line 41 of file cavsdsp.c.

Referenced by cavs_filter_lh_c(), and cavs_filter_lv_c().


Generated on Fri Oct 26 02:36:51 2012 for FFmpeg by  doxygen 1.5.8