Browse Source

sparc: hpeldsp: Move vis half-pel assembly from dsputil to hpeldsp

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.0
Ronald S. Bultje Martin Storsjö 12 years ago
parent
commit
78ce568e43
6 changed files with 3544 additions and 3511 deletions
  1. +2
    -0
      libavcodec/hpeldsp.c
  2. +1
    -0
      libavcodec/hpeldsp.h
  3. +2
    -0
      libavcodec/sparc/Makefile
  4. +4
    -3511
      libavcodec/sparc/dsputil_vis.c
  5. +3524
    -0
      libavcodec/sparc/hpeldsp_vis.c
  6. +11
    -0
      libavcodec/sparc/vis.h

+ 2
- 0
libavcodec/hpeldsp.c View File

@@ -62,6 +62,8 @@ av_cold void ff_hpeldsp_init(HpelDSPContext *c, int flags)
ff_hpeldsp_init_ppc(c, flags);
if (ARCH_SH4)
ff_hpeldsp_init_sh4(c, flags);
if (HAVE_VIS)
ff_hpeldsp_init_vis(c, flags);
if (ARCH_X86)
ff_hpeldsp_init_x86(c, flags);
}

+ 1
- 0
libavcodec/hpeldsp.h View File

@@ -98,6 +98,7 @@ void ff_hpeldsp_init_arm(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_bfin(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_ppc(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_sh4(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_vis(HpelDSPContext *c, int flags);
void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags);

#endif /* AVCODEC_HPELDSP_H */

+ 2
- 0
libavcodec/sparc/Makefile View File

@@ -1,2 +1,4 @@
VIS-OBJS += sparc/dsputil_vis.o \
sparc/simple_idct_vis.o \

VIS-OBJS-$(CONFIG_HPELDSP) += sparc/hpeldsp_vis.o

+ 4
- 3511
libavcodec/sparc/dsputil_vis.c
File diff suppressed because it is too large
View File


+ 3524
- 0
libavcodec/sparc/hpeldsp_vis.c
File diff suppressed because it is too large
View File


+ 11
- 0
libavcodec/sparc/vis.h View File

@@ -42,6 +42,17 @@
#ifndef AVCODEC_SPARC_VIS_H
#define AVCODEC_SPARC_VIS_H

#define ACCEL_SPARC_VIS 1
#define ACCEL_SPARC_VIS2 2

static inline int vis_level(void)
{
int accel = 0;
accel |= ACCEL_SPARC_VIS;
accel |= ACCEL_SPARC_VIS2;
return accel;
}

#define vis_opc_base ((0x1 << 31) | (0x36 << 19))
#define vis_opf(X) ((X) << 5)
#define vis_sreg(X) (X)


Loading…
Cancel
Save