diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2007-04-18 05:42:18 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2007-04-18 05:42:18 +0300 |
commit | 365a4bcbae8cd1a59304f9d07ee03f66a84e0f7c (patch) | |
tree | 83427214a8a8794eb7e73dcfe404355864c34041 /src/xine-engine/video_out.h | |
parent | 485dffa9be256aae3c7904ce4f05a66d5c24f089 (diff) | |
download | xine-lib-365a4bcbae8cd1a59304f9d07ee03f66a84e0f7c.tar.gz xine-lib-365a4bcbae8cd1a59304f9d07ee03f66a84e0f7c.tar.bz2 |
Alphablending optimizations:
- validate palette alpha values in overlay manager
(one check / overlay / palette index) instead of
checking every alpha value twice for every
blended pixel in every frame
- remove unneeded calculations
- approximiate expensive integer divisions with
multiplication and shift
Diffstat (limited to 'src/xine-engine/video_out.h')
-rw-r--r-- | src/xine-engine/video_out.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xine-engine/video_out.h b/src/xine-engine/video_out.h index 7b42c43ed..085752dd8 100644 --- a/src/xine-engine/video_out.h +++ b/src/xine-engine/video_out.h @@ -255,6 +255,8 @@ struct xine_video_port_s { the palette. This should probably be classified as a bug. */ #define OVL_PALETTE_SIZE 256 +#define OVL_MAX_OPACITY 0x0f + /* number of recent frames to keep in memory these frames are needed by some deinterlace algorithms FIXME: we need a method to flush the recent frames (new stream) |