1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00

configure: deprecate support for libnpp

This commit is contained in:
Timo Rothenpieler
2025-09-19 17:35:29 +02:00
parent a54d6b1d91
commit 994a368451
5 changed files with 13 additions and 2 deletions

8
configure vendored
View File

@@ -7190,9 +7190,13 @@ enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set
enabled libmpeghdec && require_pkg_config libmpeghdec "mpeghdec >= 3.0.0" mpeghdec/mpeghdecoder.h mpeghdecoder_init
enabled libmysofa && { check_pkg_config libmysofa libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine ||
require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }
enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif ||
enabled libnpp && { test_cpp_condition "$(cd "$source_path"; pwd)/libavfilter/version_major.h" FF_API_LIBNPP_SUPPORT ||
die "ERROR: libnpp support is removed in this version"; } &&
{ check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif ||
check_lib libnpp npp.h nppGetLibVersion -lnppi -lnppif -lnppc -lnppidei ||
die "ERROR: libnpp not found"; }
die "ERROR: libnpp not found"; } &&
{ check_func_headers "nppi.h" nppiYCbCr420_8u_P2P3R $libnpp_extralibs ||
die "ERROR: libnpp support is deprecated, version 13.0 and up are not supported"; }
enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
enabled libopencv && { check_headers opencv2/core/core_c.h &&

View File

@@ -37,5 +37,6 @@
#define FF_API_BUFFERSINK_OPTS (LIBAVFILTER_VERSION_MAJOR < 12)
#define FF_API_CONTEXT_PUBLIC (LIBAVFILTER_VERSION_MAJOR < 12)
#define FF_API_LIBNPP_SUPPORT (LIBAVFILTER_VERSION_MAJOR < 12)
#endif /* AVFILTER_VERSION_MAJOR_H */

View File

@@ -281,6 +281,8 @@ static av_cold int nppscale_init(AVFilterContext* ctx)
NPPScaleContext* scale = ctx->priv;
int i, ret;
av_log(ctx, AV_LOG_WARNING, "The libnpp based filters are deprecated.\n");
if (!strcmp(scale->format_str, "same")) {
scale->format = AV_PIX_FMT_NONE;
} else {

View File

@@ -53,6 +53,8 @@ static int nppsharpen_init(AVFilterContext* ctx)
{
NPPSharpenContext* s = ctx->priv;
av_log(ctx, AV_LOG_WARNING, "The libnpp based filters are deprecated.\n");
s->own_frame = av_frame_alloc();
if (!s->own_frame)
goto fail;

View File

@@ -85,6 +85,8 @@ static int npptranspose_init(AVFilterContext *ctx)
NPPTransposeContext *s = ctx->priv;
int i;
av_log(ctx, AV_LOG_WARNING, "The libnpp based filters are deprecated.\n");
for (i = 0; i < FF_ARRAY_ELEMS(s->stages); i++) {
s->stages[i].frame = av_frame_alloc();
if (!s->stages[i].frame)