FFmpeg: libavcodec/riscv/flacdsp_init.c Source File
Go to the documentation of this file. 1 /*
2 * Copyright © 2023 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 "config.h"
22
27
29 int pred_order,
int qlevel,
int len);
31 int pred_order,
int qlevel,
int len);
33 int pred_order,
int qlevel,
int len);
35 int pred_order,
int qlevel,
int len);
66
69 {
70 #if HAVE_RVV
72
74 int vlenb = ff_get_rv_vlenb();
75
76 if (vlenb >= 16) {
78
79 # if (__riscv_xlen >= 64)
81 if (vlenb > 16) {
84 } else
86 }
87 # endif
88 }
89
91
94
95 # if (__riscv_xlen >= 64)
96 switch (fmt) {
99 case 2:
101 break;
102 case 4:
104 break;
105 case 6:
107 break;
108 case 8:
110 break;
111 }
115 break;
118 case 2:
120 break;
121 case 4:
123 break;
124 case 6:
126 break;
127 case 8:
129 break;
130 }
134 break;
135 }
136 # endif
137 }
138 #endif
139 }
void ff_flac_decorrelate_indep4_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define AV_CPU_FLAG_RVB
B (bit manipulations)
void ff_flac_decorrelate_indep2_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_ls_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_indep8_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_indep6_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_lpc32_rvv(int32_t *decoded, const int coeffs[32], int pred_order, int qlevel, int len)
void ff_flac_decorrelate_ms_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_lpc32_rvv_simple(int32_t *decoded, const int coeffs[32], int pred_order, int qlevel, int len)
av_cold void ff_flacdsp_init_riscv(FLACDSPContext *c, enum AVSampleFormat fmt, int channels)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
void ff_flac_decorrelate_indep8_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_lpc16_rvv(int32_t *decoded, const int coeffs[32], int pred_order, int qlevel, int len)
static int shift(int a, int b)
void ff_flac_wasted33_rvv(int64_t *, const int32_t *, int shift, int len)
AVSampleFormat
Audio sample formats.
#define AV_CPU_FLAG_RVV_I32
Vectors of 8/16/32-bit int's */.
@ AV_SAMPLE_FMT_S16
signed 16 bits
void ff_flac_wasted32_rvv(int32_t *, int shift, int len)
void ff_flac_decorrelate_ls_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_indep6_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_rs_32_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_indep4_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_lpc33_rvv(int64_t *, const int32_t *, const int coeffs[32], int pred_order, int qlevel, int len)
void ff_flac_decorrelate_rs_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
#define flags(name, subs,...)
#define AV_CPU_FLAG_RVV_I64
Vectors of 64-bit int's */.
@ AV_SAMPLE_FMT_S32
signed 32 bits
void ff_flac_decorrelate_ms_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
void ff_flac_decorrelate_indep2_16_rvv(uint8_t **out, int32_t **in, int channels, int len, int shift)
Generated on Fri Aug 22 2025 13:58:48 for FFmpeg by
doxygen
1.8.17