|
FFmpeg
|
#include "config.h"#include "libavutil/attributes.h"#include "libavutil/ppc/util_altivec.h"#include "libavcodec/avcodec.h"#include "libavcodec/fdctdsp.h"#include "fdct.h"Go to the source code of this file.
Macros | |
| #define | vs16(v) |
| #define | vs32(v) |
| #define | vu8(v) |
| #define | vu16(v) |
| #define | vu32(v) |
| #define | C1 0.98078528040323044912618224 /* cos(1 * PI / 16) */ |
| #define | C2 0.92387953251128675612818319 /* cos(2 * PI / 16) */ |
| #define | C3 0.83146961230254523707878838 /* cos(3 * PI / 16) */ |
| #define | C4 0.70710678118654752440084436 /* cos(4 * PI / 16) */ |
| #define | C5 0.55557023301960222474283081 /* cos(5 * PI / 16) */ |
| #define | C6 0.38268343236508977172845998 /* cos(6 * PI / 16) */ |
| #define | C7 0.19509032201612826784828487 /* cos(7 * PI / 16) */ |
| #define | W0 -(2 * C2) |
| #define | W1 (2 * C6) |
| #define | W2 (M_SQRT2 * C6) |
| #define | W3 (M_SQRT2 * C3) |
| #define | W4 (M_SQRT2 * (-C1 + C3 + C5 - C7)) |
| #define | W5 (M_SQRT2 * (C1 + C3 - C5 + C7)) |
| #define | W6 (M_SQRT2 * (C1 + C3 + C5 - C7)) |
| #define | W7 (M_SQRT2 * (C1 + C3 - C5 - C7)) |
| #define | W8 (M_SQRT2 * (C7 - C3)) |
| #define | W9 (M_SQRT2 * (-C1 - C3)) |
| #define | WA (M_SQRT2 * (-C3 - C5)) |
| #define | WB (M_SQRT2 * (C5 - C3)) |
| #define | LD_W0 vec_splat(cnsts0, 0) |
| #define | LD_W1 vec_splat(cnsts0, 1) |
| #define | LD_W2 vec_splat(cnsts0, 2) |
| #define | LD_W3 vec_splat(cnsts0, 3) |
| #define | LD_W4 vec_splat(cnsts1, 0) |
| #define | LD_W5 vec_splat(cnsts1, 1) |
| #define | LD_W6 vec_splat(cnsts1, 2) |
| #define | LD_W7 vec_splat(cnsts1, 3) |
| #define | LD_W8 vec_splat(cnsts2, 0) |
| #define | LD_W9 vec_splat(cnsts2, 1) |
| #define | LD_WA vec_splat(cnsts2, 2) |
| #define | LD_WB vec_splat(cnsts2, 3) |
| #define | FDCTROW(b0, b1, b2, b3, b4, b5, b6, b7) |
| #define | FDCTCOL(b0, b1, b2, b3, b4, b5, b6, b7) |
| #define | MERGE_S16(hl, a, b) |
| #define | CTF0(n) |
| #define | CTFX(x, b) |
| #define | CTS(n) |
Functions | |
| void | ff_fdct_altivec (int16_t *block) |
Variables | |
| static const vector float | fdctconsts [3] |
| #define vs16 | ( | v | ) |
Definition at line 31 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define vs32 | ( | v | ) |
Definition at line 32 of file fdctdsp_altivec.c.
| #define vu8 | ( | v | ) |
Definition at line 33 of file fdctdsp_altivec.c.
| #define vu16 | ( | v | ) |
Definition at line 34 of file fdctdsp_altivec.c.
| #define vu32 | ( | v | ) |
Definition at line 35 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec(), and yuv2422_X_vsx_template().
| #define C1 0.98078528040323044912618224 /* cos(1 * PI / 16) */ |
Definition at line 37 of file fdctdsp_altivec.c.
| #define C2 0.92387953251128675612818319 /* cos(2 * PI / 16) */ |
Definition at line 38 of file fdctdsp_altivec.c.
| #define C3 0.83146961230254523707878838 /* cos(3 * PI / 16) */ |
Definition at line 39 of file fdctdsp_altivec.c.
| #define C4 0.70710678118654752440084436 /* cos(4 * PI / 16) */ |
Definition at line 40 of file fdctdsp_altivec.c.
| #define C5 0.55557023301960222474283081 /* cos(5 * PI / 16) */ |
Definition at line 41 of file fdctdsp_altivec.c.
| #define C6 0.38268343236508977172845998 /* cos(6 * PI / 16) */ |
Definition at line 42 of file fdctdsp_altivec.c.
| #define C7 0.19509032201612826784828487 /* cos(7 * PI / 16) */ |
Definition at line 43 of file fdctdsp_altivec.c.
| #define W0 -(2 * C2) |
Definition at line 45 of file fdctdsp_altivec.c.
| #define W1 (2 * C6) |
Definition at line 46 of file fdctdsp_altivec.c.
Definition at line 47 of file fdctdsp_altivec.c.
Definition at line 48 of file fdctdsp_altivec.c.
Definition at line 53 of file fdctdsp_altivec.c.
Definition at line 54 of file fdctdsp_altivec.c.
Definition at line 55 of file fdctdsp_altivec.c.
Definition at line 56 of file fdctdsp_altivec.c.
| #define LD_W0 vec_splat(cnsts0, 0) |
Definition at line 64 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W1 vec_splat(cnsts0, 1) |
Definition at line 65 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W2 vec_splat(cnsts0, 2) |
Definition at line 66 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W3 vec_splat(cnsts0, 3) |
Definition at line 67 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W4 vec_splat(cnsts1, 0) |
Definition at line 68 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W5 vec_splat(cnsts1, 1) |
Definition at line 69 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W6 vec_splat(cnsts1, 2) |
Definition at line 70 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W7 vec_splat(cnsts1, 3) |
Definition at line 71 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W8 vec_splat(cnsts2, 0) |
Definition at line 72 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_W9 vec_splat(cnsts2, 1) |
Definition at line 73 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_WA vec_splat(cnsts2, 2) |
Definition at line 74 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
| #define LD_WB vec_splat(cnsts2, 3) |
Definition at line 75 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
Definition at line 134 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().
Referenced by ff_fdct_altivec().
| #define CTF0 | ( | n | ) |
Referenced by ff_fdct_altivec().
| #define CTFX | ( | x, | |
| b ) |
| #define CTS | ( | n | ) |
Referenced by ff_fdct_altivec().
| void ff_fdct_altivec | ( | int16_t * | block | ) |
Definition at line 192 of file fdctdsp_altivec.c.
Referenced by ff_fdctdsp_init_ppc().
|
static |
Definition at line 58 of file fdctdsp_altivec.c.
Referenced by ff_fdct_altivec().