VLC 4.0.0-dev
|
Video subtitle. More...
#include <vlc_subpicture.h>
Data Fields | |
vlc_spu_regions | regions |
region list composing this subtitle | |
subpicture_updater_t | updater |
subpicture_private_t * | p_private |
Channel ID | |
ssize_t | i_channel |
subpicture channel ID | |
Type and flags | |
Should NOT be modified except by the vout thread | |
int64_t | i_order |
subpicture_t * | p_next |
an increasing unique number | |
Date properties | |
vlc_tick_t | i_start |
beginning of display date | |
vlc_tick_t | i_stop |
end of display date. | |
bool | b_ephemer |
If this flag is set to true the subtitle will be displayed until the next one appears or if i_stop is reached when it is valid. | |
bool | b_fade |
enable fading | |
bool | b_subtitle |
subtitle with timestamps relative to the video | |
Display properties | |
These properties are only indicative and may be changed by the video output thread, or simply ignored depending of the subtitle type. | |
unsigned | i_original_picture_width |
original width of the movie | |
unsigned | i_original_picture_height |
original height of the movie | |
int | i_alpha |
transparency | |
Video subtitle.
Any subtitle destined to be displayed by a video output thread should be stored in this structure from it's creation to it's effective display. Subtitle type and flags should only be modified by the output thread. Note that an empty subtitle MUST have its flags set to 0.
bool subpicture_t::b_ephemer |
If this flag is set to true the subtitle will be displayed until the next one appears or if i_stop is reached when it is valid.
Referenced by OSDWidget(), spu_PutSubpicture(), vlc_input_decoder_AddVoutOverlay(), vout_OSDEpg(), vout_OSDText(), and VoutSnapshotPip().
bool subpicture_t::b_fade |
enable fading
Referenced by OSDWidget(), SpuRenderRegion(), subpicture_New(), vout_OSDEpg(), vout_OSDText(), and VoutSnapshotPip().
bool subpicture_t::b_subtitle |
subtitle with timestamps relative to the video
Referenced by decoder_NewSubpicture(), IsSubpicInVideo(), spu_PrerenderThread(), spu_Render(), SpuRenderRegion(), SpuRenderSubpictures(), subpicture_New(), subtitles_positions_AddRegion(), subtitles_positions_FindRegion(), and vout_OSDEpg().
int subpicture_t::i_alpha |
transparency
Referenced by SpuRenderRegion(), and subpicture_New().
ssize_t subpicture_t::i_channel |
subpicture channel ID
Referenced by ModuleThread_NewSpuBuffer(), OSDWidget(), spu_PutSubpicture(), spu_render_entry_IsSelected(), SpuRenderCmp(), sub_new_buffer(), vlc_input_decoder_AddVoutOverlay(), vout_OSDEpg(), vout_OSDText(), and VoutSnapshotPip().
int64_t subpicture_t::i_order |
unsigned subpicture_t::i_original_picture_height |
original height of the movie
Referenced by OSDEpgUpdate(), OSDTextUpdate(), OSDWidgetUpdate(), spu_PrerenderText(), spu_UpdateOriginalSize(), SpuRegionPlace(), SpuRenderSubpictures(), subpicture_NewFromPicture(), and VoutSnapshotPip().
unsigned subpicture_t::i_original_picture_width |
original width of the movie
Referenced by OSDEpgUpdate(), OSDTextUpdate(), OSDWidgetUpdate(), spu_PrerenderText(), spu_UpdateOriginalSize(), SpuRegionPlace(), SpuRenderSubpictures(), subpicture_NewFromPicture(), and VoutSnapshotPip().
vlc_tick_t subpicture_t::i_start |
beginning of display date
Referenced by ModuleThread_PlaySpu(), ModuleThread_QueueSpu(), OSDWidget(), spu_channel_Push(), spu_PrerenderThread(), spu_PutSubpicture(), spu_Render(), SpuRenderCmp(), SpuRenderRegion(), vlc_input_decoder_AddVoutOverlay(), vout_OSDEpg(), vout_OSDText(), and VoutSnapshotPip().
vlc_tick_t subpicture_t::i_stop |
end of display date.
Will be considered invalid if set to TICK_INVALID or less than i_start. See b_ephemer
Referenced by ModuleThread_QueueSpu(), OSDWidget(), spu_channel_Push(), spu_PutSubpicture(), spu_Render(), SpuRenderRegion(), vlc_input_decoder_AddVoutOverlay(), vout_OSDEpg(), vout_OSDText(), and VoutSnapshotPip().
subpicture_t* subpicture_t::p_next |
subpicture_private_t* subpicture_t::p_private |
Referenced by subpicture_Delete(), subpicture_New(), and subpicture_Update().
vlc_spu_regions subpicture_t::regions |
region list composing this subtitle
Referenced by IsSubpicInVideo(), OSDEpgUpdate(), OSDTextUpdate(), OSDWidgetUpdate(), spu_PrerenderText(), spu_PutSubpicture(), SpuRenderSubpictures(), subpicture_Delete(), subpicture_New(), and subpicture_NewFromPicture().
subpicture_updater_t subpicture_t::updater |