This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 8b93c94f47 avutil/hwcontext_amf: Add AMF_IFACE_CALL macro
8b93c94f47 is described below
commit 8b93c94f474664bb7a0ef801ef33acf4cc802217
Author: Dmitrii Gershenkop <[email protected]>
AuthorDate: Thu Mar 26 16:35:12 2026 +0100
Commit: ArazIusubov <[email protected]>
CommitDate: Tue Mar 31 11:33:00 2026 +0000
avutil/hwcontext_amf: Add AMF_IFACE_CALL macro
Using AMF interfaces in C can be cumbersome and visually difficult to
process in some cases: i.e.: object->function(object, args). To improve code
readability, a new macro is added. This commit is instrumental for future AMF
integration refactoring.
---
libavutil/hwcontext_amf_internal.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/hwcontext_amf_internal.h
b/libavutil/hwcontext_amf_internal.h
index 79e7556bf5..06d67246c0 100644
--- a/libavutil/hwcontext_amf_internal.h
+++ b/libavutil/hwcontext_amf_internal.h
@@ -40,5 +40,6 @@
#define AMF_TIME_BASE_Q (AVRational){1, AMF_SECOND}
+#define AMF_IFACE_CALL(this, function, ...) ((this)->pVtbl->function((this),
##__VA_ARGS__))
#endif /* AVUTIL_HWCONTEXT_AMF_INTERNAL_H */
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]