summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.h
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-10-22 00:51:56 +0200
committerTheOneric <Oneric@oneric.de>2020-10-22 19:54:29 +0200
commit6a956a5a234b0508c0ec23540c5217910d97dd08 (patch)
tree123227775c2253000edb4064f465b1b75373a74b /libass/ass_render.h
parent3e4c70206e6de15d9531edc718a11ad81e973754 (diff)
downloadlibass-6a956a5a234b0508c0ec23540c5217910d97dd08.tar.bz2
libass-6a956a5a234b0508c0ec23540c5217910d97dd08.tar.xz
ass_render: Replace Segment with Rect
Contrary to what the comments suggest Segment does not use one absolute reference point and relative offsets, but two absolute points, making it practically identical to the previously defined Rect with a <-> y0, b <-> y1, ha <-> x0, hb <-> x1 For simplicity replace Segment with Rect.
Diffstat (limited to 'libass/ass_render.h')
-rw-r--r--libass/ass_render.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libass/ass_render.h b/libass/ass_render.h
index 359152a..5208f04 100644
--- a/libass/ass_render.h
+++ b/libass/ass_render.h
@@ -334,11 +334,6 @@ typedef struct {
int y1;
} Rect;
-typedef struct {
- int a, b; // top and height
- int ha, hb; // left and width
-} Segment;
-
void reset_render_context(ASS_Renderer *render_priv, ASS_Style *style);
void ass_frame_ref(ASS_Image *img);
void ass_frame_unref(ASS_Image *img);