Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-10-01 00:00:14 +0300
committerPaul B Mahol <onemda@gmail.com>2015-10-02 18:40:57 +0300
commit160556c9ad1662bf175f3c62c581834dadd3b52a (patch)
tree24dc20c298bf5a1af21258522d47d0082c4bd2b5 /libavfilter/maskedmerge.h
parentabaa12263e08ae7b2099f00fa4597ae6a86d7a9c (diff)
avfilter/vf_maskedmerge: add SIMD for maskedmerge with 8 bit depth input
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/maskedmerge.h')
-rw-r--r--libavfilter/maskedmerge.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libavfilter/maskedmerge.h b/libavfilter/maskedmerge.h
new file mode 100644
index 0000000000..b47a816c44
--- /dev/null
+++ b/libavfilter/maskedmerge.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2015 Paul B Mahol
+ *
+ * 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
+ */
+
+#include "avfilter.h"
+#include "framesync.h"
+
+typedef struct MaskedMergeContext {
+ const AVClass *class;
+ int width[4], height[4];
+ int nb_planes;
+ int planes;
+ int half, depth;
+ FFFrameSync fs;
+
+ void (*maskedmerge)(const uint8_t *bsrc, const uint8_t *osrc,
+ const uint8_t *msrc, uint8_t *dst,
+ ptrdiff_t blinesize, ptrdiff_t olinesize,
+ ptrdiff_t mlinesize, ptrdiff_t dlinesize,
+ int w, int h,
+ int half, int shift);
+} MaskedMergeContext;
+
+void ff_maskedmerge_init_x86(MaskedMergeContext *s);