summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-10-19 09:04:19 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-10-19 09:04:39 -0400
commitfd904ca54faedc013a0c707dd74bdacffb9536db (patch)
tree5a7cc4a6edaaeeccc8084e48e18ed013a6121bd6
parentdd8b1ad3f0f6dd400213b14220342b11c59c5776 (diff)
blt2blt
-rw-r--r--pixman/Makefile.sources1
-rw-r--r--pixman/pixman-blt.c40
-rw-r--r--pixman/pixman.h32
3 files changed, 72 insertions, 1 deletions
diff --git a/pixman/Makefile.sources b/pixman/Makefile.sources
index 5ca048ab..9c705a68 100644
--- a/pixman/Makefile.sources
+++ b/pixman/Makefile.sources
@@ -2,6 +2,7 @@ libpixman_sources = \
fbblt.c \
fbrop.h \
pixman.c \
+ pixman-blt.c \
pixman-access.c \
pixman-access-accessors.c \
pixman-bits-image.c \
diff --git a/pixman/pixman-blt.c b/pixman/pixman-blt.c
new file mode 100644
index 00000000..04afe25e
--- /dev/null
+++ b/pixman/pixman-blt.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright © 2011 Red Hat, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Red Hat not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. Red Hat makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ *
+ * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ *
+ * Author: Soren Sandmann <soren.sandmann@gmail.com>
+ */
+
+#include <pixman-private.h>
+
+PIXMAN_EXPORT void
+pixman_blt (pixman_raster_op_t op,
+ pixman_image_t * src,
+ pixman_image_t * dst,
+ int32_t src_x,
+ int32_t src_y,
+ int32_t dst_x,
+ int32_t dst_y,
+ int32_t width,
+ int32_t height)
+{
+
+}
diff --git a/pixman/pixman.h b/pixman/pixman.h
index eed5c69e..6eeccabb 100644
--- a/pixman/pixman.h
+++ b/pixman/pixman.h
@@ -349,7 +349,7 @@ typedef enum
PIXMAN_OP_HSL_HUE = 0x3b,
PIXMAN_OP_HSL_SATURATION = 0x3c,
PIXMAN_OP_HSL_COLOR = 0x3d,
- PIXMAN_OP_HSL_LUMINOSITY = 0x3e
+ PIXMAN_OP_HSL_LUMINOSITY = 0x3e,
#ifdef PIXMAN_USE_INTERNAL_API
,
@@ -827,6 +827,36 @@ pixman_bool_t pixman_image_fill_boxes (pixman_op_t
int n_boxes,
const pixman_box32_t *boxes);
+typedef enum
+{
+ PIXMAN_OP_RASTER_CLEAR = 0x40,
+ PIXMAN_OP_RASTER_AND = 0x41,
+ PIXMAN_OP_RASTER_AND_REVERSE = 0x42,
+ PIXMAN_OP_RASTER_COPY = 0x43,
+ PIXMAN_OP_RASTER_AND_INVERTED = 0x44,
+ PIXMAN_OP_RASTER_NOOP = 0x45,
+ PIXMAN_OP_RASTER_XOR = 0x46,
+ PIXMAN_OP_RASTER_OR = 0x47,
+ PIXMAN_OP_RASTER_NOR = 0x48,
+ PIXMAN_OP_RASTER_EQUIV = 0x49,
+ PIXMAN_OP_RASTER_INVERT = 0x4a,
+ PIXMAN_OP_RASTER_XOR_REVERSE = 0x4b,
+ PIXMAN_OP_RASTER_COPY_INVERTED = 0x4c,
+ PIXMAN_OP_RASTER_OR_INVERTED = 0x4d,
+ PIXMAN_OP_RASTER_NAND = 0x4e,
+ PIXMAN_OP_RASTER_SET = 0x4f,
+} pixman_raster_op_t;
+
+void pixman_blt (pixman_raster_op_t op,
+ pixman_image_t * src,
+ pixman_image_t * dst,
+ int32_t src_x,
+ int32_t src_y,
+ int32_t dst_x,
+ int32_t dst_y,
+ int32_t width,
+ int32_t height);
+
/* Composite */
pixman_bool_t pixman_compute_composite_region (pixman_region16_t *region,
pixman_image_t *src_image,