mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
sparc: hpeldsp: Move vis half-pel assembly from dsputil to hpeldsp
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
278bd2054c
commit
78ce568e43
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
@ -1,2 +1,4 @@
|
||||
VIS-OBJS += sparc/dsputil_vis.o \
|
||||
sparc/simple_idct_vis.o \
|
||||
|
||||
VIS-OBJS-$(CONFIG_HPELDSP) += sparc/hpeldsp_vis.o
|
||||
|
File diff suppressed because it is too large
Load Diff
3524
libavcodec/sparc/hpeldsp_vis.c
Normal file
3524
libavcodec/sparc/hpeldsp_vis.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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…
Reference in New Issue
Block a user