summaryrefslogtreecommitdiff
path: root/dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-05-01 19:27:23 -0500
committertrav90 <travawine@protonmail.ch>2018-05-01 19:27:23 -0500
commitd9d04f073e5fb60f3c57e7a2d369d242e5be6e71 (patch)
treef37e02a88e84933f03a9ab035e4aa744f686aea4 /dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h
parent3b33952db2bb247e2ff511e38825f3b998629d0e (diff)
downloadpalemoon-gre-d9d04f073e5fb60f3c57e7a2d369d242e5be6e71.tar.gz
Add support for FFmpeg 4.0/libavcodec58
Diffstat (limited to 'dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h')
-rw-r--r--dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h b/dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h
new file mode 100644
index 000000000..2007ee561
--- /dev/null
+++ b/dom/media/platforms/ffmpeg/ffmpeg58/include/libavutil/macros.h
@@ -0,0 +1,50 @@
+/*
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * @ingroup lavu
+ * Utility Preprocessor macros
+ */
+
+#ifndef AVUTIL_MACROS_H
+#define AVUTIL_MACROS_H
+
+/**
+ * @addtogroup preproc_misc Preprocessor String Macros
+ *
+ * String manipulation macros
+ *
+ * @{
+ */
+
+#define AV_STRINGIFY(s) AV_TOSTRING(s)
+#define AV_TOSTRING(s) #s
+
+#define AV_GLUE(a, b) a ## b
+#define AV_JOIN(a, b) AV_GLUE(a, b)
+
+/**
+ * @}
+ */
+
+#define AV_PRAGMA(s) _Pragma(#s)
+
+#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1))
+
+#endif /* AVUTIL_MACROS_H */