Mercurial > libavcodec.hg
comparison dsputil.h @ 5149:b7bae4ce8b07 libavcodec
move dsputil_init_foo() out from #ifdef
author | mru |
---|---|
date | Sat, 16 Jun 2007 10:44:46 +0000 |
parents | 4dbe6578f811 |
children | 669a97223dc7 |
comparison
equal
deleted
inserted
replaced
5148:fdcf146e5b49 | 5149:b7bae4ce8b07 |
---|---|
468 | 468 |
469 /* should be defined by architectures supporting | 469 /* should be defined by architectures supporting |
470 one or more MultiMedia extension */ | 470 one or more MultiMedia extension */ |
471 int mm_support(void); | 471 int mm_support(void); |
472 | 472 |
473 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); | |
474 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx); | |
475 void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); | |
476 void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx); | |
477 void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx); | |
478 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx); | |
479 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx); | |
480 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx); | |
481 void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); | |
482 | |
473 #define DECLARE_ALIGNED_16(t, v) DECLARE_ALIGNED(16, t, v) | 483 #define DECLARE_ALIGNED_16(t, v) DECLARE_ALIGNED(16, t, v) |
474 | 484 |
475 #if defined(HAVE_MMX) | 485 #if defined(HAVE_MMX) |
476 | 486 |
477 #undef emms_c | 487 #undef emms_c |
505 | 515 |
506 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 516 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
507 | 517 |
508 #define STRIDE_ALIGN 8 | 518 #define STRIDE_ALIGN 8 |
509 | 519 |
510 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx); | |
511 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); | 520 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); |
512 | 521 |
513 #elif defined(ARCH_ARMV4L) | 522 #elif defined(ARCH_ARMV4L) |
514 | 523 |
515 /* This is to use 4 bytes read to the IDCT pointers for some 'zero' | 524 /* This is to use 4 bytes read to the IDCT pointers for some 'zero' |
519 | 528 |
520 #define MM_IWMMXT 0x0100 /* XScale IWMMXT */ | 529 #define MM_IWMMXT 0x0100 /* XScale IWMMXT */ |
521 | 530 |
522 extern int mm_flags; | 531 extern int mm_flags; |
523 | 532 |
524 void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx); | |
525 | |
526 #elif defined(HAVE_MLIB) | 533 #elif defined(HAVE_MLIB) |
527 | 534 |
528 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ | 535 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ |
529 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 536 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
530 #define STRIDE_ALIGN 8 | 537 #define STRIDE_ALIGN 8 |
531 | 538 |
532 void dsputil_init_mlib(DSPContext* c, AVCodecContext *avctx); | |
533 | |
534 #elif defined(ARCH_SPARC) | 539 #elif defined(ARCH_SPARC) |
535 | 540 |
536 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ | 541 /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ |
537 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 542 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
538 #define STRIDE_ALIGN 8 | 543 #define STRIDE_ALIGN 8 |
539 void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx); | |
540 | 544 |
541 #elif defined(ARCH_ALPHA) | 545 #elif defined(ARCH_ALPHA) |
542 | 546 |
543 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 547 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
544 #define STRIDE_ALIGN 8 | 548 #define STRIDE_ALIGN 8 |
545 | |
546 void dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); | |
547 | 549 |
548 #elif defined(ARCH_POWERPC) | 550 #elif defined(ARCH_POWERPC) |
549 | 551 |
550 #define MM_ALTIVEC 0x0001 /* standard AltiVec */ | 552 #define MM_ALTIVEC 0x0001 /* standard AltiVec */ |
551 | 553 |
558 #endif | 560 #endif |
559 | 561 |
560 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | 562 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
561 #define STRIDE_ALIGN 16 | 563 #define STRIDE_ALIGN 16 |
562 | 564 |
563 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx); | |
564 | |
565 #elif defined(HAVE_MMI) | 565 #elif defined(HAVE_MMI) |
566 | 566 |
567 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) | 567 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) |
568 #define STRIDE_ALIGN 16 | 568 #define STRIDE_ALIGN 16 |
569 | 569 |
570 void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx); | |
571 | |
572 #elif defined(ARCH_SH4) | 570 #elif defined(ARCH_SH4) |
573 | 571 |
574 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 572 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
575 #define STRIDE_ALIGN 8 | 573 #define STRIDE_ALIGN 8 |
576 | 574 |
577 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx); | |
578 | |
579 #elif defined(ARCH_BFIN) | 575 #elif defined(ARCH_BFIN) |
580 | 576 |
581 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 577 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
582 #define STRIDE_ALIGN 8 | 578 #define STRIDE_ALIGN 8 |
583 | |
584 void dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); | |
585 | 579 |
586 #else | 580 #else |
587 | 581 |
588 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) | 582 #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) |
589 #define STRIDE_ALIGN 8 | 583 #define STRIDE_ALIGN 8 |