[FFmpeg-devel] [PATCH] lavc/huffyuvdsp: R-V V add_int16

Rémi Denis-Courmont remi at remlab.net
Sat Oct 28 16:58:20 EEST 2023


Le lauantaina 28. lokakuuta 2023, 16.56.40 EEST Rémi Denis-Courmont a écrit :
> +#include "config.h"
> +#include "libavutil/attributes.h"
> +#include "libavutil/cpu.h"
> +#include "libavcodec/huffyuvdsp.h"
> +
> +void ff_add_int16_rvv(uint16_t *dst, const uint16_t *src, unsigned m, int
> w); +
> +av_cold void ff_huffyuvdsp_init_riscv(HuffYUVDSPContext *c,
> +                                      enum AVPixelFormat pix_fmt)
> +{
> +#if HAVE_RVV
> +    int flags = av_get_cpu_flags();
> +
> +    if (flags & AV_CPU_FLAG_RVV_I32)

Missing Zba check.

> +        c->add_int16 = ff_add_int16_rvv;
> +#endif
> +}

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the ffmpeg-devel mailing list