diff options
author | Grigori Goronzy <greg@blackbox> | 2009-08-13 01:08:22 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-08-13 21:45:54 +0200 |
commit | 1d0e55326948d6bfb4e3804e92917ea6755d99a3 (patch) | |
tree | fd8acd2c68c95abd20a24ec87f1bd560bc5dc795 /libass/ass_render.h | |
parent | 236d5a44034883e126df6e18e3520598155b5f98 (diff) | |
download | libass-1d0e55326948d6bfb4e3804e92917ea6755d99a3.tar.bz2 libass-1d0e55326948d6bfb4e3804e92917ea6755d99a3.tar.xz |
Use event bbox for collision detection
Consider the bounding box of an event for collision detection instead
of only its vertical position and height. This allows multiple events
per line if they don't overlap.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r-- | libass/ass_render.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h index 6e16db9..1b07cfe 100644 --- a/libass/ass_render.h +++ b/libass/ass_render.h @@ -77,7 +77,7 @@ typedef struct { // a rendered event typedef struct { ASS_Image *imgs; - int top, height; + int top, height, left, width; int detect_collisions; int shift_direction; ASS_Event *event; @@ -240,7 +240,7 @@ struct ass_renderer { }; typedef struct render_priv { - int top, height; + int top, height, left, width; int render_id; } RenderPriv; @@ -253,6 +253,7 @@ typedef struct { typedef struct { int a, b; // top and height + int ha, hb; // left and width } Segment; #endif /* LIBASS_RENDER_H */ |