summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-09-23 09:34:05 +0200
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-11-20 20:23:57 +0100
commitaa4bb6684aa599706937f11a7500ae273366360a (patch)
tree706f803fdadee98fcfe28a8a9480a1df7294394c
parent8fb855faa8e9d5c50277b5194ea99bf081ca6a9b (diff)
Remove leftover macros from old YUV code
-rw-r--r--pixman/pixman-access.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/pixman/pixman-access.c b/pixman/pixman-access.c
index 7dceee94..3da53040 100644
--- a/pixman/pixman-access.c
+++ b/pixman/pixman-access.c
@@ -54,38 +54,6 @@
#define RGB24_TO_ENTRY_Y(mif,rgb24) \
((mif)->ent[CONVERT_RGB24_TO_Y15 (rgb24)])
-/*
- * YV12 setup and access macros
- */
-
-#define YV12_SETUP(image) \
- bits_image_t *__bits_image = (bits_image_t *)image; \
- uint32_t *bits = __bits_image->bits; \
- int stride = __bits_image->rowstride; \
- int offset0 = stride < 0 ? \
- ((-stride) >> 1) * ((__bits_image->height - 1) >> 1) - stride : \
- stride * __bits_image->height; \
- int offset1 = stride < 0 ? \
- offset0 + ((-stride) >> 1) * ((__bits_image->height) >> 1) : \
- offset0 + (offset0 >> 2)
-
-/* Note no trailing semicolon on the above macro; if it's there, then
- * the typical usage of YV12_SETUP(image); will have an extra trailing ;
- * that some compilers will interpret as a statement -- and then any further
- * variable declarations will cause an error.
- */
-
-#define YV12_Y(line) \
- ((uint8_t *) ((bits) + (stride) * (line)))
-
-#define YV12_U(line) \
- ((uint8_t *) ((bits) + offset1 + \
- ((stride) >> 1) * ((line) >> 1)))
-
-#define YV12_V(line) \
- ((uint8_t *) ((bits) + offset0 + \
- ((stride) >> 1) * ((line) >> 1)))
-
/********************************** Fetch ************************************/
static void