[FFmpeg-devel] [PATCH v2 3/4] mips: port optimizations to mips n64

James Almer jamrial at gmail.com
Sat Mar 7 06:47:51 CET 2015


On 05/03/15 2:40 PM, James Cowgill wrote:
> diff --git a/libavutil/mips/asmdefs.h b/libavutil/mips/asmdefs.h
> new file mode 100644
> index 0000000..4d2922c
> --- /dev/null
> +++ b/libavutil/mips/asmdefs.h
> @@ -0,0 +1,48 @@
> +/*
> + * Copyright (c) 2015 Imagination Technologies Ltd
> + *
> + * This file is part of FFmpeg.
> + *
> + * FFmpeg is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public
> + * License as published by the Free Software Foundation; either
> + * version 2.1 of the License, or (at your option) any later version.
> + *
> + * FFmpeg is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with FFmpeg; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +
> +/**
> + * @file
> + * MIPS assembly defines from sys/asm.h but rewritten for use with C inline
> + * assembly (rather than from within .s files).
> + */
> +
> +#ifndef AVCODEC_MIPS_ASMDEFS_H
> +#define AVCODEC_MIPS_ASMDEFS_H
> +
> +#include <sgidefs.h>
> +
> +#if _MIPS_SIM == _ABI64

This broke compilation with Android NDK r8 (Which apparently doesn't support mips 64 bits).
http://fate.ffmpeg.org/report.cgi?time=20150307052927&slot=mipsel-android-gcc-4.4

CC	libavutil/mips/float_dsp_mips.o
mipsel-linux-android-gcc-4.4.3: unrecognized option '-pthreads'
In file included from /home/fate/fate/src/libavcodec/mips/aacdec_mips.h:61,
                 from /home/fate/fate/src/libavcodec/aacdec.c:113:
/home/fate/fate/src/libavutil/mips/asmdefs.h:30:21: error: sgidefs.h: No such file or directory
/home/fate/fate/src/libavutil/mips/asmdefs.h:32:18: warning: "_ABI64" is not defined
make: *** [libavcodec/aacdec.o] Error 1

The -pthreads warning is unrelated related, but could also be dealt with.



More information about the ffmpeg-devel mailing list