2012-09-28 21:38:52 +02:00
|
|
|
#ifndef MPLAYER_SUB_IMG_CONVERT_H
|
|
|
|
#define MPLAYER_SUB_IMG_CONVERT_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct sub_bitmaps;
|
2016-06-17 21:54:12 +02:00
|
|
|
struct sub_bitmap;
|
2012-12-28 15:46:23 +01:00
|
|
|
struct mp_rect;
|
2012-09-28 21:38:52 +02:00
|
|
|
|
2012-11-25 23:32:35 +01:00
|
|
|
// Sub postprocessing
|
2016-06-17 21:54:12 +02:00
|
|
|
void mp_blur_rgba_sub_bitmap(struct sub_bitmap *d, double gblur);
|
2012-09-28 21:38:52 +02:00
|
|
|
|
2012-12-28 15:46:23 +01:00
|
|
|
bool mp_sub_bitmaps_bb(struct sub_bitmaps *imgs, struct mp_rect *out_bb);
|
|
|
|
|
|
|
|
// Intentionally limit the maximum number of bounding rects to something low.
|
|
|
|
// This prevents the algorithm from degrading to O(N^2).
|
|
|
|
// Most subtitles yield a very low number of bounding rects (<5).
|
|
|
|
#define MP_SUB_BB_LIST_MAX 15
|
|
|
|
|
|
|
|
int mp_get_sub_bb_list(struct sub_bitmaps *sbs, struct mp_rect *out_rc_list,
|
|
|
|
int rc_list_count);
|
|
|
|
|
2012-09-28 21:38:52 +02:00
|
|
|
#endif
|