2010-01-30 23:24:23 +00:00
|
|
|
/*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2007-07-02 22:34:45 +00:00
|
|
|
#ifndef MPLAYER_SPUDEC_H
|
|
|
|
#define MPLAYER_SPUDEC_H
|
2001-04-21 15:38:01 +00:00
|
|
|
|
2012-08-06 23:26:11 +00:00
|
|
|
#include <stdint.h>
|
2003-02-28 19:21:45 +00:00
|
|
|
|
2012-09-28 19:38:52 +00:00
|
|
|
struct sub_bitmaps;
|
VO, sub: refactor
Remove VFCTRL_DRAW_OSD, VFCAP_EOSD_FILTER, VFCAP_EOSD_RGBA, VFCAP_EOSD,
VOCTRL_DRAW_EOSD, VOCTRL_GET_EOSD_RES, VOCTRL_QUERY_EOSD_FORMAT.
Remove draw_osd_with_eosd(), which rendered the OSD by calling
VOCTRL_DRAW_EOSD. Change VOs to call osd_draw() directly, which takes
a callback as argument. (This basically works like the old OSD API,
except multiple OSD bitmap formats are supported and caching is
possible.)
Remove all mentions of "eosd". It's simply "osd" now.
Make OSD size per-OSD-object, as they can be different when using
vf_sub. Include display_par/video_par in resolution change detection.
Fix the issue with margin borders in vo_corevideo.
2012-10-19 17:25:18 +00:00
|
|
|
struct mp_osd_res;
|
2012-09-28 19:38:52 +00:00
|
|
|
|
2002-01-10 17:17:05 +00:00
|
|
|
void spudec_heartbeat(void *this, unsigned int pts100);
|
2007-12-11 10:12:58 +00:00
|
|
|
void spudec_assemble(void *this, unsigned char *packet, unsigned int len, int pts100);
|
VO, sub: refactor
Remove VFCTRL_DRAW_OSD, VFCAP_EOSD_FILTER, VFCAP_EOSD_RGBA, VFCAP_EOSD,
VOCTRL_DRAW_EOSD, VOCTRL_GET_EOSD_RES, VOCTRL_QUERY_EOSD_FORMAT.
Remove draw_osd_with_eosd(), which rendered the OSD by calling
VOCTRL_DRAW_EOSD. Change VOs to call osd_draw() directly, which takes
a callback as argument. (This basically works like the old OSD API,
except multiple OSD bitmap formats are supported and caching is
possible.)
Remove all mentions of "eosd". It's simply "osd" now.
Make OSD size per-OSD-object, as they can be different when using
vf_sub. Include display_par/video_par in resolution change detection.
Fix the issue with margin borders in vo_corevideo.
2012-10-19 17:25:18 +00:00
|
|
|
void spudec_get_indexed(void *this, struct mp_osd_res *dim, struct sub_bitmaps *res);
|
2008-10-27 22:51:22 +00:00
|
|
|
void *spudec_new_scaled(unsigned int *palette, unsigned int frame_width, unsigned int frame_height, uint8_t *extradata, int extradata_len);
|
2002-01-10 17:17:05 +00:00
|
|
|
void *spudec_new(unsigned int *palette);
|
2001-11-20 18:36:50 +00:00
|
|
|
void spudec_free(void *this);
|
2001-12-25 20:32:02 +00:00
|
|
|
void spudec_reset(void *this); // called after seek
|
2002-04-15 19:17:12 +00:00
|
|
|
int spudec_visible(void *this); // check if spu is visible
|
2002-07-24 16:47:29 +00:00
|
|
|
int spudec_changed(void *this);
|
2003-09-21 14:21:43 +00:00
|
|
|
void spudec_set_forced_subs_only(void * const this, const unsigned int flag);
|
2001-11-28 14:55:56 +00:00
|
|
|
|
2007-12-31 16:15:50 +00:00
|
|
|
#endif /* MPLAYER_SPUDEC_H */
|