* [FFmpeg-devel] [PATCH] libpostproc/postprocess: Fix deprecating PP_CPU_CAPS_3DNO
@ 2025-04-16 12:07 Andreas Rheinhardt
2025-04-16 12:12 ` Andreas Rheinhardt
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Rheinhardt @ 2025-04-16 12:07 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- 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".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [FFmpeg-devel] [PATCH] libpostproc/postprocess: Fix deprecating PP_CPU_CAPS_3DNO
2025-04-16 12:07 [FFmpeg-devel] [PATCH] libpostproc/postprocess: Fix deprecating PP_CPU_CAPS_3DNO Andreas Rheinhardt
@ 2025-04-16 12:12 ` Andreas Rheinhardt
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Rheinhardt @ 2025-04-16 12:12 UTC (permalink / raw)
To: ffmpeg-devel
Andreas Rheinhardt:
> Patch attached.
>
> - Andreas
>
Ignore this, it has already been fixed in master.
- Andreas
_______________________________________________
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".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-16 12:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-16 12:07 [FFmpeg-devel] [PATCH] libpostproc/postprocess: Fix deprecating PP_CPU_CAPS_3DNO Andreas Rheinhardt
2025-04-16 12:12 ` Andreas Rheinhardt
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