X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_osd.h;h=bfbd4272e9f38fda217d184aed09c036332b9ffe;hb=90aa6fc5e9e425c6eb6f519224f2b7e868911d36;hp=a30d0c5e01f89ab4bcd7167bbc19ea57f210fb64;hpb=449fd28aaf007c6411251dae9d0dbfdc65b135d1;p=vlc diff --git a/include/vlc_osd.h b/include/vlc_osd.h index a30d0c5e01..bfbd4272e9 100644 --- a/include/vlc_osd.h +++ b/include/vlc_osd.h @@ -27,10 +27,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#if !defined( __LIBVLC__ ) - #error You are not libvlc or one of its plugins. You cannot include this file -#endif - #ifndef _VLC_OSD_H #define _VLC_OSD_H 1 @@ -66,8 +62,9 @@ struct spu_t filter_t *p_blend; /**< alpha blending module */ filter_t *p_text; /**< text renderer module */ - filter_t *p_scale; /**< scaling module */ - bool b_force_crop; /**< force cropping of subpicture */ + filter_t *p_scale_yuvp; /**< scaling module for YUVP */ + filter_t *p_scale; /**< scaling module (all but YUVP) */ + bool b_force_crop; /**< force cropping of subpicture */ int i_crop_x, i_crop_y, i_crop_width, i_crop_height; /**< cropping */ int i_margin; /**< force position of a subpicture */ @@ -77,8 +74,7 @@ struct spu_t int ( *pf_control ) ( spu_t *, int, va_list ); /* Supciture filters */ - filter_t *pp_filter[10]; - int i_filter; + filter_chain_t *p_chain; }; static inline int spu_vaControl( spu_t *p_spu, int i_query, va_list args ) @@ -595,7 +591,7 @@ static inline void osd_SetMenuUpdate( osd_menu_t *p_osd, bool b_value ) */ VLC_EXPORT( int, osd_ShowTextRelative, ( spu_t *, int, char *, text_style_t *, int, int, int, mtime_t ) ); VLC_EXPORT( int, osd_ShowTextAbsolute, ( spu_t *, int, char *, text_style_t *, int, int, int, mtime_t, mtime_t ) ); -VLC_EXPORT( void,osd_Message, ( spu_t *, int, char *, ... ) ATTRIBUTE_FORMAT( 3, 4 ) ); +VLC_EXPORT( void,osd_Message, ( spu_t *, int, char *, ... ) LIBVLC_FORMAT( 3, 4 ) ); /** * Default feedback images @@ -650,7 +646,7 @@ VLC_EXPORT( int, vout_ShowTextAbsolute, ( vout_thread_t *, int, const char *, te * \param i_channel Subpicture channel * \param psz_format printf style formatting **/ -VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, int, const char *, ... ) ATTRIBUTE_FORMAT( 3, 4 ) ); +VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, int, const char *, ... ) LIBVLC_FORMAT( 3, 4 ) ); /** * Same as __vlc_OSDMessage() but with automatic casting