FFmpeg
Loading...
Searching...
No Matches
float_dsp_init.c
Go to the documentation of this file.
1/*
2 * Copyright © 2022 Rémi Denis-Courmont.
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#include <stdint.h>
22
23#include "config.h"
25#include "libavutil/cpu.h"
26#include "libavutil/float_dsp.h"
27
28void ff_vector_fmul_rvv(float *dst, const float *src0, const float *src1,
29 int len);
30void ff_vector_fmac_scalar_rvv(float *dst, const float *src, float mul,
31 int len);
32void ff_vector_fmul_scalar_rvv(float *dst, const float *src, float mul,
33 int len);
34void ff_vector_fmul_window_rvv(float *dst, const float *src0,
35 const float *src1, const float *win, int len);
36void ff_vector_fmul_add_rvv(float *dst, const float *src0, const float *src1,
37 const float *src2, int len);
38void ff_vector_fmul_reverse_rvv(float *dst, const float *src0,
39 const float *src1, int len);
40void ff_butterflies_float_rvv(float *v1, float *v2, int len);
41float ff_scalarproduct_float_rvv(const float *v1, const float *v2, int len);
42
43void ff_vector_dmul_rvv(double *dst, const double *src0, const double *src1,
44 int len);
45void ff_vector_dmac_scalar_rvv(double *dst, const double *src, double mul,
46 int len);
47void ff_vector_dmul_scalar_rvv(double *dst, const double *src, double mul,
48 int len);
49double ff_scalarproduct_double_rvv(const double *v1, const double *v2,
50 size_t len);
51
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
static float win(SuperEqualizerContext *s, float n, int N)
#define flags(name, subs,...)
Definition cbs_h264.c:74
const pixel * src2
Macro definitions for various function/variable attributes.
#define av_cold
Definition attributes.h:117
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition cpu.c:109
#define AV_CPU_FLAG_RVB
B (bit manipulations)
Definition cpu.h:104
#define AV_CPU_FLAG_RVV_F32
Vectors of float's *‍/.
Definition cpu.h:98
#define AV_CPU_FLAG_RVV_F64
Vectors of double's.
Definition cpu.h:100
void ff_vector_dmul_scalar_rvv(double *dst, const double *src, double mul, int len)
void ff_vector_fmac_scalar_rvv(float *dst, const float *src, float mul, int len)
double ff_scalarproduct_double_rvv(const double *v1, const double *v2, size_t len)
void ff_vector_fmul_window_rvv(float *dst, const float *src0, const float *src1, const float *win, int len)
void ff_butterflies_float_rvv(float *v1, float *v2, int len)
void ff_vector_dmac_scalar_rvv(double *dst, const double *src, double mul, int len)
void ff_vector_fmul_rvv(float *dst, const float *src0, const float *src1, int len)
void ff_vector_dmul_rvv(double *dst, const double *src0, const double *src1, int len)
av_cold void ff_float_dsp_init_riscv(AVFloatDSPContext *fdsp)
float ff_scalarproduct_float_rvv(const float *v1, const float *v2, int len)
void ff_vector_fmul_reverse_rvv(float *dst, const float *src0, const float *src1, int len)
void ff_vector_fmul_scalar_rvv(float *dst, const float *src, float mul, int len)
void ff_vector_fmul_add_rvv(float *dst, const float *src0, const float *src1, const float *src2, int len)
void(* vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len)
Calculate the entry wise product of two vectors of floats, and store the result in a vector of floats...
Definition float_dsp.h:154
void(* vector_dmul_scalar)(double *dst, const double *src, double mul, int len)
Multiply a vector of double by a scalar double.
Definition float_dsp.h:100
void(* vector_fmul_add)(float *dst, const float *src0, const float *src1, const float *src2, int len)
Calculate the entry wise product of two vectors of floats, add a third vector of floats and store the...
Definition float_dsp.h:137
void(* vector_dmac_scalar)(double *dst, const double *src, double mul, int len)
Multiply a vector of doubles by a scalar double and add to destination vector.
Definition float_dsp.h:70
float(* scalarproduct_float)(const float *v1, const float *v2, int len)
Calculate the scalar product of two vectors of floats.
Definition float_dsp.h:175
void(* vector_fmul_scalar)(float *dst, const float *src, float mul, int len)
Multiply a vector of floats by a scalar float.
Definition float_dsp.h:85
void(* butterflies_float)(float *restrict v1, float *restrict v2, int len)
Calculate the sum and difference of two vectors of floats.
Definition float_dsp.h:164
void(* vector_dmul)(double *dst, const double *src0, const double *src1, int len)
Calculate the entry wise product of two vectors of doubles and store the result in a vector of double...
Definition float_dsp.h:190
void(* vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, int len)
Overlap/add with window function.
Definition float_dsp.h:119
void(* vector_fmul)(float *dst, const float *src0, const float *src1, int len)
Calculate the entry wise product of two vectors of floats and store the result in a vector of floats.
Definition float_dsp.h:38
double(* scalarproduct_double)(const double *v1, const double *v2, size_t len)
Calculate the scalar product of two vectors of doubles.
Definition float_dsp.h:205
void(* vector_fmac_scalar)(float *dst, const float *src, float mul, int len)
Multiply a vector of floats by a scalar float and add to destination vector.
Definition float_dsp.h:54
#define src1
Definition h264pred.c:141
#define src0
Definition h264pred.c:140
#define src
Definition vp8dsp.c:248
int len