2012-09-28 21:38:52 +02:00
|
|
|
#ifndef MPLAYER_SUB_IMG_CONVERT_H
|
|
|
|
#define MPLAYER_SUB_IMG_CONVERT_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct osd_conv_cache;
|
|
|
|
struct sub_bitmaps;
|
|
|
|
|
|
|
|
struct osd_conv_cache *osd_conv_cache_new(void);
|
|
|
|
|
|
|
|
// These functions convert from one OSD format to another. On success, they copy
|
|
|
|
// the converted image data into c, and change imgs to point to the data.
|
2012-10-04 17:16:47 +02:00
|
|
|
bool osd_conv_idx_to_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs);
|
2012-11-25 23:32:35 +01:00
|
|
|
// Sub postprocessing
|
2012-11-25 00:06:16 +01:00
|
|
|
bool osd_conv_blur_rgba(struct osd_conv_cache *c, struct sub_bitmaps *imgs,
|
|
|
|
double gblur);
|
2012-11-25 23:32:35 +01:00
|
|
|
bool osd_conv_idx_to_gray(struct osd_conv_cache *c, struct sub_bitmaps *imgs);
|
2012-09-28 21:38:52 +02:00
|
|
|
|
|
|
|
#endif
|