mirror of https://github.com/FFmpeg/FFmpeg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
15 years ago
|
/*
|
||
|
* Copyright (c) 2010 Mans Rullgard <mans@mansr.com>
|
||
|
*
|
||
14 years ago
|
* This file is part of Libav.
|
||
15 years ago
|
*
|
||
14 years ago
|
* Libav is free software; you can redistribute it and/or
|
||
15 years ago
|
* 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.
|
||
|
*
|
||
14 years ago
|
* Libav is distributed in the hope that it will be useful,
|
||
15 years ago
|
* 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
|
||
14 years ago
|
* License along with Libav; if not, write to the Free Software
|
||
15 years ago
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
*/
|
||
|
|
||
|
#include <stdint.h>
|
||
13 years ago
|
|
||
12 years ago
|
#include "libavutil/attributes.h"
|
||
13 years ago
|
#include "libavutil/arm/cpu.h"
|
||
15 years ago
|
#include "libavcodec/avcodec.h"
|
||
|
#include "libavcodec/vp56dsp.h"
|
||
|
|
||
|
void ff_vp6_edge_filter_hor_neon(uint8_t *yuv, int stride, int t);
|
||
|
void ff_vp6_edge_filter_ver_neon(uint8_t *yuv, int stride, int t);
|
||
|
|
||
12 years ago
|
av_cold void ff_vp6dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec)
|
||
15 years ago
|
{
|
||
13 years ago
|
int cpu_flags = av_get_cpu_flags();
|
||
|
|
||
12 years ago
|
if (have_neon(cpu_flags)) {
|
||
15 years ago
|
s->edge_filter_hor = ff_vp6_edge_filter_hor_neon;
|
||
|
s->edge_filter_ver = ff_vp6_edge_filter_ver_neon;
|
||
|
}
|
||
|
}
|