]>
Commit | Line | Data |
---|---|---|
f97cde6c AM |
1 | diff -urN transcode-0.6.3.org/libdvenc/enc_input.h transcode-0.6.3/libdvenc/enc_input.h |
2 | --- transcode-0.6.3.org/libdvenc/enc_input.h Thu Feb 27 08:49:36 2003 | |
3 | +++ transcode-0.6.3/libdvenc/enc_input.h Thu Feb 27 08:49:45 2003 | |
4 | @@ -32,6 +32,7 @@ | |
5 | extern "C" { | |
6 | #endif | |
7 | #define DV_ENC_MAX_INPUT_FILTERS 32 | |
8 | + #define DCT_YUV_PRECISION 8 | |
970c1170 | 9 | |
f97cde6c AM |
10 | typedef struct dv_enc_input_filter_s { |
11 | int (*init)(int wrong_interlace, int force_dct); | |
12 | diff -urN transcode-0.6.3.org/libmpeg2/idct.c transcode-0.6.3/libmpeg2/idct.c | |
13 | --- transcode-0.6.3.org/libmpeg2/idct.c Thu Feb 27 08:49:36 2003 | |
14 | +++ transcode-0.6.3/libmpeg2/idct.c Thu Feb 27 08:52:27 2003 | |
15 | @@ -263,7 +263,7 @@ | |
16 | fprintf (stderr, "Using MMX for IDCT transform\n"); | |
17 | } else | |
18 | #endif | |
970c1170 | 19 | -#ifdef ARCH_PPC |
20 | +#if defined(ARCH_PPC) && defined(HAVE_PPC_ALTIVEC) | |
f97cde6c AM |
21 | if (mm_accel & MM_ACCEL_PPC_ALTIVEC) { |
22 | fprintf (stderr, "Using altivec for IDCT transform\n"); | |
23 | } else | |
24 | @@ -298,7 +298,7 @@ | |
25 | mpeg2_idct_mmx_init (); | |
26 | } else | |
27 | #endif | |
28 | -#ifdef ARCH_PPC | |
29 | +#if defined(ARCH_PPC) && defined(HAVE_PPC_ALTIVEC) | |
30 | if (mm_accel & MM_ACCEL_PPC_ALTIVEC) { | |
31 | mpeg2_idct_copy = mpeg2_idct_copy_altivec; | |
32 | mpeg2_idct_add = mpeg2_idct_add_altivec; | |
33 | diff -urN transcode-0.6.3.org/libmpeg2/idct_altivec.c transcode-0.6.3/libmpeg2/idct_altivec.c | |
34 | --- transcode-0.6.3.org/libmpeg2/idct_altivec.c Thu Feb 27 08:49:36 2003 | |
35 | +++ transcode-0.6.3/libmpeg2/idct_altivec.c Thu Feb 27 08:49:45 2003 | |
970c1170 | 36 | @@ -25,7 +25,7 @@ |
37 | ||
38 | #include "config.h" | |
39 | ||
40 | -#ifdef ARCH_PPC | |
41 | +#if defined(ARCH_PPC) && defined(HAVE_PPC_ALTIVEC) | |
42 | ||
43 | #include <inttypes.h> | |
44 | ||
f97cde6c AM |
45 | diff -urN transcode-0.6.3.org/libmpeg2/motion_comp.c transcode-0.6.3/libmpeg2/motion_comp.c |
46 | --- transcode-0.6.3.org/libmpeg2/motion_comp.c Thu Feb 27 08:49:36 2003 | |
47 | +++ transcode-0.6.3/libmpeg2/motion_comp.c Thu Feb 27 08:51:41 2003 | |
48 | @@ -41,7 +41,7 @@ | |
49 | fprintf (stderr, "Using MMX for motion compensation\n"); | |
970c1170 | 50 | } else |
51 | #endif | |
52 | -#ifdef ARCH_PPC | |
53 | +#if defined(ARCH_PPC) && defined(HAVE_PPC_ALTIVEC) | |
f97cde6c AM |
54 | if (mm_accel & MM_ACCEL_PPC_ALTIVEC) { |
55 | fprintf (stderr, "Using altivec for motion compensation\n"); | |
970c1170 | 56 | } else |
f97cde6c AM |
57 | @@ -65,7 +65,7 @@ |
58 | mpeg2_mc = mpeg2_mc_mmx; | |
970c1170 | 59 | } else |
60 | #endif | |
61 | -#ifdef ARCH_PPC | |
62 | +#if defined(ARCH_PPC) && defined(HAVE_PPC_ALTIVEC) | |
f97cde6c AM |
63 | if (mm_accel & MM_ACCEL_PPC_ALTIVEC) { |
64 | mpeg2_mc = mpeg2_mc_altivec; | |
970c1170 | 65 | } else |
f97cde6c AM |
66 | diff -urN transcode-0.6.3.org/libmpeg2/motion_comp_altivec.c transcode-0.6.3/libmpeg2/motion_comp_altivec.c |
67 | --- transcode-0.6.3.org/libmpeg2/motion_comp_altivec.c Thu Feb 27 08:49:36 2003 | |
68 | +++ transcode-0.6.3/libmpeg2/motion_comp_altivec.c Thu Feb 27 08:49:45 2003 | |
69 | @@ -25,7 +25,7 @@ | |
70 | ||
71 | #include "config.h" | |
72 | ||
970c1170 | 73 | -#ifdef ARCH_PPC |
74 | +#if defined(ARCH_PPC) && defined(HAVE_PPC_ALTIVEC) | |
970c1170 | 75 | |
f97cde6c AM |
76 | #include <inttypes.h> |
77 | ||
78 | diff -urN transcode-0.6.3.org/libvo/cpu_accel.c transcode-0.6.3/libvo/cpu_accel.c | |
79 | --- transcode-0.6.3.org/libvo/cpu_accel.c Thu Feb 27 08:49:36 2003 | |
80 | +++ transcode-0.6.3/libvo/cpu_accel.c Thu Feb 27 08:49:45 2003 | |
81 | @@ -115,6 +115,7 @@ | |
82 | ||
83 | canjump = 1; | |
84 | ||
85 | +#if defined(HAVE_PPC_ALTIVEC) | |
86 | asm volatile ("mtspr 256, %0\n\t" | |
87 | "vand %%v0, %%v0, %%v0" | |
88 | : | |
89 | @@ -122,6 +123,9 @@ | |
90 | ||
91 | signal (SIGILL, SIG_DFL); | |
92 | return MM_ACCEL_PPC_ALTIVEC; | |
93 | +#else | |
94 | + return 0; | |
95 | +#endif | |
96 | } | |
97 | #endif /* ARCH_PPC */ | |
98 | ||
88967b9a | 99 | diff -uNr transcode-0.6.12.orig/configure.in transcode-0.6.12/configure.in |
100 | --- transcode-0.6.12.orig/configure.in 2004-01-06 20:38:03.000000000 +0000 | |
101 | +++ transcode-0.6.12/configure.in 2004-09-12 16:51:29.012156349 +0000 | |
102 | @@ -276,9 +276,9 @@ | |
103 | ])]) | |
104 | ||
105 | if test "x${ac_cv_altivec_inline}" != "xno"; then | |
106 | - AC_DEFINE(HAVE_PPC_ALTIVEC, 1, Define if \$CC groks AltiVec inline assembly.) | |
107 | if test "x${ac_cv_altivec_inline}" != "xyes"; then | |
108 | - use_altivec=yes | |
109 | + | |
110 | + use_altivec=no | |
111 | fi | |
112 | fi | |
113 |