~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/ppc/dsputil_ppc.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
19
 */
20
20
 
21
 
#ifndef _DSPUTIL_PPC_
22
 
#define _DSPUTIL_PPC_
 
21
#ifndef FFMPEG_DSPUTIL_PPC_H
 
22
#define FFMPEG_DSPUTIL_PPC_H
23
23
 
24
24
#ifdef CONFIG_POWERPC_PERF
25
25
void powerpc_display_perf_report(void);
26
26
/* the 604* have 2, the G3* have 4, the G4s have 6,
27
27
   and the G5 are completely different (they MUST use
28
 
   POWERPC_MODE_64BITS, and let's hope all future 64 bis PPC
 
28
   HAVE_PPC64, and let's hope all future 64 bis PPC
29
29
   will use the same PMCs... */
30
30
#define POWERPC_NUM_PMC_ENABLED 6
31
31
/* if you add to the enum below, also add to the perfname array
68
68
};
69
69
extern unsigned long long perfdata[POWERPC_NUM_PMC_ENABLED][powerpc_perf_total][powerpc_data_total];
70
70
 
71
 
#ifndef POWERPC_MODE_64BITS
 
71
#ifndef HAVE_PPC64
72
72
#define POWERP_PMC_DATATYPE unsigned long
73
73
#define POWERPC_GET_PMC1(a) asm volatile("mfspr %0, 937" : "=r" (a))
74
74
#define POWERPC_GET_PMC2(a) asm volatile("mfspr %0, 938" : "=r" (a))
86
86
#define POWERPC_GET_PMC5(a) do {} while (0)
87
87
#define POWERPC_GET_PMC6(a) do {} while (0)
88
88
#endif
89
 
#else /* POWERPC_MODE_64BITS */
 
89
#else /* HAVE_PPC64 */
90
90
#define POWERP_PMC_DATATYPE unsigned long long
91
91
#define POWERPC_GET_PMC1(a) asm volatile("mfspr %0, 771" : "=r" (a))
92
92
#define POWERPC_GET_PMC2(a) asm volatile("mfspr %0, 772" : "=r" (a))
104
104
#define POWERPC_GET_PMC5(a) do {} while (0)
105
105
#define POWERPC_GET_PMC6(a) do {} while (0)
106
106
#endif
107
 
#endif /* POWERPC_MODE_64BITS */
 
107
#endif /* HAVE_PPC64 */
108
108
#define POWERPC_PERF_DECLARE(a, cond)   \
109
109
  POWERP_PMC_DATATYPE                   \
110
110
    pmc_start[POWERPC_NUM_PMC_ENABLED], \
152
152
#define POWERPC_PERF_STOP_COUNT(a, cond)     do {} while (0)
153
153
#endif /* CONFIG_POWERPC_PERF */
154
154
 
155
 
#endif /*  _DSPUTIL_PPC_ */
 
155
#endif /*  FFMPEG_DSPUTIL_PPC_H */