summaryrefslogtreecommitdiff
path: root/src/video_out/alphablend.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-03 06:04:54 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-03 06:04:54 +0000
commite3fdbd0a8f1f7d721d0fb565cfc16795b813a8f6 (patch)
tree057953e8868290fb4d565892f1d0d83304e2ddc3 /src/video_out/alphablend.c
parenteaeb9e5c187d730e1666862c33234fecf4642bda (diff)
downloadxine-lib-e3fdbd0a8f1f7d721d0fb565cfc16795b813a8f6.tar.gz
xine-lib-e3fdbd0a8f1f7d721d0fb565cfc16795b813a8f6.tar.bz2
DTS debug messages.
blend_rgb16 changes. <- Need testing further. CVS patchset: 2773 CVS date: 2002/10/03 06:04:54
Diffstat (limited to 'src/video_out/alphablend.c')
-rw-r--r--src/video_out/alphablend.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_out/alphablend.c b/src/video_out/alphablend.c
index 3ade25735..ae061e588 100644
--- a/src/video_out/alphablend.c
+++ b/src/video_out/alphablend.c
@@ -30,8 +30,8 @@
/*
#define LOG_BLEND_YUV
-#define LOG_BLEND_RGB16
*/
+#define LOG_BLEND_RGB16
#include <string.h>
#include <stdlib.h>
@@ -171,6 +171,9 @@ void blend_rgb16 (uint8_t * img, vo_overlay_t * img_overl,
#ifdef LOG_BLEND_RGB16
printf("blend_rgb16: img_height=%i, dst_height=%i\n", img_height, dst_height);
printf("blend_rgb16: img_width=%i, dst_width=%i\n", img_width, dst_width);
+ if (img_width & 1) { printf("blend_rgb16s: odd\n");}
+ else { printf("blend_rgb16s: even\n");}
+
#endif
/* stripe_height is used in yuv2rgb scaling, so use the same scale factor here for overlays. */
stripe_height = 16 * img_height / dst_height;
@@ -180,7 +183,7 @@ void blend_rgb16 (uint8_t * img, vo_overlay_t * img_overl,
#ifdef LOG_BLEND_RGB16
printf("blend_rgb16: dy_step=%i, x_scale=%i\n", dy_step, x_scale);
#endif
-
+ if (img_width & 1) img_width++;
img_offset = ( ( (img_overl->y * img_height) / dst_height) * img_width)
+ ( (img_overl->x * img_width) / dst_width);
#ifdef LOG_BLEND_RGB16