hotkeys.c File Reference

Include dependency graph for hotkeys.c:


Data Structures

struct  intf_sys_t
 Per-interface private state. More...

Defines

#define CHANNELS_NUMBER   4
#define VOLUME_TEXT_CHAN   p_intf->p_sys->p_channels[ 0 ]
#define VOLUME_WIDGET_CHAN   p_intf->p_sys->p_channels[ 1 ]
#define POSITION_TEXT_CHAN   p_intf->p_sys->p_channels[ 2 ]
#define POSITION_WIDGET_CHAN   p_intf->p_sys->p_channels[ 3 ]
#define DisplayMessage(vout, fmt,...)   do { if(vout) vout_OSDMessage(vout, fmt, __VA_ARGS__); } while(0)
#define DisplayIcon(vout, icon)   do { if(vout) vout_OSDIcon(vout, SPU_DEFAULT_CHANNEL, icon); } while(0)
#define SET_TIME(a, b)

Enumerations

enum  { MOUSEWHEEL_VOLUME, MOUSEWHEEL_POSITION, NO_MOUSEWHEEL }

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
static int ActionEvent (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int SpecialKeyEvent (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static void PlayBookmark (intf_thread_t *, int)
static void SetBookmark (intf_thread_t *, int)
static void DisplayPosition (intf_thread_t *, vout_thread_t *, input_thread_t *)
static void DisplayVolume (intf_thread_t *, vout_thread_t *, audio_volume_t)
static void DisplayRate (vout_thread_t *, float)
static float AdjustRateFine (input_thread_t *, const int)
static void ClearChannels (intf_thread_t *, vout_thread_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int PutAction (intf_thread_t *p_intf, int i_action)

Variables

static const int i_mode_list []
static const char *const psz_mode_list_text []

Define Documentation

#define CHANNELS_NUMBER   4

Referenced by ClearChannels(), and PutAction().

#define DisplayIcon ( vout,
icon   )     do { if(vout) vout_OSDIcon(vout, SPU_DEFAULT_CHANNEL, icon); } while(0)

Referenced by PutAction().

#define DisplayMessage ( vout,
fmt,
...   )     do { if(vout) vout_OSDMessage(vout, fmt, __VA_ARGS__); } while(0)

#define POSITION_TEXT_CHAN   p_intf->p_sys->p_channels[ 2 ]

Referenced by DisplayPosition().

#define POSITION_WIDGET_CHAN   p_intf->p_sys->p_channels[ 3 ]

Referenced by DisplayPosition().

#define SET_TIME ( a,
b   ) 

Value:

i_interval = var_InheritInteger( p_input, a "-jump-size" ); \
    if( i_interval > 0 ) { \
        mtime_t i_time = (mtime_t)(i_interval * b) * 1000000L; \
        var_SetTime( p_input, "time-offset", i_time ); \
        DisplayPosition( p_intf, p_vout, p_input ); \
    }

Referenced by PutAction().

#define VOLUME_TEXT_CHAN   p_intf->p_sys->p_channels[ 0 ]

Referenced by DisplayVolume().

#define VOLUME_WIDGET_CHAN   p_intf->p_sys->p_channels[ 1 ]

Referenced by DisplayVolume().


Enumeration Type Documentation

anonymous enum

Enumerator:
MOUSEWHEEL_VOLUME 
MOUSEWHEEL_POSITION 
NO_MOUSEWHEEL 


Function Documentation

static int ActionEvent ( vlc_object_t libvlc,
char const *  psz_var,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

References vlc_value_t::i_int, and PutAction().

static float AdjustRateFine ( input_thread_t p_input,
const int  i_dir 
) [static]

static void ClearChannels ( intf_thread_t p_intf,
vout_thread_t p_vout 
) [static]

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static void DisplayPosition ( intf_thread_t p_intf,
vout_thread_t p_vout,
input_thread_t p_input 
) [static]

static void DisplayRate ( vout_thread_t p_vout,
float  f_rate 
) [static]

References _, DisplayMessage, and SPU_DEFAULT_CHANNEL.

Referenced by PutAction().

static void DisplayVolume ( intf_thread_t p_intf,
vout_thread_t p_vout,
audio_volume_t  i_vol 
) [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static void PlayBookmark ( intf_thread_t p_intf,
int  i_num 
) [static]

static int PutAction ( intf_thread_t p_intf,
int  i_action 
) [static]

References _, ACTIONID_ASPECT_RATIO, ACTIONID_AUDIO_TRACK, ACTIONID_AUDIODELAY_DOWN, ACTIONID_AUDIODELAY_UP, ACTIONID_AUDIODEVICE_CYCLE, ACTIONID_CHAPTER_NEXT, ACTIONID_CHAPTER_PREV, ACTIONID_CROP, ACTIONID_CROP_BOTTOM, ACTIONID_CROP_LEFT, ACTIONID_CROP_RIGHT, ACTIONID_CROP_TOP, ACTIONID_DEINTERLACE, ACTIONID_DISC_MENU, ACTIONID_FASTER, ACTIONID_FRAME_NEXT, ACTIONID_INTF_HIDE, ACTIONID_INTF_SHOW, ACTIONID_JUMP_BACKWARD_EXTRASHORT, ACTIONID_JUMP_BACKWARD_LONG, ACTIONID_JUMP_BACKWARD_MEDIUM, ACTIONID_JUMP_BACKWARD_SHORT, ACTIONID_JUMP_FORWARD_EXTRASHORT, ACTIONID_JUMP_FORWARD_LONG, ACTIONID_JUMP_FORWARD_MEDIUM, ACTIONID_JUMP_FORWARD_SHORT, ACTIONID_LEAVE_FULLSCREEN, ACTIONID_LOOP, ACTIONID_MENU_DOWN, ACTIONID_MENU_LEFT, ACTIONID_MENU_OFF, ACTIONID_MENU_ON, ACTIONID_MENU_RIGHT, ACTIONID_MENU_SELECT, ACTIONID_MENU_UP, ACTIONID_NEXT, ACTIONID_PAUSE, ACTIONID_PLAY, ACTIONID_PLAY_BOOKMARK1, ACTIONID_PLAY_BOOKMARK10, ACTIONID_PLAY_PAUSE, ACTIONID_POSITION, ACTIONID_PREV, ACTIONID_QUIT, ACTIONID_RANDOM, ACTIONID_RATE_FASTER_FINE, ACTIONID_RATE_NORMAL, ACTIONID_RATE_SLOWER_FINE, ACTIONID_RECORD, ACTIONID_SCALE_DOWN, ACTIONID_SCALE_UP, ACTIONID_SET_BOOKMARK1, ACTIONID_SET_BOOKMARK10, ACTIONID_SLOWER, ACTIONID_SNAPSHOT, ACTIONID_STOP, ACTIONID_SUBDELAY_DOWN, ACTIONID_SUBDELAY_UP, ACTIONID_SUBPOS_DOWN, ACTIONID_SUBPOS_UP, ACTIONID_SUBTITLE_TRACK, ACTIONID_TITLE_NEXT, ACTIONID_TITLE_PREV, ACTIONID_TOGGLE_AUTOSCALE, ACTIONID_TOGGLE_FULLSCREEN, ACTIONID_UNCROP_BOTTOM, ACTIONID_UNCROP_LEFT, ACTIONID_UNCROP_RIGHT, ACTIONID_UNCROP_TOP, ACTIONID_UNZOOM, ACTIONID_VOL_DOWN, ACTIONID_VOL_MUTE, ACTIONID_VOL_UP, ACTIONID_WALLPAPER, ACTIONID_ZOOM, ACTIONID_ZOOM_DOUBLE, ACTIONID_ZOOM_HALF, ACTIONID_ZOOM_ORIGINAL, ACTIONID_ZOOM_QUARTER, AdjustRateFine(), aout_ToggleMute, aout_VolumeDown, aout_VolumeUp, CHANNELS_NUMBER, ClearChannels(), DisplayIcon, DisplayMessage, DisplayPosition(), DisplayRate(), DisplayVolume(), vlc_value_t::f_float, i, vlc_list_t::i_count, vlc_value_t::i_int, input_GetAout(), input_GetItem(), input_GetVout(), libvlc_Quit(), list, msg_Warn, osd_MenuActivate, osd_MenuDown, osd_MenuHide, osd_MenuNext, osd_MenuPrev, osd_MenuShow, osd_MenuUp, OSD_MUTE_ICON, OSD_PAUSE_ICON, OSD_PLAY_ICON, intf_sys_t::p_channels, intf_sys_t::p_last_vout, intf_thread_t::p_libvlc, vlc_value_t::p_list, intf_thread_t::p_sys, vlc_list_t::p_values, PAUSE_S, pl_Get, PlayBookmark(), PLAYING_S, playlist_CurrentInput(), playlist_Next, playlist_Play, playlist_Prev, playlist_Stop, vlc_value_t::psz_string, SET_TIME, SetBookmark(), SPU_DEFAULT_CHANNEL, var_Change, var_DecInteger, var_FreeList(), var_Get, var_GetBool, var_GetFloat, var_GetInteger, var_GetString, var_GetTime, var_IncInteger, var_Set, var_SetBool, var_SetFloat, var_SetInteger, var_SetString, var_SetTime, var_ToggleBool, var_TriggerCallback, VLC_OBJECT, vlc_object_release, VLC_SUCCESS, VLC_VAR_GETCHOICES, VLC_VAR_GETLIST, vout_OSDEpg(), and vout_RegisterSubpictureChannel().

Referenced by ActionEvent(), and SpecialKeyEvent().

static void SetBookmark ( intf_thread_t p_intf,
int  i_num 
) [static]

static int SpecialKeyEvent ( vlc_object_t libvlc,
char const *  psz_var,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int i_mode_list[] [static]

const char* const psz_mode_list_text[] [static]

Initial value:

    { N_("Volume Control"), N_("Position Control"), N_("Ignore") }


Generated on Tue May 25 08:05:15 2010 for VLC by  doxygen 1.5.6