25 #ifndef VLC_SUBPICTURE_H 26 #define VLC_SUBPICTURE_H 1 94 #define SUBPICTURE_ALIGN_LEFT 0x1 95 #define SUBPICTURE_ALIGN_RIGHT 0x2 96 #define SUBPICTURE_ALIGN_TOP 0x4 97 #define SUBPICTURE_ALIGN_BOTTOM 0x8 98 #define SUBPICTURE_ALIGN_MASK ( SUBPICTURE_ALIGN_LEFT|SUBPICTURE_ALIGN_RIGHT| \ 99 SUBPICTURE_ALIGN_TOP |SUBPICTURE_ALIGN_BOTTOM ) 197 int i_original_picture_width;
198 int i_original_picture_height;
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:277
This file defines picture structures and functions in vlc.
subpicture_region_t * subpicture_region_New(const video_format_t *p_fmt)
This function will create a new subpicture region.
Definition: subpicture.c:240
unsigned picture_BlendSubpicture(picture_t *, vlc_blender_t *, subpicture_t *)
This function will blend a given subpicture onto a picture.
Definition: subpicture.c:291
int i_alpha
transparency
Definition: vlc_subpicture.h:67
Video picture.
Definition: vlc_picture.h:127
video_format_t fmt
format of the picture
Definition: vlc_subpicture.h:61
Video subtitle region.
Definition: vlc_subpicture.h:59
subpicture_region_t * p_next
next region in the list
Definition: vlc_subpicture.h:81
int i_text_align
alignment flags of region content
Definition: vlc_subpicture.h:71
picture_t * p_picture
picture comprising this region
Definition: vlc_subpicture.h:62
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:313
Definition: vlc_subpicture.h:85
Video subtitle.
Definition: vlc_subpicture.h:166
int i_max_height
horizontal rendering/cropping target/limit
Definition: vlc_subpicture.h:76
Definition: subpicture.c:37
text_segment_t * p_text
subtitle text, made of a list of segments
Definition: vlc_subpicture.h:70
int i_max_width
try to balance wrapped text lines
Definition: vlc_subpicture.h:75
Definition: fourcc_gen.c:34
int i_y
position of region, relative to alignment
Definition: vlc_subpicture.h:65
bool b_balanced_text
if the decoder sends row/cols based output
Definition: vlc_subpicture.h:74
int64_t vlc_tick_t
High precision date or time interval.
Definition: vlc_tick.h:45
bool b_gridmode
Definition: vlc_subpicture.h:73
uint32_t vlc_fourcc_t
Definition: fourcc_gen.c:33
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:100
bool b_noregionbg
render background under text only
Definition: vlc_subpicture.h:72
vlc_rational_t zoom_v
Definition: vlc_subpicture.h:79
Text segment for subtitles.
Definition: vlc_text_style.h:140
#define VLC_API
Definition: fourcc_gen.c:31
subpicture_region_private_t * p_private
Private data for spu_t only
Definition: vlc_subpicture.h:82
Structure describing a filter.
Definition: vlc_filter.h:72
void subpicture_region_Delete(subpicture_region_t *p_region)
This function will destroy a subpicture region allocated by subpicture_region_New.
Definition: subpicture.c:261
Definition: vlc_subpicture.h:135
Definition: subpicture.h:23
vlc_rational_t zoom_h
vertical rendering/cropping target/limit
Definition: vlc_subpicture.h:78
int i_align
alignment flags of region
Definition: vlc_subpicture.h:66
VLC object common members.
Definition: vlc_objects.h:43
void subpicture_Delete(subpicture_t *p_subpic)
This function delete a subpicture created by subpicture_New.
Definition: subpicture.c:82
subpicture_t * subpicture_New(const subpicture_updater_t *)
This function create a new empty subpicture.
Definition: subpicture.c:43
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:149
int i_x
position of region, relative to alignment
Definition: vlc_subpicture.h:64