summaryrefslogtreecommitdiff
path: root/libavcodec/exrdsp.h
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2017-09-17 21:59:41 +0200
committerJames Almer <jamrial@gmail.com>2017-09-17 17:53:57 -0300
commit9b8c1224d7e1804b0b750de11e6a8c4648f1e115 (patch)
treebadd352b0822660a1172da30088ad545a530c0c5 /libavcodec/exrdsp.h
parent08ec828de9663e46fbfe8feef5c15253f841c687 (diff)
libavcodec/exr : add X86 SIMD for reorder_pixels
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/exrdsp.h')
-rw-r--r--libavcodec/exrdsp.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libavcodec/exrdsp.h b/libavcodec/exrdsp.h
new file mode 100644
index 0000000000..09a76a518e
--- /dev/null
+++ b/libavcodec/exrdsp.h
@@ -0,0 +1,32 @@
+/*
+ * 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
+ */
+
+#ifndef AVCODEC_EXRDSP_H
+#define AVCODEC_EXRDSP_H
+
+#include <stdint.h>
+#include "libavutil/common.h"
+
+typedef struct ExrDSPContext {
+ void (*reorder_pixels)(uint8_t *src, uint8_t *dst, ptrdiff_t size);
+} ExrDSPContext;
+
+void ff_exrdsp_init(ExrDSPContext *c);
+void ff_exrdsp_init_x86(ExrDSPContext *c);
+
+#endif /* AVCODEC_EXRDSP_H */