diff options
Diffstat (limited to 'sub/dec_sub.h')
-rw-r--r-- | sub/dec_sub.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sub/dec_sub.h b/sub/dec_sub.h index d6fbef25f0..e58ad65550 100644 --- a/sub/dec_sub.h +++ b/sub/dec_sub.h @@ -1,6 +1,14 @@ +#ifndef MPLAYER_DEC_SUB_H +#define MPLAYER_DEC_SUB_H + struct sh_sub; struct osd_state; +typedef struct mp_eosd_res { + int w, h; // screen dimensions, including black borders + int mt, mb, ml, mr; // borders (top, bottom, left, right) +} mp_eosd_res_t; + static inline bool is_text_sub(int type) { return type == 't' || type == 'm' || type == 'a'; @@ -12,3 +20,5 @@ void sub_init(struct sh_sub *sh, struct osd_state *osd); void sub_reset(struct sh_sub *sh, struct osd_state *osd); void sub_switchoff(struct sh_sub *sh, struct osd_state *osd); void sub_uninit(struct sh_sub *sh); + +#endif |