X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_subpicture.h;h=bdb09fdf408dfc6a2d3796332cb60504c830d7ae;hb=02b338985c9e7254bc5f956f0e606f6266860a58;hp=26f0cf6caf8f3257ea4e9b8b35a8709eecc312e4;hpb=c3fab7231177600db0b89929bcf5edaee1d96405;p=vlc diff --git a/include/vlc_subpicture.h b/include/vlc_subpicture.h index 26f0cf6caf..bdb09fdf40 100644 --- a/include/vlc_subpicture.h +++ b/include/vlc_subpicture.h @@ -176,6 +176,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 */