Mercurial > libavcodec.hg
comparison dsputil.h @ 4196:fbac0859753d libavcodec
move some CFLAGS settings away from config.* writing section
author | mru |
---|---|
date | Tue, 14 Nov 2006 03:12:29 +0000 |
parents | 46d38e3d7038 |
children | bbe0bc387a19 |
comparison
equal
deleted
inserted
replaced
4195:6b784f65ce16 | 4196:fbac0859753d |
---|---|
403 * last argument is actually round value instead of height | 403 * last argument is actually round value instead of height |
404 */ | 404 */ |
405 op_pixels_func put_vc1_mspel_pixels_tab[16]; | 405 op_pixels_func put_vc1_mspel_pixels_tab[16]; |
406 } DSPContext; | 406 } DSPContext; |
407 | 407 |
408 void dsputil_static_init(void); | 408 void ff_dsputil_static_init(void); |
409 void dsputil_init(DSPContext* p, AVCodecContext *avctx); | 409 void dsputil_init(DSPContext* p, AVCodecContext *avctx); |
410 | 410 |
411 /** | 411 /** |
412 * permute block according to permuatation. | 412 * permute block according to permuatation. |
413 * @param last last non zero element in scantable order | 413 * @param last last non zero element in scantable order |
461 | 461 |
462 /* should be defined by architectures supporting | 462 /* should be defined by architectures supporting |
463 one or more MultiMedia extension */ | 463 one or more MultiMedia extension */ |
464 int mm_support(void); | 464 int mm_support(void); |
465 | 465 |
466 extern int ff_mm_flags; | |
467 | |
466 #ifdef __GNUC__ | 468 #ifdef __GNUC__ |
467 #define DECLARE_ALIGNED_16(t,v) t v __attribute__ ((aligned (16))) | 469 #define DECLARE_ALIGNED_16(t,v) t v __attribute__ ((aligned (16))) |
468 #else | 470 #else |
469 #define DECLARE_ALIGNED_16(t,v) __declspec(align(16)) t v | 471 #define DECLARE_ALIGNED_16(t,v) __declspec(align(16)) t v |
470 #endif | 472 #endif |
479 #define MM_SSE 0x0008 /* SSE functions */ | 481 #define MM_SSE 0x0008 /* SSE functions */ |
480 #define MM_SSE2 0x0010 /* PIV SSE2 functions */ | 482 #define MM_SSE2 0x0010 /* PIV SSE2 functions */ |
481 #define MM_3DNOWEXT 0x0020 /* AMD 3DNowExt */ | 483 #define MM_3DNOWEXT 0x0020 /* AMD 3DNowExt */ |
482 #define MM_SSE3 0x0040 /* Prescott SSE3 functions */ | 484 #define MM_SSE3 0x0040 /* Prescott SSE3 functions */ |
483 | 485 |
484 extern int mm_flags; | |
485 | |
486 void add_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size); | 486 void add_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size); |
487 void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size); | 487 void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size); |
488 void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size); | 488 void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size); |
489 | 489 |
490 static inline void emms(void) | 490 static inline void emms(void) |
493 } | 493 } |
494 | 494 |
495 | 495 |
496 #define emms_c() \ | 496 #define emms_c() \ |
497 {\ | 497 {\ |
498 if (mm_flags & MM_MMX)\ | 498 if (ff_mm_flags & MM_MMX)\ |
499 emms();\ | 499 emms();\ |
500 } | 500 } |
501 | 501 |
502 #ifdef __GNUC__ | 502 #ifdef __GNUC__ |
503 #define DECLARE_ALIGNED_8(t,v) t v __attribute__ ((aligned (8))) | 503 #define DECLARE_ALIGNED_8(t,v) t v __attribute__ ((aligned (8))) |
517 #define DECLARE_ALIGNED_8(t,v) t v __attribute__ ((aligned (4))) | 517 #define DECLARE_ALIGNED_8(t,v) t v __attribute__ ((aligned (4))) |
518 #define STRIDE_ALIGN 4 | 518 #define STRIDE_ALIGN 4 |
519 | 519 |
520 #define MM_IWMMXT 0x0100 /* XScale IWMMXT */ | 520 #define MM_IWMMXT 0x0100 /* XScale IWMMXT */ |
521 | 521 |
522 extern int mm_flags; | |
523 | |
524 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx); | 522 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx); |
525 | 523 |
526 #elif defined(HAVE_MLIB) | 524 #elif defined(HAVE_MLIB) |
527 | 525 |
528 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ | 526 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ |
546 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); | 544 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); |
547 | 545 |
548 #elif defined(ARCH_POWERPC) | 546 #elif defined(ARCH_POWERPC) |
549 | 547 |
550 #define MM_ALTIVEC 0x0001 /* standard AltiVec */ | 548 #define MM_ALTIVEC 0x0001 /* standard AltiVec */ |
551 | |
552 extern int mm_flags; | |
553 | 549 |
554 #if defined(HAVE_ALTIVEC) && !defined(CONFIG_DARWIN) | 550 #if defined(HAVE_ALTIVEC) && !defined(CONFIG_DARWIN) |
555 #define pixel altivec_pixel | 551 #define pixel altivec_pixel |
556 #include <altivec.h> | 552 #include <altivec.h> |
557 #undef pixel | 553 #undef pixel |