Browse Source

Move PS2 MMI code below the mips subdirectory, where it belongs.

Also give a more suitable name to the MMI-optimized IDCT;
it is not PS2-specific, as the name currently suggests.
tags/n0.11
Diego Biurrun 13 years ago
parent
commit
0bf184e59c
8 changed files with 10 additions and 10 deletions
  1. +1
    -1
      libavcodec/Makefile
  2. +1
    -1
      libavcodec/avcodec.h
  3. +3
    -3
      libavcodec/mips/Makefile
  4. +1
    -1
      libavcodec/mips/dsputil_mmi.c
  5. +0
    -0
      libavcodec/mips/idct_mmi.c
  6. +3
    -3
      libavcodec/mips/mmi.h
  7. +0
    -0
      libavcodec/mips/mpegvideo_mmi.c
  8. +1
    -1
      libavcodec/options.c

+ 1
- 1
libavcodec/Makefile View File

@@ -694,7 +694,7 @@ HOSTPROGS = aac_tablegen aacps_tablegen cbrt_tablegen cos_tablegen \
dv_tablegen motionpixels_tablegen mpegaudio_tablegen \
pcm_tablegen qdm2_tablegen sinewin_tablegen

DIRS = alpha arm avr32 bfin ppc ps2 sh4 sparc x86
DIRS = alpha arm avr32 bfin mips ppc sh4 sparc x86

CLEANFILES = *_tables.c *_tables.h *_tablegen$(HOSTEXESUF)



+ 1
- 1
libavcodec/avcodec.h View File

@@ -1729,7 +1729,7 @@ typedef struct AVCodecContext {
#define FF_IDCT_SIMPLE 2
#define FF_IDCT_SIMPLEMMX 3
#define FF_IDCT_LIBMPEG2MMX 4
#define FF_IDCT_PS2 5
#define FF_IDCT_MMI 5
#define FF_IDCT_ARM 7
#define FF_IDCT_ALTIVEC 8
#define FF_IDCT_SH4 9


+ 3
- 3
libavcodec/mips/Makefile View File

@@ -1,3 +1,3 @@
OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \
ps2/idct_mmi.o \
ps2/mpegvideo_mmi.o \
OBJS-$(HAVE_MMI) += mips/dsputil_mmi.o \
mips/idct_mmi.o \
mips/mpegvideo_mmi.o \

libavcodec/ps2/dsputil_mmi.c → libavcodec/mips/dsputil_mmi.c View File

@@ -153,7 +153,7 @@ void dsputil_init_mmi(DSPContext* c, AVCodecContext *avctx)
}

if (avctx->bits_per_raw_sample <= 8 &&
(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_PS2)) {
(idct_algo == FF_IDCT_AUTO || idct_algo == FF_IDCT_MMI)) {
c->idct_put= ff_mmi_idct_put;
c->idct_add= ff_mmi_idct_add;
c->idct = ff_mmi_idct;

libavcodec/ps2/idct_mmi.c → libavcodec/mips/idct_mmi.c View File


libavcodec/ps2/mmi.h → libavcodec/mips/mmi.h View File

@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_PS2_MMI_H
#define AVCODEC_PS2_MMI_H
#ifndef AVCODEC_MIPS_MMI_H
#define AVCODEC_MIPS_MMI_H

#include <stdint.h>

@@ -176,4 +176,4 @@ void ff_mmi_idct(DCTELEM *block);
#define pextlb(rs, rt, rd) \
__asm__ volatile ("pextlb " #rd ", " #rs ", " #rt )

#endif /* AVCODEC_PS2_MMI_H */
#endif /* AVCODEC_MIPS_MMI_H */

libavcodec/ps2/mpegvideo_mmi.c → libavcodec/mips/mpegvideo_mmi.c View File


+ 1
- 1
libavcodec/options.c View File

@@ -214,7 +214,7 @@ static const AVOption options[]={
{"simple", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_SIMPLE }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simplemmx", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_SIMPLEMMX }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"libmpeg2mmx", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_LIBMPEG2MMX }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"ps2", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_PS2 }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"mmi", NULL, 0, AV_OPT_TYPE_CONST, { .dbl = FF_IDCT_MMI }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"arm", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_ARM }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"altivec", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_ALTIVEC }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"sh4", NULL, 0, AV_OPT_TYPE_CONST, {.dbl = FF_IDCT_SH4 }, INT_MIN, INT_MAX, V|E|D, "idct"},


Loading…
Cancel
Save