X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_subpicture.h;h=23fdaaca18a8fd09d84122e4c2b9c048401f4188;hb=4ad09c1bcdc5bfd3bdef1692b969d72fcec2e9ac;hp=bdb09fdf408dfc6a2d3796332cb60504c830d7ae;hpb=07b05122054dbec9c31932419ed4778d3f8193d6;p=vlc diff --git a/include/vlc_subpicture.h b/include/vlc_subpicture.h index bdb09fdf40..23fdaaca18 100644 --- a/include/vlc_subpicture.h +++ b/include/vlc_subpicture.h @@ -124,6 +124,8 @@ struct subpicture_t subpicture_t * p_next; /**< next subtitle to be displayed */ /**@}*/ + subpicture_region_t *p_region; /**< region list composing this subtitle */ + /** \name Date properties */ /**@{*/ mtime_t i_start; /**< beginning of display date */ @@ -133,27 +135,22 @@ struct subpicture_t bool b_fade; /**< enable fading */ /**@}*/ - subpicture_region_t *p_region; /**< region list composing this subtitle */ - /** \name Display properties * These properties are only indicative and may be * changed by the video output thread, or simply ignored depending of the * subtitle type. */ /**@{*/ - int i_original_picture_width; /**< original width of the movie */ - int i_original_picture_height;/**< original height of the movie */ bool b_subtitle; /**< the picture is a movie subtitle */ bool b_absolute; /**< position is absolute */ + int i_original_picture_width; /**< original width of the movie */ + int i_original_picture_height;/**< original height of the movie */ int i_alpha; /**< transparency */ /**@}*/ - /** Pointer to function that renders this subtitle in a picture */ - void ( *pf_render ) ( vout_thread_t *, picture_t *, const subpicture_t * ); /** Pointer to function that cleans up the private data of this subtitle */ void ( *pf_destroy ) ( subpicture_t * ); - /** Pointer to functions for region management */ - void (*pf_pre_render) ( spu_t *, subpicture_t *, const video_format_t * ); + /** Pointer to function that update the regions before rendering (optionnal) */ void (*pf_update_regions)( spu_t *, subpicture_t *, const video_format_t *, mtime_t );