Diffstat (limited to 'noncore/multimedia/opieplayer2/alphablend.c') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/alphablend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/alphablend.c b/noncore/multimedia/opieplayer2/alphablend.c index 57f6013..cdd7b28 100644 --- a/noncore/multimedia/opieplayer2/alphablend.c +++ b/noncore/multimedia/opieplayer2/alphablend.c | |||
@@ -28,24 +28,26 @@ | |||
28 | * | 28 | * |
29 | */ | 29 | */ |
30 | 30 | ||
31 | /* | 31 | /* |
32 | #define LOG_BLEND_YUV | 32 | #define LOG_BLEND_YUV |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include <string.h> | 35 | #include <string.h> |
36 | #include <stdlib.h> | 36 | #include <stdlib.h> |
37 | #include <stdio.h> | 37 | #include <stdio.h> |
38 | #include <inttypes.h> | 38 | #include <inttypes.h> |
39 | 39 | ||
40 | #include <xine.h> | ||
41 | #include <xine/xine_internal.h> | ||
40 | #include <xine/video_out.h> | 42 | #include <xine/video_out.h> |
41 | #include "alphablend.h" | 43 | #include "alphablend.h" |
42 | 44 | ||
43 | 45 | ||
44 | #define BLEND_COLOR(dst, src, mask, o) ((((src&mask)*o + ((dst&mask)*(0x0f-o)))/0xf) & mask) | 46 | #define BLEND_COLOR(dst, src, mask, o) ((((src&mask)*o + ((dst&mask)*(0x0f-o)))/0xf) & mask) |
45 | 47 | ||
46 | #define BLEND_BYTE(dst, src, o) (((src)*o + ((dst)*(0xf-o)))/0xf) | 48 | #define BLEND_BYTE(dst, src, o) (((src)*o + ((dst)*(0xf-o)))/0xf) |
47 | 49 | ||
48 | static void mem_blend16(uint16_t *mem, uint16_t clr, uint8_t o, int len) { | 50 | static void mem_blend16(uint16_t *mem, uint16_t clr, uint8_t o, int len) { |
49 | uint16_t *limit = mem + len; | 51 | uint16_t *limit = mem + len; |
50 | while (mem < limit) { | 52 | while (mem < limit) { |
51 | *mem = | 53 | *mem = |