Mercurial > libavcodec.hg
comparison dsputil.h @ 8590:7a463923ecd1 libavcodec
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.
author | aurel |
---|---|
date | Tue, 13 Jan 2009 23:44:16 +0000 |
parents | 2acf0ae7b041 |
children | 04423b2f6e0b |
comparison
equal
deleted
inserted
replaced
8589:a29b5b5c3c9d | 8590:7a463923ecd1 |
---|---|
172 */ | 172 */ |
173 typedef struct ScanTable{ | 173 typedef struct ScanTable{ |
174 const uint8_t *scantable; | 174 const uint8_t *scantable; |
175 uint8_t permutated[64]; | 175 uint8_t permutated[64]; |
176 uint8_t raster_end[64]; | 176 uint8_t raster_end[64]; |
177 #ifdef ARCH_PPC | 177 #if ARCH_PPC |
178 /** Used by dct_quantize_altivec to find last-non-zero */ | 178 /** Used by dct_quantize_altivec to find last-non-zero */ |
179 DECLARE_ALIGNED(16, uint8_t, inverse[64]); | 179 DECLARE_ALIGNED(16, uint8_t, inverse[64]); |
180 #endif | 180 #endif |
181 } ScanTable; | 181 } ScanTable; |
182 | 182 |
582 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx); | 582 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx); |
583 void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); | 583 void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); |
584 | 584 |
585 #define DECLARE_ALIGNED_16(t, v) DECLARE_ALIGNED(16, t, v) | 585 #define DECLARE_ALIGNED_16(t, v) DECLARE_ALIGNED(16, t, v) |
586 | 586 |
587 #if defined(HAVE_MMX) | 587 #if HAVE_MMX |
588 | 588 |
589 #undef emms_c | 589 #undef emms_c |
590 | 590 |
591 extern int mm_flags; | 591 extern int mm_flags; |
592 | 592 |
606 emms();\ | 606 emms();\ |
607 } | 607 } |
608 | 608 |
609 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); | 609 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); |
610 | 610 |
611 #elif defined(ARCH_ARM) | 611 #elif ARCH_ARM |
612 | 612 |
613 extern int mm_flags; | 613 extern int mm_flags; |
614 | 614 |
615 #ifdef HAVE_NEON | 615 #if HAVE_NEON |
616 # define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | 616 # define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
617 # define STRIDE_ALIGN 16 | 617 # define STRIDE_ALIGN 16 |
618 #endif | 618 #endif |
619 | 619 |
620 #elif defined(ARCH_PPC) | 620 #elif ARCH_PPC |
621 | 621 |
622 extern int mm_flags; | 622 extern int mm_flags; |
623 | 623 |
624 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | 624 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
625 #define STRIDE_ALIGN 16 | 625 #define STRIDE_ALIGN 16 |
626 | 626 |
627 #elif defined(HAVE_MMI) | 627 #elif HAVE_MMI |
628 | 628 |
629 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | 629 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
630 #define STRIDE_ALIGN 16 | 630 #define STRIDE_ALIGN 16 |
631 | 631 |
632 #else | 632 #else |