diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 20:45:42 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 20:45:42 +0000 |
commit | 5e59ee334476b6fa1b557cb87d1dca8be24e02c3 (patch) | |
tree | 86a418ae18c40b578e21501110f9fdce6ef20d52 /libvo/sub.h | |
parent | 4182b2395c4a5bb9c84420dff9d77a6f7ed1fec6 (diff) | |
download | mpv-5e59ee334476b6fa1b557cb87d1dca8be24e02c3.tar.bz2 mpv-5e59ee334476b6fa1b557cb87d1dca8be24e02c3.tar.xz |
subtitle/osd cache - pre-render text to a buffer with alpha and bitmap separated
- it solves overlapping alpha problem
- speed up osd rendering (it renders bigger area but in a single pass)
patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
some cleanup by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7122 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/sub.h')
-rw-r--r-- | libvo/sub.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/sub.h b/libvo/sub.h index 6305531176..33fc278cbb 100644 --- a/libvo/sub.h +++ b/libvo/sub.h @@ -40,6 +40,11 @@ typedef struct mp_osd_obj_s { int elems; } progbar; } params; + int stride; + + int allocated; + unsigned char *alpha_buffer; + unsigned char *bitmap_buffer; } mp_osd_obj_t; |