mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-28 01:54:00 +08:00
mips: Add dependencies on HAVE_INLINE_ASM
Add dependencies on HAVE_INLINE_ASM for files and parts of code where it is necessary. Signed-off-by: Nedeljko Babic <nbabic@mips.com> Reviewed-by: Vitor Sessak <vitor1001@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
2d71f31df2
commit
304a1ed1e8
@@ -51,6 +51,7 @@
|
||||
#include "libavcodec/avcodec.h"
|
||||
#include "libavcodec/fmtconvert.h"
|
||||
|
||||
#if HAVE_INLINE_ASM
|
||||
#if HAVE_MIPSDSPR1
|
||||
static void float_to_int16_mips(int16_t *dst, const float *src, long len)
|
||||
{
|
||||
@@ -327,12 +328,15 @@ static void int32_to_float_fmul_scalar_mips(float *dst, const int *src,
|
||||
: "memory"
|
||||
);
|
||||
}
|
||||
#endif /* HAVE_INLINE_ASM */
|
||||
|
||||
av_cold void ff_fmt_convert_init_mips(FmtConvertContext *c)
|
||||
{
|
||||
#if HAVE_INLINE_ASM
|
||||
#if HAVE_MIPSDSPR1
|
||||
c->float_to_int16_interleave = float_to_int16_interleave_mips;
|
||||
c->float_to_int16 = float_to_int16_mips;
|
||||
#endif
|
||||
c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_mips;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user