X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_subpicture.h;h=dea241d267686158cdc54c48ec0845d0fe85e50c;hb=b9b6e60120e5ee6ccf35efc9ff1f1eca4dacce77;hp=26f0cf6caf8f3257ea4e9b8b35a8709eecc312e4;hpb=24cddfa0efa80557f538d6dbf08f9b0b4b4d52a4;p=vlc diff --git a/include/vlc_subpicture.h b/include/vlc_subpicture.h index 26f0cf6caf..dea241d267 100644 --- a/include/vlc_subpicture.h +++ b/include/vlc_subpicture.h @@ -147,13 +147,10 @@ struct subpicture_t 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 ); @@ -176,6 +173,15 @@ VLC_EXPORT( subpicture_t *, subpicture_New, ( void ) ); */ VLC_EXPORT( void, subpicture_Delete, ( subpicture_t *p_subpic ) ); +/** + * This function will create a subpicture having one region in the requested + * chroma showing the given picture. + * + * The picture_t given is not released nor used inside the + * returned subpicture_t. + */ +VLC_EXPORT( subpicture_t *, subpicture_NewFromPicture, ( vlc_object_t *, picture_t *, vlc_fourcc_t i_chroma ) ); + /**@}*/ #endif /* _VLC_VIDEO_H */