26#ifndef VLC_LIBVLC_MEDIA_PLAYER_H
27#define VLC_LIBVLC_MEDIA_PLAYER_H 1
381typedef void *(*libvlc_video_lock_cb)(
void *opaque,
void **planes);
400 void *
const *planes);
445 unsigned *width,
unsigned *height,
520 unsigned width,
unsigned height,
707typedef void* (*libvlc_video_getProcAddress_cb)(
void* opaque,
const char* fct_name);
838 void *report_opaque );
1066 void *p_awindow_handler );
1092 unsigned count, int64_t pts);
1146 float volume,
bool mute);
1202 unsigned *channels);
1249 unsigned rate,
unsigned channels );
1317 double f_pos,
bool b_fast );
1510 unsigned navigate );
1586 const char *psz_id );
1642 size_t track_count );
1679 const char *psz_ids );
1701 const char *psz_uri,
bool b_select );
1922 unsigned *px,
unsigned *py );
2136 int i_chapters_of_title,
2177 unsigned num,
unsigned den);
2202 unsigned x,
unsigned y,
2203 unsigned width,
unsigned height);
2226 unsigned left,
unsigned right,
2227 unsigned top,
unsigned bottom);
2286 const char *psz_filepath,
unsigned int i_width,
2287 unsigned int i_height );
2299 const char *psz_mode );
2321 unsigned option,
int i_val );
2331 unsigned option,
const char *psz_text );
2365 unsigned option,
int value );
2376 unsigned option,
const char *
psz_value );
2411 unsigned option,
int value );
2433 unsigned option,
float value );
2520#if defined (__GNUC__) && !defined (__clang__)
2521__attribute__((unused))
2522__attribute__((noinline))
2523__attribute__((error(
"Use libvlc_audio_output_device_enum() instead")))
2528 (void) p_instance; (void) aout;
2568 const char *device_id );
2902#define libvlc_role_Last libvlc_role_Test
2939 bool enable,
const char *dir_path);
3017 int64_t system_date_us,
void *data);
3053 int64_t min_period_us,
3082 int64_t system_now_us,
3083 int64_t *out_ts_us,
double *out_pos);
3108 int64_t system_now_us,
3109 int64_t interpolated_ts_us,
3110 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:2457
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:2891
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:2444
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:2461
@ libvlc_AudioMixMode_Unset
Definition libvlc_media_player.h:2458
@ libvlc_AudioMixMode_5_1
Definition libvlc_media_player.h:2462
@ libvlc_AudioMixMode_Stereo
Definition libvlc_media_player.h:2459
@ libvlc_AudioMixMode_7_1
Definition libvlc_media_player.h:2463
@ libvlc_AudioMixMode_Binaural
Definition libvlc_media_player.h:2460
@ libvlc_role_Game
Video game.
Definition libvlc_media_player.h:2896
@ libvlc_role_None
Don't use a media player role.
Definition libvlc_media_player.h:2892
@ libvlc_role_Notification
User interaction feedback.
Definition libvlc_media_player.h:2897
@ libvlc_role_Production
Audio editing/production.
Definition libvlc_media_player.h:2899
@ libvlc_role_Communication
Speech, real-time communication.
Definition libvlc_media_player.h:2895
@ libvlc_role_Music
Music (or radio) playback.
Definition libvlc_media_player.h:2893
@ libvlc_role_Accessibility
Accessibility.
Definition libvlc_media_player.h:2900
@ libvlc_role_Video
Video playback.
Definition libvlc_media_player.h:2894
@ libvlc_role_Animation
Embedded animation (e.g.
Definition libvlc_media_player.h:2898
@ libvlc_AudioStereoMode_Stereo
Definition libvlc_media_player.h:2446
@ libvlc_AudioStereoMode_Right
Definition libvlc_media_player.h:2449
@ libvlc_AudioStereoMode_Unset
Definition libvlc_media_player.h:2445
@ libvlc_AudioStereoMode_Mono
Definition libvlc_media_player.h:2451
@ libvlc_AudioStereoMode_Dolbys
Definition libvlc_media_player.h:2450
@ libvlc_AudioStereoMode_Left
Definition libvlc_media_player.h:2448
@ libvlc_AudioStereoMode_RStereo
Definition libvlc_media_player.h:2447
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:283
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_API void libvlc_video_set_teletext_transparency(libvlc_media_player_t *p_mi, bool transparent)
Set teletext background transparency.
libvlc_video_adjust_option_t
option values for libvlc_video_{get,set}_adjust_{int,float,bool}
Definition libvlc_media_player.h:2380
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 libvlc_video_fit_mode_t libvlc_video_get_display_fit(libvlc_media_player_t *p_mi)
Get current video display fit mode.
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 void libvlc_video_set_display_fit(libvlc_media_player_t *p_mi, libvlc_video_fit_mode_t fit)
Set new video display fit.
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:2334
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 bool libvlc_video_get_teletext_transparency(libvlc_media_player_t *p_mi)
Get teletext background transparency.
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:2386
@ libvlc_adjust_Hue
Definition libvlc_media_player.h:2384
@ libvlc_adjust_Enable
Definition libvlc_media_player.h:2381
@ libvlc_adjust_Brightness
Definition libvlc_media_player.h:2383
@ libvlc_adjust_Saturation
Definition libvlc_media_player.h:2385
@ libvlc_adjust_Contrast
Definition libvlc_media_player.h:2382
@ libvlc_logo_position
Definition libvlc_media_player.h:2342
@ libvlc_logo_repeat
Definition libvlc_media_player.h:2340
@ libvlc_logo_delay
Definition libvlc_media_player.h:2339
@ libvlc_logo_opacity
Definition libvlc_media_player.h:2341
@ libvlc_logo_y
Definition libvlc_media_player.h:2338
@ libvlc_logo_file
string argument, "file,d,t;file,d,t;..."
Definition libvlc_media_player.h:2336
@ libvlc_logo_x
Definition libvlc_media_player.h:2337
@ libvlc_logo_enable
Definition libvlc_media_player.h:2335
#define LIBVLC_API
Definition libvlc.h:42
int i_type
Definition httpd.c:1299
struct libvlc_renderer_item_t libvlc_renderer_item_t
Definition libvlc_events.h:43
struct libvlc_media_t libvlc_media_t
Definition libvlc_events.h:47
libvlc_video_orient_t
Definition libvlc_video.h:33
vlc_mutex_t lock
Definition rand.c:33
Description for audio output device.
Definition libvlc_media_player.h:99
char * psz_device
Device identifier string.
Definition libvlc_media_player.h:101
struct libvlc_audio_output_device_t * p_next
Next entry in list.
Definition libvlc_media_player.h:100
char * psz_description
User-friendly device description.
Definition libvlc_media_player.h:102
Description for audio output.
Definition libvlc_media_player.h:88
char * psz_name
Definition libvlc_media_player.h:89
struct libvlc_audio_output_t * p_next
Definition libvlc_media_player.h:91
char * psz_description
Definition libvlc_media_player.h:90
Description for chapters.
Definition libvlc_media_player.h:77
char * psz_name
chapter name
Definition libvlc_media_player.h:80
int64_t i_time_offset
time-offset of the chapter in milliseconds
Definition libvlc_media_player.h:78
int64_t i_duration
duration of the chapter in milliseconds
Definition libvlc_media_player.h:79
Definition libvlc_media_player.h:1704
bool b_scrambled
True if the program is scrambled.
Definition libvlc_media_player.h:1712
int i_group_id
Id used for libvlc_media_player_select_program()
Definition libvlc_media_player.h:1706
char * psz_name
Program name, always valid.
Definition libvlc_media_player.h:1708
bool b_selected
True if the program is selected.
Definition libvlc_media_player.h:1710
Definition libvlc_media_player.h:67
char * psz_name
title name
Definition libvlc_media_player.h:69
unsigned i_flags
info if item was recognized as a menu, interactive or plain content by the demuxer
Definition libvlc_media_player.h:70
int64_t i_duration
duration in milliseconds
Definition libvlc_media_player.h:68
Definition libvlc_media_player.h:616
libvlc_video_color_space_t colorspace
video color space
Definition libvlc_media_player.h:632
bool full_range
Video is full range or studio/limited range.
Definition libvlc_media_player.h:630
libvlc_video_color_primaries_t primaries
video color primaries
Definition libvlc_media_player.h:634
void * p_surface
currently unused
Definition libvlc_media_player.h:627
libvlc_video_transfer_func_t transfer
video transfer function
Definition libvlc_media_player.h:636
int dxgi_format
The rendering DXGI_FORMAT for libvlc_video_engine_d3d11.
Definition libvlc_media_player.h:619
uint32_t d3d9_format
The rendering D3DFORMAT for libvlc_video_engine_d3d9.
Definition libvlc_media_player.h:621
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:625
libvlc_video_orient_t orientation
video surface orientation
Definition libvlc_media_player.h:638
Definition libvlc_media_player.h:596
libvlc_video_transfer_func_t transfer
video transfer function
Definition libvlc_media_player.h:610
libvlc_video_color_primaries_t primaries
video color primaries
Definition libvlc_media_player.h:608
bool full_range
video is full range or studio/limited range
Definition libvlc_media_player.h:604
libvlc_video_color_space_t colorspace
video color space
Definition libvlc_media_player.h:606
void * device
device used for rendering, IDirect3DDevice9* for D3D9
Definition libvlc_media_player.h:612
unsigned height
rendering video height in pixel
Definition libvlc_media_player.h:600
unsigned bitdepth
rendering video bit depth in bits per channel
Definition libvlc_media_player.h:602
unsigned width
rendering video width in pixel
Definition libvlc_media_player.h:598
Definition libvlc_media_player.h:539
bool hardware_decoding
Definition libvlc_media_player.h:540
Definition libvlc_media_player.h:544
void * device
Definition libvlc_media_player.h:551
struct libvlc_video_setup_device_info_t::@179::@182 d3d9
void * device_context
Definition libvlc_media_player.h:547
void * context_mutex
ID3D11DeviceContext*.
Definition libvlc_media_player.h:548
int adapter
IDirect3D9*.
Definition libvlc_media_player.h:552
struct libvlc_video_setup_device_info_t::@179::@181 d3d11
Viewpoint.
Definition libvlc_media_track.h:64
const char * psz_name
Definition text_style.c:33
enum vlc_video_fitting fit
Definition vout_intf.c:136
char psz_value[8]
Definition vout_intf.c:102