25#ifndef VLC_LIBVLC_MEDIA_PLAYER_H
26#define VLC_LIBVLC_MEDIA_PLAYER_H 1
348typedef void *(*libvlc_video_lock_cb)(
void *opaque,
void **planes);
367 void *
const *planes);
412 unsigned *width,
unsigned *height,
487 unsigned width,
unsigned height,
674typedef void* (*libvlc_video_getProcAddress_cb)(
void* opaque,
const char* fct_name);
745 void *report_opaque );
941 void *p_awindow_handler );
967 unsigned count, int64_t pts);
1021 float volume,
bool mute);
1077 unsigned *channels);
1124 unsigned rate,
unsigned channels );
1175 double f_pos,
bool b_fast );
1329 unsigned navigate );
1405 const char *psz_id );
1461 size_t track_count );
1498 const char *psz_ids );
1520 const char *psz_uri,
bool b_select );
1741 unsigned *px,
unsigned *py );
1934 int i_chapters_of_title,
1975 unsigned num,
unsigned den);
2000 unsigned x,
unsigned y,
2001 unsigned width,
unsigned height);
2024 unsigned left,
unsigned right,
2025 unsigned top,
unsigned bottom);
2065 const char *psz_filepath,
unsigned int i_width,
2066 unsigned int i_height );
2078 const char *psz_mode );
2100 unsigned option,
int i_val );
2110 unsigned option,
const char *psz_text );
2144 unsigned option,
int value );
2155 unsigned option,
const char *
psz_value );
2190 unsigned option,
int value );
2212 unsigned option,
float value );
2299#if defined (__GNUC__) && !defined (__clang__)
2300__attribute__((unused))
2301__attribute__((noinline))
2302__attribute__((error(
"Use libvlc_audio_output_device_enum() instead")))
2307 (void) p_instance; (void) aout;
2347 const char *device_id );
2681#define libvlc_role_Last libvlc_role_Test
2718 bool enable,
const char *dir_path);
2791 int64_t system_date_us,
void *data);
2813 int64_t min_period_us,
2841 int64_t system_now_us,
2842 int64_t *out_ts_us,
double *out_pos);
2867 int64_t system_now_us,
2868 int64_t interpolated_ts_us,
2869 int64_t next_interval_us);
struct vlc_param ** list
Definition: core.c:402
size_t count
Definition: core.c:403
libvlc_audio_output_mixmode_t
Audio mix modes.
Definition: libvlc_media_player.h:2236
LIBVLC_API int libvlc_media_player_set_equalizer(libvlc_media_player_t *p_mi, libvlc_equalizer_t *p_equalizer)
Apply new equalizer settings to a media player.
LIBVLC_API int libvlc_audio_set_mixmode(libvlc_media_player_t *p_mi, libvlc_audio_output_mixmode_t mode)
Set current audio mix-mode.
libvlc_media_player_role
Media player roles.
Definition: libvlc_media_player.h:2670
LIBVLC_API int libvlc_audio_output_set(libvlc_media_player_t *p_mi, const char *psz_name)
Selects an audio output module.
LIBVLC_API const char * libvlc_audio_equalizer_get_preset_name(unsigned u_index)
Get the name of a particular equalizer preset.
LIBVLC_API unsigned libvlc_audio_equalizer_get_band_count(void)
Get the number of distinct frequency bands for an equalizer.
libvlc_audio_output_stereomode_t
Audio stereo modes.
Definition: libvlc_media_player.h:2223
LIBVLC_API int libvlc_media_player_set_role(libvlc_media_player_t *p_mi, unsigned role)
Sets the media role.
LIBVLC_API void libvlc_audio_toggle_mute(libvlc_media_player_t *p_mi)
Toggle mute status.
LIBVLC_API int libvlc_audio_equalizer_set_preamp(libvlc_equalizer_t *p_equalizer, float f_preamp)
Set a new pre-amplification value for an equalizer.
LIBVLC_API void libvlc_audio_set_mute(libvlc_media_player_t *p_mi, int status)
Set mute status.
LIBVLC_API float libvlc_audio_equalizer_get_band_frequency(unsigned u_index)
Get a particular equalizer band frequency.
LIBVLC_API float libvlc_audio_equalizer_get_preamp(libvlc_equalizer_t *p_equalizer)
Get the current pre-amplification value from an equalizer.
LIBVLC_API libvlc_audio_output_t * libvlc_audio_output_list_get(libvlc_instance_t *p_instance)
Gets the list of available audio output modules.
LIBVLC_API int libvlc_audio_set_volume(libvlc_media_player_t *p_mi, int i_volume)
Set current software audio volume.
LIBVLC_API int libvlc_media_player_get_role(libvlc_media_player_t *p_mi)
Gets the media role.
LIBVLC_API int libvlc_audio_equalizer_set_amp_at_index(libvlc_equalizer_t *p_equalizer, float f_amp, unsigned u_band)
Set a new amplification value for a particular equalizer frequency band.
LIBVLC_API int libvlc_audio_get_mute(libvlc_media_player_t *p_mi)
Get current mute status.
LIBVLC_API int libvlc_audio_get_volume(libvlc_media_player_t *p_mi)
Get current software audio volume.
LIBVLC_API int libvlc_audio_output_device_set(libvlc_media_player_t *mp, const char *device_id)
Configures an explicit audio output device.
LIBVLC_API libvlc_audio_output_mixmode_t libvlc_audio_get_mixmode(libvlc_media_player_t *p_mi)
Get current audio mix-mode.
enum libvlc_media_player_role libvlc_media_player_role_t
Media player roles.
LIBVLC_API libvlc_equalizer_t * libvlc_audio_equalizer_new(void)
Create a new default equalizer, with all frequency values zeroed.
LIBVLC_API int libvlc_audio_set_delay(libvlc_media_player_t *p_mi, int64_t i_delay)
Set current audio delay.
LIBVLC_API int libvlc_audio_set_stereomode(libvlc_media_player_t *p_mi, libvlc_audio_output_stereomode_t mode)
Set current audio stereo-mode.
LIBVLC_API void libvlc_audio_output_list_release(libvlc_audio_output_t *p_list)
Frees the list of available audio output modules.
LIBVLC_API float libvlc_audio_equalizer_get_amp_at_index(libvlc_equalizer_t *p_equalizer, unsigned u_band)
Get the amplification value for a particular equalizer frequency band.
LIBVLC_API libvlc_equalizer_t * libvlc_audio_equalizer_new_from_preset(unsigned u_index)
Create a new equalizer, with initial frequency values copied from an existing preset.
LIBVLC_API int64_t libvlc_audio_get_delay(libvlc_media_player_t *p_mi)
Get current audio delay.
LIBVLC_API void libvlc_media_player_record(libvlc_media_player_t *p_mi, bool enable, const char *dir_path)
Start/stop recording.
LIBVLC_API libvlc_audio_output_device_t * libvlc_audio_output_device_enum(libvlc_media_player_t *mp)
Gets a list of potential audio output devices.
LIBVLC_API unsigned libvlc_audio_equalizer_get_preset_count(void)
Get the number of equalizer presets.
LIBVLC_API char * libvlc_audio_output_device_get(libvlc_media_player_t *mp)
Get the current audio output device identifier.
LIBVLC_API libvlc_audio_output_stereomode_t libvlc_audio_get_stereomode(libvlc_media_player_t *p_mi)
Get current audio stereo-mode.
LIBVLC_API void libvlc_audio_equalizer_release(libvlc_equalizer_t *p_equalizer)
Release a previously created equalizer instance.
LIBVLC_API void libvlc_audio_output_device_list_release(libvlc_audio_output_device_t *p_list)
Frees a list of available audio output devices.
@ libvlc_AudioMixMode_4_0
Definition: libvlc_media_player.h:2240
@ libvlc_AudioMixMode_Unset
Definition: libvlc_media_player.h:2237
@ libvlc_AudioMixMode_5_1
Definition: libvlc_media_player.h:2241
@ libvlc_AudioMixMode_Stereo
Definition: libvlc_media_player.h:2238
@ libvlc_AudioMixMode_7_1
Definition: libvlc_media_player.h:2242
@ libvlc_AudioMixMode_Binaural
Definition: libvlc_media_player.h:2239
@ libvlc_role_Game
Video game.
Definition: libvlc_media_player.h:2675
@ libvlc_role_None
Don't use a media player role.
Definition: libvlc_media_player.h:2671
@ libvlc_role_Notification
User interaction feedback.
Definition: libvlc_media_player.h:2676
@ libvlc_role_Production
Audio editing/production.
Definition: libvlc_media_player.h:2678
@ libvlc_role_Communication
Speech, real-time communication.
Definition: libvlc_media_player.h:2674
@ libvlc_role_Music
Music (or radio) playback.
Definition: libvlc_media_player.h:2672
@ libvlc_role_Accessibility
Accessibility.
Definition: libvlc_media_player.h:2679
@ libvlc_role_Video
Video playback.
Definition: libvlc_media_player.h:2673
@ libvlc_role_Animation
Embedded animation (e.g.
Definition: libvlc_media_player.h:2677
@ libvlc_AudioStereoMode_Stereo
Definition: libvlc_media_player.h:2225
@ libvlc_AudioStereoMode_Right
Definition: libvlc_media_player.h:2228
@ libvlc_AudioStereoMode_Unset
Definition: libvlc_media_player.h:2224
@ libvlc_AudioStereoMode_Mono
Definition: libvlc_media_player.h:2230
@ libvlc_AudioStereoMode_Dolbys
Definition: libvlc_media_player.h:2229
@ libvlc_AudioStereoMode_Left
Definition: libvlc_media_player.h:2227
@ libvlc_AudioStereoMode_RStereo
Definition: libvlc_media_player.h:2226
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition: libvlc.h:76
int64_t libvlc_time_t
Definition: libvlc.h:78
struct libvlc_event_manager_t libvlc_event_manager_t
Event manager that belongs to a libvlc object, and from whom events can be received.
Definition: libvlc.h:313
LIBVLC_API void libvlc_video_set_aspect_ratio(libvlc_media_player_t *p_mi, const char *psz_aspect)
Set new video aspect ratio.
LIBVLC_API void libvlc_video_set_marquee_int(libvlc_media_player_t *p_mi, unsigned option, int i_val)
Enable, disable or set an integer marquee option.
libvlc_video_adjust_option_t
option values for libvlc_video_{get,set}_adjust_{int,float,bool}
Definition: libvlc_media_player.h:2159
LIBVLC_API bool libvlc_get_fullscreen(libvlc_media_player_t *p_mi)
Get current fullscreen status.
LIBVLC_API void libvlc_video_set_crop_border(libvlc_media_player_t *mp, unsigned left, unsigned right, unsigned top, unsigned bottom)
Set the video crop borders.
LIBVLC_API void libvlc_video_set_deinterlace(libvlc_media_player_t *p_mi, int deinterlace, const char *psz_mode)
Enable or disable deinterlace filter.
LIBVLC_API void libvlc_video_set_crop_ratio(libvlc_media_player_t *mp, unsigned num, unsigned den)
Set/unset the video crop ratio.
LIBVLC_API int libvlc_media_player_get_full_title_descriptions(libvlc_media_player_t *p_mi, libvlc_title_description_t ***titles)
Get the full description of available titles.
LIBVLC_API void libvlc_video_set_scale(libvlc_media_player_t *p_mi, float f_factor)
Set the video scaling factor.
LIBVLC_API int libvlc_video_get_size(libvlc_media_player_t *p_mi, unsigned num, unsigned *px, unsigned *py)
Get the pixel dimensions of a video.
LIBVLC_API int64_t libvlc_video_get_spu_delay(libvlc_media_player_t *p_mi)
Get the current subtitle delay.
LIBVLC_API void libvlc_video_set_marquee_string(libvlc_media_player_t *p_mi, unsigned option, const char *psz_text)
Set a marquee string option.
LIBVLC_API void libvlc_video_set_logo_string(libvlc_media_player_t *p_mi, unsigned option, const char *psz_value)
Set logo option as string.
LIBVLC_API void libvlc_toggle_fullscreen(libvlc_media_player_t *p_mi)
Toggle fullscreen status on non-embedded video outputs.
LIBVLC_API float libvlc_video_get_adjust_float(libvlc_media_player_t *p_mi, unsigned option)
Get float adjust option.
LIBVLC_API libvlc_video_viewpoint_t * libvlc_video_new_viewpoint(void)
Create a video viewpoint structure.
LIBVLC_API void libvlc_video_set_adjust_int(libvlc_media_player_t *p_mi, unsigned option, int value)
Set adjust option as integer.
LIBVLC_API int libvlc_video_get_teletext(libvlc_media_player_t *p_mi)
Get current teletext page requested or 0 if it's disabled.
LIBVLC_API void libvlc_video_set_key_input(libvlc_media_player_t *p_mi, unsigned on)
Enable or disable key press events handling, according to the LibVLC hotkeys configuration.
LIBVLC_API int libvlc_media_player_get_full_chapter_descriptions(libvlc_media_player_t *p_mi, int i_chapters_of_title, libvlc_chapter_description_t ***pp_chapters)
Get the full description of available chapters.
LIBVLC_API float libvlc_video_get_spu_text_scale(libvlc_media_player_t *p_mi)
Get the current subtitle text scale.
LIBVLC_API void libvlc_chapter_descriptions_release(libvlc_chapter_description_t **p_chapters, unsigned i_count)
Release a chapter description.
LIBVLC_API void libvlc_video_set_spu_text_scale(libvlc_media_player_t *p_mi, float f_scale)
Set the subtitle text scale.
LIBVLC_API int libvlc_video_set_spu_delay(libvlc_media_player_t *p_mi, int64_t i_delay)
Set the subtitle delay.
LIBVLC_API int libvlc_video_get_logo_int(libvlc_media_player_t *p_mi, unsigned option)
Get integer logo option.
LIBVLC_API int libvlc_video_take_snapshot(libvlc_media_player_t *p_mi, unsigned num, const char *psz_filepath, unsigned int i_width, unsigned int i_height)
Take a snapshot of the current video window.
LIBVLC_API void libvlc_title_descriptions_release(libvlc_title_description_t **p_titles, unsigned i_count)
Release a title description.
LIBVLC_API void libvlc_video_set_crop_window(libvlc_media_player_t *mp, unsigned x, unsigned y, unsigned width, unsigned height)
Set the video crop window.
LIBVLC_API float libvlc_video_get_scale(libvlc_media_player_t *p_mi)
Get the current video scaling factor.
libvlc_video_logo_option_t
option values for libvlc_video_{get,set}_logo_{int,string}
Definition: libvlc_media_player.h:2113
LIBVLC_API int libvlc_video_update_viewpoint(libvlc_media_player_t *p_mi, const libvlc_video_viewpoint_t *p_viewpoint, bool b_absolute)
Update the video viewpoint information.
LIBVLC_API char * libvlc_video_get_aspect_ratio(libvlc_media_player_t *p_mi)
Get current video aspect ratio.
LIBVLC_API void libvlc_set_fullscreen(libvlc_media_player_t *p_mi, bool b_fullscreen)
Enable or disable fullscreen.
LIBVLC_API int libvlc_video_get_adjust_int(libvlc_media_player_t *p_mi, unsigned option)
Get integer adjust option.
LIBVLC_API void libvlc_video_set_teletext(libvlc_media_player_t *p_mi, int i_page)
Set new teletext page to retrieve.
LIBVLC_API int libvlc_video_get_marquee_int(libvlc_media_player_t *p_mi, unsigned option)
Get an integer marquee option value.
LIBVLC_API void libvlc_video_set_mouse_input(libvlc_media_player_t *p_mi, unsigned on)
Enable or disable mouse click events handling.
LIBVLC_API void libvlc_video_set_adjust_float(libvlc_media_player_t *p_mi, unsigned option, float value)
Set adjust option as float.
LIBVLC_API int libvlc_video_get_cursor(libvlc_media_player_t *p_mi, unsigned num, int *px, int *py)
Get the mouse pointer coordinates over a video.
LIBVLC_API void libvlc_video_set_logo_int(libvlc_media_player_t *p_mi, unsigned option, int value)
Set logo option as integer.
@ libvlc_adjust_Gamma
Definition: libvlc_media_player.h:2165
@ libvlc_adjust_Hue
Definition: libvlc_media_player.h:2163
@ libvlc_adjust_Enable
Definition: libvlc_media_player.h:2160
@ libvlc_adjust_Brightness
Definition: libvlc_media_player.h:2162
@ libvlc_adjust_Saturation
Definition: libvlc_media_player.h:2164
@ libvlc_adjust_Contrast
Definition: libvlc_media_player.h:2161
@ libvlc_logo_position
Definition: libvlc_media_player.h:2121
@ libvlc_logo_repeat
Definition: libvlc_media_player.h:2119
@ libvlc_logo_delay
Definition: libvlc_media_player.h:2118
@ libvlc_logo_opacity
Definition: libvlc_media_player.h:2120
@ libvlc_logo_y
Definition: libvlc_media_player.h:2117
@ libvlc_logo_file
string argument, "file,d,t;file,d,t;..."
Definition: libvlc_media_player.h:2115
@ libvlc_logo_x
Definition: libvlc_media_player.h:2116
@ libvlc_logo_enable
Definition: libvlc_media_player.h:2114
#define LIBVLC_API
Definition: libvlc.h:42
int i_type
Definition: httpd.c:1282
struct libvlc_renderer_item_t libvlc_renderer_item_t
Definition: libvlc_events.h:38
vlc_mutex_t lock
Definition: rand.c:33
Description for audio output device.
Definition: libvlc_media_player.h:86
char * psz_device
Device identifier string.
Definition: libvlc_media_player.h:88
struct libvlc_audio_output_device_t * p_next
Next entry in list.
Definition: libvlc_media_player.h:87
char * psz_description
User-friendly device description.
Definition: libvlc_media_player.h:89
Description for audio output.
Definition: libvlc_media_player.h:75
char * psz_name
Definition: libvlc_media_player.h:76
struct libvlc_audio_output_t * p_next
Definition: libvlc_media_player.h:78
char * psz_description
Definition: libvlc_media_player.h:77
Description for chapters.
Definition: libvlc_media_player.h:64
char * psz_name
chapter name
Definition: libvlc_media_player.h:67
int64_t i_time_offset
time-offset of the chapter in milliseconds
Definition: libvlc_media_player.h:65
int64_t i_duration
duration of the chapter in milliseconds
Definition: libvlc_media_player.h:66
Definition: libvlc_media_player.h:1523
bool b_scrambled
True if the program is scrambled.
Definition: libvlc_media_player.h:1531
int i_group_id
Id used for libvlc_media_player_select_program()
Definition: libvlc_media_player.h:1525
char * psz_name
Program name, always valid.
Definition: libvlc_media_player.h:1527
bool b_selected
True if the program is selected.
Definition: libvlc_media_player.h:1529
Definition: libvlc_media_player.h:54
char * psz_name
title name
Definition: libvlc_media_player.h:56
unsigned i_flags
info if item was recognized as a menu, interactive or plain content by the demuxer
Definition: libvlc_media_player.h:57
int64_t i_duration
duration in milliseconds
Definition: libvlc_media_player.h:55
Definition: libvlc_media_player.h:583
libvlc_video_color_space_t colorspace
video color space
Definition: libvlc_media_player.h:599
bool full_range
Video is full range or studio/limited range.
Definition: libvlc_media_player.h:597
libvlc_video_color_primaries_t primaries
video color primaries
Definition: libvlc_media_player.h:601
void * p_surface
currently unused
Definition: libvlc_media_player.h:594
libvlc_video_transfer_func_t transfer
video transfer function
Definition: libvlc_media_player.h:603
int dxgi_format
The rendering DXGI_FORMAT for libvlc_video_engine_d3d11.
Definition: libvlc_media_player.h:586
uint32_t d3d9_format
The rendering D3DFORMAT for libvlc_video_engine_d3d9.
Definition: libvlc_media_player.h:588
int opengl_format
The rendering GLint GL_RGBA or GL_RGB for libvlc_video_engine_opengl and for libvlc_video_engine_gles...
Definition: libvlc_media_player.h:592
libvlc_video_orient_t orientation
video surface orientation
Definition: libvlc_media_player.h:605
Definition: libvlc_media_player.h:563
libvlc_video_transfer_func_t transfer
video transfer function
Definition: libvlc_media_player.h:577
libvlc_video_color_primaries_t primaries
video color primaries
Definition: libvlc_media_player.h:575
bool full_range
video is full range or studio/limited range
Definition: libvlc_media_player.h:571
libvlc_video_color_space_t colorspace
video color space
Definition: libvlc_media_player.h:573
void * device
device used for rendering, IDirect3DDevice9* for D3D9
Definition: libvlc_media_player.h:579
unsigned height
rendering video height in pixel
Definition: libvlc_media_player.h:567
unsigned bitdepth
rendering video bit depth in bits per channel
Definition: libvlc_media_player.h:569
unsigned width
rendering video width in pixel
Definition: libvlc_media_player.h:565
Definition: libvlc_media_player.h:506
bool hardware_decoding
Definition: libvlc_media_player.h:507
Definition: libvlc_media_player.h:511
void * device
Definition: libvlc_media_player.h:518
void * device_context
Definition: libvlc_media_player.h:514
struct libvlc_video_setup_device_info_t::@177::@180 d3d9
struct libvlc_video_setup_device_info_t::@177::@179 d3d11
void * context_mutex
ID3D11DeviceContext*.
Definition: libvlc_media_player.h:515
int adapter
IDirect3D9*.
Definition: libvlc_media_player.h:519
Viewpoint.
Definition: libvlc_media_track.h:82
const char * psz_name
Definition: text_style.c:33
char psz_value[8]
Definition: vout_intf.c:99