25#ifndef VLC_LIBVLC_MEDIA_PLAYER_H
26#define VLC_LIBVLC_MEDIA_PLAYER_H 1
371typedef void *(*libvlc_video_lock_cb)(
void *opaque,
void **planes);
390 void *
const *planes);
435 unsigned *width,
unsigned *height,
510 unsigned width,
unsigned height,
697typedef void* (*libvlc_video_getProcAddress_cb)(
void* opaque,
const char* fct_name);
828 void *report_opaque );
1026 void *p_awindow_handler );
1052 unsigned count, int64_t pts);
1106 float volume,
bool mute);
1162 unsigned *channels);
1209 unsigned rate,
unsigned channels );
1260 double f_pos,
bool b_fast );
1414 unsigned navigate );
1490 const char *psz_id );
1546 size_t track_count );
1583 const char *psz_ids );
1605 const char *psz_uri,
bool b_select );
1826 unsigned *px,
unsigned *py );
2040 int i_chapters_of_title,
2081 unsigned num,
unsigned den);
2106 unsigned x,
unsigned y,
2107 unsigned width,
unsigned height);
2130 unsigned left,
unsigned right,
2131 unsigned top,
unsigned bottom);
2171 const char *psz_filepath,
unsigned int i_width,
2172 unsigned int i_height );
2184 const char *psz_mode );
2206 unsigned option,
int i_val );
2216 unsigned option,
const char *psz_text );
2250 unsigned option,
int value );
2261 unsigned option,
const char *
psz_value );
2296 unsigned option,
int value );
2318 unsigned option,
float value );
2405#if defined (__GNUC__) && !defined (__clang__)
2406__attribute__((unused))
2407__attribute__((noinline))
2408__attribute__((error(
"Use libvlc_audio_output_device_enum() instead")))
2413 (void) p_instance; (void) aout;
2453 const char *device_id );
2787#define libvlc_role_Last libvlc_role_Test
2824 bool enable,
const char *dir_path);
2897 int64_t system_date_us,
void *data);
2919 int64_t min_period_us,
2947 int64_t system_now_us,
2948 int64_t *out_ts_us,
double *out_pos);
2973 int64_t system_now_us,
2974 int64_t interpolated_ts_us,
2975 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:2342
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:2776
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:2329
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:2346
@ libvlc_AudioMixMode_Unset
Definition libvlc_media_player.h:2343
@ libvlc_AudioMixMode_5_1
Definition libvlc_media_player.h:2347
@ libvlc_AudioMixMode_Stereo
Definition libvlc_media_player.h:2344
@ libvlc_AudioMixMode_7_1
Definition libvlc_media_player.h:2348
@ libvlc_AudioMixMode_Binaural
Definition libvlc_media_player.h:2345
@ libvlc_role_Game
Video game.
Definition libvlc_media_player.h:2781
@ libvlc_role_None
Don't use a media player role.
Definition libvlc_media_player.h:2777
@ libvlc_role_Notification
User interaction feedback.
Definition libvlc_media_player.h:2782
@ libvlc_role_Production
Audio editing/production.
Definition libvlc_media_player.h:2784
@ libvlc_role_Communication
Speech, real-time communication.
Definition libvlc_media_player.h:2780
@ libvlc_role_Music
Music (or radio) playback.
Definition libvlc_media_player.h:2778
@ libvlc_role_Accessibility
Accessibility.
Definition libvlc_media_player.h:2785
@ libvlc_role_Video
Video playback.
Definition libvlc_media_player.h:2779
@ libvlc_role_Animation
Embedded animation (e.g.
Definition libvlc_media_player.h:2783
@ libvlc_AudioStereoMode_Stereo
Definition libvlc_media_player.h:2331
@ libvlc_AudioStereoMode_Right
Definition libvlc_media_player.h:2334
@ libvlc_AudioStereoMode_Unset
Definition libvlc_media_player.h:2330
@ libvlc_AudioStereoMode_Mono
Definition libvlc_media_player.h:2336
@ libvlc_AudioStereoMode_Dolbys
Definition libvlc_media_player.h:2335
@ libvlc_AudioStereoMode_Left
Definition libvlc_media_player.h:2333
@ libvlc_AudioStereoMode_RStereo
Definition libvlc_media_player.h:2332
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_video_adjust_option_t
option values for libvlc_video_{get,set}_adjust_{int,float,bool}
Definition libvlc_media_player.h:2265
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:2219
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:2271
@ libvlc_adjust_Hue
Definition libvlc_media_player.h:2269
@ libvlc_adjust_Enable
Definition libvlc_media_player.h:2266
@ libvlc_adjust_Brightness
Definition libvlc_media_player.h:2268
@ libvlc_adjust_Saturation
Definition libvlc_media_player.h:2270
@ libvlc_adjust_Contrast
Definition libvlc_media_player.h:2267
@ libvlc_logo_position
Definition libvlc_media_player.h:2227
@ libvlc_logo_repeat
Definition libvlc_media_player.h:2225
@ libvlc_logo_delay
Definition libvlc_media_player.h:2224
@ libvlc_logo_opacity
Definition libvlc_media_player.h:2226
@ libvlc_logo_y
Definition libvlc_media_player.h:2223
@ libvlc_logo_file
string argument, "file,d,t;file,d,t;..."
Definition libvlc_media_player.h:2221
@ libvlc_logo_x
Definition libvlc_media_player.h:2222
@ libvlc_logo_enable
Definition libvlc_media_player.h:2220
#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:98
char * psz_device
Device identifier string.
Definition libvlc_media_player.h:100
struct libvlc_audio_output_device_t * p_next
Next entry in list.
Definition libvlc_media_player.h:99
char * psz_description
User-friendly device description.
Definition libvlc_media_player.h:101
Description for audio output.
Definition libvlc_media_player.h:87
char * psz_name
Definition libvlc_media_player.h:88
struct libvlc_audio_output_t * p_next
Definition libvlc_media_player.h:90
char * psz_description
Definition libvlc_media_player.h:89
Description for chapters.
Definition libvlc_media_player.h:76
char * psz_name
chapter name
Definition libvlc_media_player.h:79
int64_t i_time_offset
time-offset of the chapter in milliseconds
Definition libvlc_media_player.h:77
int64_t i_duration
duration of the chapter in milliseconds
Definition libvlc_media_player.h:78
Definition libvlc_media_player.h:1608
bool b_scrambled
True if the program is scrambled.
Definition libvlc_media_player.h:1616
int i_group_id
Id used for libvlc_media_player_select_program()
Definition libvlc_media_player.h:1610
char * psz_name
Program name, always valid.
Definition libvlc_media_player.h:1612
bool b_selected
True if the program is selected.
Definition libvlc_media_player.h:1614
Definition libvlc_media_player.h:66
char * psz_name
title name
Definition libvlc_media_player.h:68
unsigned i_flags
info if item was recognized as a menu, interactive or plain content by the demuxer
Definition libvlc_media_player.h:69
int64_t i_duration
duration in milliseconds
Definition libvlc_media_player.h:67
Definition libvlc_media_player.h:606
libvlc_video_color_space_t colorspace
video color space
Definition libvlc_media_player.h:622
bool full_range
Video is full range or studio/limited range.
Definition libvlc_media_player.h:620
libvlc_video_color_primaries_t primaries
video color primaries
Definition libvlc_media_player.h:624
void * p_surface
currently unused
Definition libvlc_media_player.h:617
libvlc_video_transfer_func_t transfer
video transfer function
Definition libvlc_media_player.h:626
int dxgi_format
The rendering DXGI_FORMAT for libvlc_video_engine_d3d11.
Definition libvlc_media_player.h:609
uint32_t d3d9_format
The rendering D3DFORMAT for libvlc_video_engine_d3d9.
Definition libvlc_media_player.h:611
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:615
libvlc_video_orient_t orientation
video surface orientation
Definition libvlc_media_player.h:628
Definition libvlc_media_player.h:586
libvlc_video_transfer_func_t transfer
video transfer function
Definition libvlc_media_player.h:600
libvlc_video_color_primaries_t primaries
video color primaries
Definition libvlc_media_player.h:598
bool full_range
video is full range or studio/limited range
Definition libvlc_media_player.h:594
libvlc_video_color_space_t colorspace
video color space
Definition libvlc_media_player.h:596
void * device
device used for rendering, IDirect3DDevice9* for D3D9
Definition libvlc_media_player.h:602
unsigned height
rendering video height in pixel
Definition libvlc_media_player.h:590
unsigned bitdepth
rendering video bit depth in bits per channel
Definition libvlc_media_player.h:592
unsigned width
rendering video width in pixel
Definition libvlc_media_player.h:588
Definition libvlc_media_player.h:529
bool hardware_decoding
Definition libvlc_media_player.h:530
Definition libvlc_media_player.h:534
void * device
Definition libvlc_media_player.h:541
struct libvlc_video_setup_device_info_t::@179::@182 d3d9
void * device_context
Definition libvlc_media_player.h:537
void * context_mutex
ID3D11DeviceContext*.
Definition libvlc_media_player.h:538
int adapter
IDirect3D9*.
Definition libvlc_media_player.h:542
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
char psz_value[8]
Definition vout_intf.c:102