Go to the documentation of this file.
26 #ifndef VLC_SUBPICTURE_H
27 #define VLC_SUBPICTURE_H 1
81 #define SUBPICTURE_ALIGN_LEFT 0x1
82 #define SUBPICTURE_ALIGN_RIGHT 0x2
83 #define SUBPICTURE_ALIGN_TOP 0x4
84 #define SUBPICTURE_ALIGN_BOTTOM 0x8
85 #define SUBPICTURE_ALIGN_MASK ( SUBPICTURE_ALIGN_LEFT|SUBPICTURE_ALIGN_RIGHT| \
86 SUBPICTURE_ALIGN_TOP |SUBPICTURE_ALIGN_BOTTOM )
#define VLC_API
Definition: fourcc_gen.c:30
subpicture_t * p_next
an increasing unique number
Definition: vlc_subpicture.h:164
Text segment for subtitles.
Definition: vlc_text_style.h:131
int i_max_width
try to balance wrapped text lines
Definition: vlc_subpicture.h:73
subpicture_region_t * subpicture_region_New(const video_format_t *p_fmt)
This function will create a new subpicture region.
Definition: subpicture.c:206
Definition: video_epg.c:69
bool b_noregionbg
render background under text only
Definition: vlc_subpicture.h:70
Definition: vlc_subpicture.h:122
int i_y
position of region, relative to alignment
Definition: vlc_subpicture.h:63
subpicture_updater_t updater
Definition: vlc_subpicture.h:190
text_segment_t * p_text
subtitle text, made of a list of segments
Definition: vlc_subpicture.h:68
int64_t vlc_tick_t
High precision date or time interval.
Definition: vlc_common.h:150
int i_original_picture_height
original height of the movie
Definition: vlc_subpicture.h:186
unsigned picture_BlendSubpicture(picture_t *, filter_t *p_blend, subpicture_t *)
This function will blend a given subpicture onto a picture.
Definition: subpicture.c:279
bool b_balanced_text
if the decoder sends row/cols based output
Definition: vlc_subpicture.h:72
subpicture_region_private_t * p_private
Private data for spu_t only
Definition: vlc_subpicture.h:77
int i_x
position of region, relative to alignment
Definition: vlc_subpicture.h:62
bool b_gridmode
Definition: vlc_subpicture.h:71
vlc_tick_t i_start
beginning of display date
Definition: vlc_subpicture.h:171
void subpicture_Update(subpicture_t *, const video_format_t *src, const video_format_t *, vlc_tick_t)
This function will update the content of a subpicture created with a non NULL subpicture_updater_t.
Definition: subpicture.c:150
bool b_absolute
position is absolute
Definition: vlc_subpicture.h:184
subpicture_t * subpicture_NewFromPicture(vlc_object_t *, picture_t *, vlc_fourcc_t i_chroma)
This function will create a subpicture having one region in the requested chroma showing the given pi...
Definition: subpicture.c:101
Video picture.
Definition: vlc_picture.h:68
int i_text_align
alignment flags of region content
Definition: vlc_subpicture.h:69
int i_alpha
transparency
Definition: vlc_subpicture.h:187
int i_channel
subpicture channel ID
Definition: vlc_subpicture.h:157
void subpicture_Delete(subpicture_t *p_subpic)
This function delete a subpicture created by subpicture_New.
Definition: subpicture.c:83
Structure describing a filter.
Definition: vlc_filter.h:65
Video subtitle.
Definition: vlc_subpicture.h:153
subpicture_region_t * p_region
region list composing this subtitle
Definition: vlc_subpicture.h:167
void subpicture_region_Delete(subpicture_region_t *p_region)
This function will destroy a subpicture region allocated by subpicture_region_New.
Definition: subpicture.c:249
int i_align
alignment flags of region
Definition: vlc_subpicture.h:64
Video subtitle region.
Definition: vlc_subpicture.h:57
int i_original_picture_width
original width of the movie
Definition: vlc_subpicture.h:185
subpicture_region_t * p_next
vertical rendering/cropping target/limit
Definition: vlc_subpicture.h:76
bool b_subtitle
the picture is a movie subtitle
Definition: vlc_subpicture.h:183
subpicture_private_t * p_private
Definition: vlc_subpicture.h:192
The main vlc_object_t structure.
Definition: vlc_objects.h:39
bool b_ephemer
If this flag is set to true the subtitle will be displayed until the next one appear.
Definition: vlc_subpicture.h:173
void subpicture_region_ChainDelete(subpicture_region_t *p_head)
This function will destroy a list of subpicture regions allocated by subpicture_region_New.
Definition: subpicture.c:265
bool b_fade
enable fading
Definition: vlc_subpicture.h:175
picture_t * p_picture
picture comprising this region
Definition: vlc_subpicture.h:60
vlc_tick_t i_stop
end of display date
Definition: vlc_subpicture.h:172
int i_alpha
transparency
Definition: vlc_subpicture.h:65
subpicture_t * subpicture_New(const subpicture_updater_t *)
This function create a new empty subpicture.
Definition: subpicture.c:44
Definition: subpicture.c:38
video_format_t fmt
format of the picture
Definition: vlc_subpicture.h:59
int i_max_height
horizontal rendering/cropping target/limit
Definition: vlc_subpicture.h:74
Definition: subpicture.h:23
subpicture_updater_sys_t * p_sys
Definition: vlc_subpicture.h:140
int64_t i_order
Definition: vlc_subpicture.h:163
uint32_t vlc_fourcc_t
Definition: fourcc_gen.c:32
subpicture_region_t * subpicture_region_Copy(subpicture_region_t *p_region)
This function will copy a subpicture region to a new allocated one and transfer all the properties.
Definition: subpicture.c:301