2001-08-13 21:38:25 +00:00
|
|
|
/*
|
2008-12-17 00:54:54 +00:00
|
|
|
* ARM optimized DSP utils
|
2009-01-19 15:46:40 +00:00
|
|
|
* Copyright (c) 2001 Lionel Ulmer
|
2001-08-13 21:38:25 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2002-05-25 22:45:33 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 15:30:46 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2001-08-13 21:38:25 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2001-08-13 21:38:25 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2002-05-25 22:45:33 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2001-08-13 21:38:25 +00:00
|
|
|
*
|
2002-05-25 22:45:33 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2006-10-07 15:30:46 +00:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-01-12 22:43:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2001-08-13 21:38:25 +00:00
|
|
|
*/
|
|
|
|
|
2014-02-12 20:28:44 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2013-02-01 09:31:59 +00:00
|
|
|
#include "libavutil/attributes.h"
|
2014-02-12 20:28:44 +00:00
|
|
|
#include "libavutil/cpu.h"
|
2012-04-21 14:31:10 +00:00
|
|
|
#include "libavutil/arm/cpu.h"
|
2014-02-12 20:28:44 +00:00
|
|
|
#include "libavcodec/avcodec.h"
|
|
|
|
#include "libavcodec/dsputil.h"
|
2009-10-04 13:12:55 +00:00
|
|
|
#include "dsputil_arm.h"
|
2001-08-13 21:38:25 +00:00
|
|
|
|
2013-12-30 11:09:03 +00:00
|
|
|
av_cold void ff_dsputil_init_arm(DSPContext *c, AVCodecContext *avctx,
|
|
|
|
unsigned high_bit_depth)
|
2001-08-13 21:38:25 +00:00
|
|
|
{
|
2012-04-21 14:31:10 +00:00
|
|
|
int cpu_flags = av_get_cpu_flags();
|
2011-03-29 15:48:59 +00:00
|
|
|
|
2014-01-30 14:03:55 +00:00
|
|
|
if (have_armv6(cpu_flags))
|
2013-12-30 11:09:03 +00:00
|
|
|
ff_dsputil_init_armv6(c, avctx, high_bit_depth);
|
2001-08-13 21:38:25 +00:00
|
|
|
}
|