FFmpeg
libavcodec
aarch64
dcadsp_init_aarch64.c
Go to the documentation of this file.
1
/*
2
* AArch64 NEON optimised DCA DSP functions
3
* Copyright (c) 2026 Jeongkeun Kim <variety0724@gmail.com>
4
*
5
* This file is part of FFmpeg.
6
*
7
* FFmpeg is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* FFmpeg is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#include "config.h"
23
24
#include "
libavutil/attributes.h
"
25
#include "
libavutil/cpu.h
"
26
#include "
libavutil/aarch64/cpu.h
"
27
#include "
libavcodec/dcadsp.h
"
28
29
void
ff_lfe_fir0_float_neon
(
float
*pcm_samples,
const
int32_t
*lfe_samples,
30
const
float
*filter_coeff, ptrdiff_t npcmblocks);
31
void
ff_lfe_fir1_float_neon
(
float
*pcm_samples,
const
int32_t
*lfe_samples,
32
const
float
*filter_coeff, ptrdiff_t npcmblocks);
33
34
av_cold
void
ff_dcadsp_init_aarch64
(
DCADSPContext
*
s
)
35
{
36
int
cpu_flags
=
av_get_cpu_flags
();
37
38
if
(
have_neon
(
cpu_flags
)) {
39
s
->lfe_fir_float[0] =
ff_lfe_fir0_float_neon
;
40
s
->lfe_fir_float[1] =
ff_lfe_fir1_float_neon
;
41
}
42
}
ff_lfe_fir1_float_neon
void ff_lfe_fir1_float_neon(float *pcm_samples, const int32_t *lfe_samples, const float *filter_coeff, ptrdiff_t npcmblocks)
av_get_cpu_flags
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition:
cpu.c:109
cpu_flags
static atomic_int cpu_flags
Definition:
cpu.c:56
ff_lfe_fir0_float_neon
void ff_lfe_fir0_float_neon(float *pcm_samples, const int32_t *lfe_samples, const float *filter_coeff, ptrdiff_t npcmblocks)
av_cold
#define av_cold
Definition:
attributes.h:119
s
#define s(width, name)
Definition:
cbs_vp9.c:198
DCADSPContext
Definition:
dcadsp.h:30
cpu.h
have_neon
#define have_neon(flags)
Definition:
cpu.h:26
attributes.h
dcadsp.h
int32_t
int32_t
Definition:
audioconvert.c:56
cpu.h
ff_dcadsp_init_aarch64
av_cold void ff_dcadsp_init_aarch64(DCADSPContext *s)
Definition:
dcadsp_init_aarch64.c:34
Generated on Sun May 3 2026 19:21:55 for FFmpeg by
1.8.17