libavcodec/ppc/idct_altivec.c File Reference

#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "libavcodec/dsputil.h"
#include "types_altivec.h"
#include "dsputil_altivec.h"

Go to the source code of this file.

Defines

#define IDCT_HALF
#define IDCT
#define COPY(dest, src)
#define ADD(dest, src, perm)

Functions

void idct_put_altivec (uint8_t *dest, int stride, int16_t *blk)
void idct_add_altivec (uint8_t *dest, int stride, int16_t *blk)

Variables

static const vec_s16 constants [5]


Define Documentation

#define ADD ( dest,
src,
perm   ) 

Value:

/* *(uint64_t *)&tmp = *(uint64_t *)dest; */                        \
    tmp = vec_ld (0, dest);                                             \
    tmp2 = (vec_s16)vec_perm (tmp, (vec_u8)zero, perm);       \
    tmp3 = vec_adds (tmp2, src);                                        \
    tmp = vec_packsu (tmp3, tmp3);                                      \
    vec_ste ((vec_u32)tmp, 0, (unsigned int *)dest);               \
    vec_ste ((vec_u32)tmp, 4, (unsigned int *)dest);

#define COPY ( dest,
src   ) 

Value:

tmp = vec_packsu (src, src);                                \
    vec_ste ((vec_u32)tmp, 0, (unsigned int *)dest);       \
    vec_ste ((vec_u32)tmp, 4, (unsigned int *)dest);

#define IDCT

Definition at line 84 of file idct_altivec.c.

Referenced by idct(), idct_add_altivec(), and idct_put_altivec().

#define IDCT_HALF

Definition at line 48 of file idct_altivec.c.


Function Documentation

void idct_add_altivec ( uint8_t *  dest,
int  stride,
int16_t blk 
)

Definition at line 183 of file idct_altivec.c.

Referenced by dsputil_init_ppc().

void idct_put_altivec ( uint8_t *  dest,
int  stride,
int16_t blk 
)

Definition at line 161 of file idct_altivec.c.

Referenced by dsputil_init_ppc().


Variable Documentation

const vec_s16 constants[5] [static]

Initial value:

 {
    {23170, 13573,  6518, 21895, -23170, -21895,    32,    31},
    {16384, 22725, 21407, 19266,  16384,  19266, 21407, 22725},
    {22725, 31521, 29692, 26722,  22725,  26722, 29692, 31521},
    {21407, 29692, 27969, 25172,  21407,  25172, 27969, 29692},
    {19266, 26722, 25172, 22654,  19266,  22654, 25172, 26722}
}

Definition at line 153 of file idct_altivec.c.

Referenced by parse_primary().


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