From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: [FFmpeg-devel] [PATCH] libpostproc/postprocess: Fix deprecating PP_CPU_CAPS_3DNO Date: Wed, 16 Apr 2025 14:07:25 +0200 Message-ID: <GV1P250MB073743C64B8FA124F2E333058FBD2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> (raw) [-- Attachment #1: Type: text/plain, Size: 27 bytes --] Patch attached. - Andreas [-- Attachment #2: 0001-libpostproc-postprocess-Fix-deprecating-PP_CPU_CAPS_.patch --] [-- Type: text/x-patch, Size: 2640 bytes --] From 3f7154f2d5fce740d6180c10398f7a1e6ec299d9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Wed, 16 Apr 2025 14:02:47 +0200 Subject: [PATCH] libpostproc/postprocess: Fix deprecating PP_CPU_CAPS_3DNOW The wrong version of the patch has been applied: a) Use the FF_API_ prefix for the deprecation macro. b) Put it into version_major.h, so that it is automatically included into postprocess.h, fixing -Wundef warnings. c) Add APIchanges entry and minor version bump. d) Add the FF_API boilerplate in version_major.h. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- doc/APIchanges | 3 +++ libpostproc/postprocess.h | 2 +- libpostproc/version.h | 4 +--- libpostproc/version_major.h | 2 ++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 65bf5a9419..2629f7f014 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28 API changes, most recent first: +2025-04-16 - c818c67991 - libpostproc 59.01.100 - postprocess.h + Deprecate PP_CPU_CAPS_3DNOW. + 2025-04-07 - 19e9a203b7 - lavu 60.01.100 - dict.h Add AV_DICT_DEDUP. diff --git a/libpostproc/postprocess.h b/libpostproc/postprocess.h index 7010c2b51b..d2adb6ccad 100644 --- a/libpostproc/postprocess.h +++ b/libpostproc/postprocess.h @@ -87,7 +87,7 @@ void pp_free_context(pp_context *ppContext); #define PP_CPU_CAPS_MMX 0x80000000 #define PP_CPU_CAPS_MMX2 0x20000000 -#if PP_AMD_3DNOW +#if FF_API_PP_AMD_3DNOW #define PP_CPU_CAPS_3DNOW 0x40000000 #endif #define PP_CPU_CAPS_ALTIVEC 0x10000000 diff --git a/libpostproc/version.h b/libpostproc/version.h index 5a272630bf..8294f007bd 100644 --- a/libpostproc/version.h +++ b/libpostproc/version.h @@ -30,7 +30,7 @@ #include "version_major.h" -#define LIBPOSTPROC_VERSION_MINOR 0 +#define LIBPOSTPROC_VERSION_MINOR 1 #define LIBPOSTPROC_VERSION_MICRO 100 #define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \ @@ -43,6 +43,4 @@ #define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION) -#define PP_AMD_3DNOW (LIBPOSTPROC_VERSION_MAJOR < 60) - #endif /* POSTPROC_VERSION_H */ diff --git a/libpostproc/version_major.h b/libpostproc/version_major.h index b40b251a73..1e0825eab1 100644 --- a/libpostproc/version_major.h +++ b/libpostproc/version_major.h @@ -28,4 +28,6 @@ #define LIBPOSTPROC_VERSION_MAJOR 59 +#define FF_API_PP_AMD_3DNOW (LIBPOSTPROC_VERSION_MAJOR < 60) + #endif /* POSTPROC_VERSION_MAJOR_H */ -- 2.45.2 [-- Attachment #3: Type: text/plain, Size: 251 bytes --] _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next reply other threads:[~2025-04-16 12:07 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-04-16 12:07 Andreas Rheinhardt [this message] 2025-04-16 12:12 ` Andreas Rheinhardt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=GV1P250MB073743C64B8FA124F2E333058FBD2@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM \ --to=andreas.rheinhardt@outlook.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git