summaryrefslogtreecommitdiffstats
path: root/libass/ass.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-28 01:42:03 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-28 01:42:03 +0200
commit1ca079bc46a3ddfb5e4d017473324bad67139a88 (patch)
tree65c664a65df9ae42b232f3b1871699c68aa4b386 /libass/ass.h
parentf21c5b6b2788d1ba2073cb4066eedee0de1b249e (diff)
downloadlibass-1ca079bc46a3ddfb5e4d017473324bad67139a88.tar.bz2
libass-1ca079bc46a3ddfb5e4d017473324bad67139a88.tar.xz
Clean up typedefs/structs
Remove useless _s suffix from struct names and remove struct name where not needed (only the typedef'd struct is used). Clean up API headers.
Diffstat (limited to 'libass/ass.h')
-rw-r--r--libass/ass.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libass/ass.h b/libass/ass.h
index ddc2d55..8c26153 100644
--- a/libass/ass.h
+++ b/libass/ass.h
@@ -27,9 +27,6 @@
#define LIBASS_VERSION 0x00907000
-/* Libass renderer object. Contents are private. */
-typedef struct ass_renderer_s ass_renderer_t;
-
/*
* A linked list of images produced by an ass renderer.
*
@@ -39,7 +36,7 @@ typedef struct ass_renderer_s ass_renderer_t;
* The last bitmap row is not guaranteed to be padded up to stride size,
* e.g. in the worst case a bitmap has the size stride * (h - 1) + w.
*/
-typedef struct ass_image_s {
+typedef struct ass_image {
int w, h; // Bitmap width/height
int stride; // Bitmap stride
unsigned char *bitmap; // 1bpp stride*h alpha buffer
@@ -48,7 +45,7 @@ typedef struct ass_image_s {
uint32_t color; // Bitmap color and alpha, RGBA
int dst_x, dst_y; // Bitmap placement inside the video frame
- struct ass_image_s *next; // Next image, or NULL
+ struct ass_image *next; // Next image, or NULL
} ass_image_t;
/*