mirror of https://github.com/FFmpeg/FFmpeg.git
parent
c1bb19e263
commit
27da9514c3
3 changed files with 46 additions and 0 deletions
@ -1,4 +1,5 @@ |
|||||||
OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_init.o \
|
OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_init.o \
|
||||||
riscv/audiodsp_rvf.o
|
riscv/audiodsp_rvf.o
|
||||||
|
RVV-OBJS-$(CONFIG_AUDIODSP) += riscv/audiodsp_rvv.o
|
||||||
OBJS-$(CONFIG_PIXBLOCKDSP) += riscv/pixblockdsp_init.o \
|
OBJS-$(CONFIG_PIXBLOCKDSP) += riscv/pixblockdsp_init.o \
|
||||||
riscv/pixblockdsp_rvi.o
|
riscv/pixblockdsp_rvi.o
|
||||||
|
@ -0,0 +1,36 @@ |
|||||||
|
/* |
||||||
|
* Copyright © 2022 Rémi Denis-Courmont. |
||||||
|
* |
||||||
|
* This file is part of FFmpeg. |
||||||
|
* |
||||||
|
* FFmpeg is free software; you can redistribute it and/or
|
||||||
|
* 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. |
||||||
|
* |
||||||
|
* FFmpeg is distributed in the hope that it will be useful, |
||||||
|
* 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 |
||||||
|
* License along with FFmpeg; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||||
|
*/ |
||||||
|
|
||||||
|
#include "libavutil/riscv/asm.S" |
||||||
|
|
||||||
|
func ff_vector_clip_int32_rvv, zve32x |
||||||
|
1: |
||||||
|
vsetvli t0, a4, e32, m1, ta, ma |
||||||
|
vle32.v v8, (a1) |
||||||
|
sub a4, a4, t0 |
||||||
|
vmax.vx v8, v8, a2 |
||||||
|
sh2add a1, t0, a1 |
||||||
|
vmin.vx v8, v8, a3 |
||||||
|
vse32.v v8, (a0) |
||||||
|
sh2add a0, t0, a0 |
||||||
|
bnez a4, 1b |
||||||
|
|
||||||
|
ret |
||||||
|
endfunc |
Loading…
Reference in new issue