swscale: [loongarch] Fix undeclared functions prob.

Compile with '--disable-lasx', ‘lumRangeFromJpeg_lasx’ undeclared.

Reviewed-by: 金波 <jinbo@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Shiyou Yin 2024-05-08 18:07:49 +08:00 committed by Michael Niedermayer
parent 544acfa2c0
commit 6b35fcacdb
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ av_cold void ff_sws_init_range_convert_loongarch(SwsContext *c)
}
}
}
#if HAVE_LASX
if (have_lasx(cpu_flags)) {
if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) {
if (c->dstBpc <= 14) {
@ -54,6 +55,7 @@ av_cold void ff_sws_init_range_convert_loongarch(SwsContext *c)
}
}
}
#endif // #if HAVE_LASX
}
av_cold void ff_sws_init_swscale_loongarch(SwsContext *c)