26#ifndef VLC_LIBVLC_MEDIA_PLAYER_H
27#define VLC_LIBVLC_MEDIA_PLAYER_H 1
372typedef void *(*libvlc_video_lock_cb)(
void *opaque,
void **planes);
391 void *
const *planes);
436 unsigned *width,
unsigned *height,
511 unsigned width,
unsigned height,
698typedef void* (*libvlc_video_getProcAddress_cb)(
void* opaque,
const char* fct_name);
829 void *report_opaque );
1057 void *p_awindow_handler );
1083 unsigned count, int64_t pts);
1137 float volume,
bool mute);
1193 unsigned *channels);
1240 unsigned rate,
unsigned channels );
1308 double f_pos,
bool b_fast );
1462 unsigned navigate );
1538 const char *psz_id );
1594 size_t track_count );
1631 const char *psz_ids );
1653 const char *psz_uri,
bool b_select );
1874 unsigned *px,
unsigned *py );
2088 int i_chapters_of_title,
2129 unsigned num,
unsigned den);
2154 unsigned x,
unsigned y,
2155 unsigned width,
unsigned height);
2178 unsigned left,
unsigned right,
2179 unsigned top,
unsigned bottom);
2238 const char *psz_filepath,
unsigned int i_width,
2239 unsigned int i_height );
2251 const char *psz_mode );
2273 unsigned option,
int i_val );
2283 unsigned option,
const char *psz_text );
2317 unsigned option,
int value );
2328 unsigned option,
const char *
psz_value );
2363 unsigned option,
int value );
2385 unsigned option,
float value );
2472#if defined (__GNUC__) && !defined (__clang__)
2473__attribute__((unused))
2474__attribute__((noinline))
2475__attribute__((error(
"Use libvlc_audio_output_device_enum() instead")))
2480 (void) p_instance; (void) aout;
2520 const char *device_id );
2854#define libvlc_role_Last libvlc_role_Test
2891 bool enable,
const char *dir_path);
2969 int64_t system_date_us,
void *data);
3004 int64_t min_period_us,
3033 int64_t system_now_us,
3034 int64_t *out_ts_us,
double *out_pos);
3059 int64_t system_now_us,
3060 int64_t interpolated_ts_us,
3061 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:2409
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:2843
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:2396
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:2413
@ libvlc_AudioMixMode_Unset
Definition libvlc_media_player.h:2410
@ libvlc_AudioMixMode_5_1
Definition libvlc_media_player.h:2414
@ libvlc_AudioMixMode_Stereo
Definition libvlc_media_player.h:2411
@ libvlc_AudioMixMode_7_1
Definition libvlc_media_player.h:2415
@ libvlc_AudioMixMode_Binaural
Definition libvlc_media_player.h:2412
@ libvlc_role_Game
Video game.
Definition libvlc_media_player.h:2848
@ libvlc_role_None
Don't use a media player role.
Definition libvlc_media_player.h:2844
@ libvlc_role_Notification
User interaction feedback.
Definition libvlc_media_player.h:2849
@ libvlc_role_Production
Audio editing/production.
Definition libvlc_media_player.h:2851
@ libvlc_role_Communication
Speech, real-time communication.
Definition libvlc_media_player.h:2847
@ libvlc_role_Music
Music (or radio) playback.
Definition libvlc_media_player.h:2845
@ libvlc_role_Accessibility
Accessibility.
Definition libvlc_media_player.h:2852
@ libvlc_role_Video
Video playback.
Definition libvlc_media_player.h:2846
@ libvlc_role_Animation
Embedded animation (e.g.
Definition libvlc_media_player.h:2850
@ libvlc_AudioStereoMode_Stereo
Definition libvlc_media_player.h:2398
@ libvlc_AudioStereoMode_Right
Definition libvlc_media_player.h:2401
@ libvlc_AudioStereoMode_Unset
Definition libvlc_media_player.h:2397
@ libvlc_AudioStereoMode_Mono
Definition libvlc_media_player.h:2403
@ libvlc_AudioStereoMode_Dolbys
Definition libvlc_media_player.h:2402
@ libvlc_AudioStereoMode_Left
Definition libvlc_media_player.h:2400
@ libvlc_AudioStereoMode_RStereo
Definition libvlc_media_player.h:2399
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:2332
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:2286
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:2338
@ libvlc_adjust_Hue
Definition libvlc_media_player.h:2336
@ libvlc_adjust_Enable
Definition libvlc_media_player.h:2333
@ libvlc_adjust_Brightness
Definition libvlc_media_player.h:2335
@ libvlc_adjust_Saturation
Definition libvlc_media_player.h:2337
@ libvlc_adjust_Contrast
Definition libvlc_media_player.h:2334
@ libvlc_logo_position
Definition libvlc_media_player.h:2294
@ libvlc_logo_repeat
Definition libvlc_media_player.h:2292
@ libvlc_logo_delay
Definition libvlc_media_player.h:2291
@ libvlc_logo_opacity
Definition libvlc_media_player.h:2293
@ libvlc_logo_y
Definition libvlc_media_player.h:2290
@ libvlc_logo_file
string argument, "file,d,t;file,d,t;..."
Definition libvlc_media_player.h:2288
@ libvlc_logo_x
Definition libvlc_media_player.h:2289
@ libvlc_logo_enable
Definition libvlc_media_player.h:2287
#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:1656
bool b_scrambled
True if the program is scrambled.
Definition libvlc_media_player.h:1664
int i_group_id
Id used for libvlc_media_player_select_program()
Definition libvlc_media_player.h:1658
char * psz_name
Program name, always valid.
Definition libvlc_media_player.h:1660
bool b_selected
True if the program is selected.
Definition libvlc_media_player.h:1662
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:607
libvlc_video_color_space_t colorspace
video color space
Definition libvlc_media_player.h:623
bool full_range
Video is full range or studio/limited range.
Definition libvlc_media_player.h:621
libvlc_video_color_primaries_t primaries
video color primaries
Definition libvlc_media_player.h:625
void * p_surface
currently unused
Definition libvlc_media_player.h:618
libvlc_video_transfer_func_t transfer
video transfer function
Definition libvlc_media_player.h:627
int dxgi_format
The rendering DXGI_FORMAT for libvlc_video_engine_d3d11.
Definition libvlc_media_player.h:610
uint32_t d3d9_format
The rendering D3DFORMAT for libvlc_video_engine_d3d9.
Definition libvlc_media_player.h:612
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:616
libvlc_video_orient_t orientation
video surface orientation
Definition libvlc_media_player.h:629
Definition libvlc_media_player.h:587
libvlc_video_transfer_func_t transfer
video transfer function
Definition libvlc_media_player.h:601
libvlc_video_color_primaries_t primaries
video color primaries
Definition libvlc_media_player.h:599
bool full_range
video is full range or studio/limited range
Definition libvlc_media_player.h:595
libvlc_video_color_space_t colorspace
video color space
Definition libvlc_media_player.h:597
void * device
device used for rendering, IDirect3DDevice9* for D3D9
Definition libvlc_media_player.h:603
unsigned height
rendering video height in pixel
Definition libvlc_media_player.h:591
unsigned bitdepth
rendering video bit depth in bits per channel
Definition libvlc_media_player.h:593
unsigned width
rendering video width in pixel
Definition libvlc_media_player.h:589
Definition libvlc_media_player.h:530
bool hardware_decoding
Definition libvlc_media_player.h:531
Definition libvlc_media_player.h:535
void * device
Definition libvlc_media_player.h:542
void * device_context
Definition libvlc_media_player.h:538
struct libvlc_video_setup_device_info_t::@183::@186 d3d9
struct libvlc_video_setup_device_info_t::@183::@185 d3d11
void * context_mutex
ID3D11DeviceContext*.
Definition libvlc_media_player.h:539
int adapter
IDirect3D9*.
Definition libvlc_media_player.h:543
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