VLC 4.0.0-dev
Loading...
Searching...
No Matches
Collaboration diagram for Sub-picture channels:

Modules

 On-screen display
 

Files

file  vlc_spu.h
 

Data Structures

struct  spu_t
 Subpicture unit descriptor. More...
 

Macros

#define spu_Create(a, b)   spu_Create(VLC_OBJECT(a),b)
 

Typedefs

typedef struct spu_private_t spu_private_t
 

Functions

spu_tspu_Create (vlc_object_t *, vout_thread_t *)
 Creates the subpicture unit.
 
void spu_Destroy (spu_t *)
 Destroy the subpicture unit.
 
void spu_PutSubpicture (spu_t *, subpicture_t *)
 This function sends a subpicture to the spu_t core.
 
struct vlc_render_subpicturespu_Render (spu_t *spu, const vlc_fourcc_t *p_chroma_list, const video_format_t *p_fmt_dst, const video_format_t *p_fmt_src, bool spu_in_full_window, const struct vout_display_place_t *video_position, vlc_tick_t system_now, vlc_tick_t pts, bool ignore_osd)
 This function will return an unique subpicture containing the OSD and subtitles visible at the requested date.
 
ssize_t spu_RegisterChannel (spu_t *)
 It registers a new SPU channel.
 
void spu_UnregisterChannel (spu_t *, size_t)
 
void spu_ClearChannel (spu_t *, size_t)
 It clears all subpictures associated to a SPU channel.
 
void spu_ChangeSources (spu_t *, const char *)
 It changes the sub sources list.
 
void spu_ChangeFilters (spu_t *, const char *)
 It changes the sub filters list.
 

Detailed Description

Macro Definition Documentation

◆ spu_Create

#define spu_Create (   a,
 
)    spu_Create(VLC_OBJECT(a),b)

Typedef Documentation

◆ spu_private_t

typedef struct spu_private_t spu_private_t

Function Documentation

◆ spu_ChangeFilters()

void spu_ChangeFilters ( spu_t spu,
const char *  filters 
)

◆ spu_ChangeSources()

void spu_ChangeSources ( spu_t spu,
const char *  filters 
)

◆ spu_ClearChannel()

◆ spu_Create()

◆ spu_Destroy()

void spu_Destroy ( spu_t spu)

◆ spu_PutSubpicture()

◆ spu_RegisterChannel()

ssize_t spu_RegisterChannel ( spu_t spu)

It registers a new SPU channel.

References spu_RegisterChannelInternal().

Referenced by SubSourceInit(), and vout_RegisterSubpictureChannel().

◆ spu_Render()

struct vlc_render_subpicture * spu_Render ( spu_t spu,
const vlc_fourcc_t p_chroma_list,
const video_format_t p_fmt_dst,
const video_format_t p_fmt_src,
bool  spu_in_full_window,
const struct vout_display_place_t video_position,
vlc_tick_t  system_now,
vlc_tick_t  pts,
bool  ignore_osd 
)

This function will return an unique subpicture containing the OSD and subtitles visible at the requested date.

Parameters
sputhe subpicture unit instance
p_chroma_listis a list of supported chroma for the output (can be NULL)
p_fmt_dstis the format of the picture on which the return subpicture will be rendered.
p_fmt_srcis the format of the original(source) video.
video_positionposition of the video inside the display or NULL to fit in p_fmt_dst
system_nowthe reference current time
ptsthe timestamp of the rendered frame
ignore_osdwhether we display the OSD or not

The returned value if non NULL must be released by subpicture_Delete().

◆ spu_UnregisterChannel()