Ignore:
Timestamp:
May 3, 2016, 2:14:41 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update vendor to version 16.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/preferences.h

    r168 r175  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    1818
    1919
    20 #ifndef _PREFERENCES_H_
    21 #define _PREFERENCES_H_
     20#ifndef PREFERENCES_H
     21#define PREFERENCES_H
    2222
    2323/* Global settings */
     
    3131
    3232#ifdef UPDATE_CHECKER
    33 #include "updatechecker.h"
     33#include "updatecheckerdata.h"
    3434#endif
    3535
     
    4848        enum WheelFunction { DoNothing = 1, Seeking = 2, Volume = 4, Zoom = 8,
    4949                         ChangeSpeed = 16 };
     50        enum DragFunction { DragDisabled = 0, MoveWindow = 1, Gestures = 2 };
    5051        enum OptionState { Detect = -1, Disabled = 0, Enabled = 1 };
    5152        enum H264LoopFilter { LoopDisabled = 0, LoopEnabled = 1, LoopDisabledOnHD = 2 };
    5253        enum AutoAddToPlaylistFilter { NoFiles = 0, VideoFiles = 1, AudioFiles = 2, MultimediaFiles = 3, ConsecutiveFiles = 4 };
     54        enum Streaming { NoStreaming = 0, StreamingAuto = 1, StreamingYT = 2, StreamingYTDL = 3 };
    5355
    5456        Q_DECLARE_FLAGS(WheelFunctions, WheelFunction);
     
    8082
    8183        bool use_screenshot;
     84#ifdef MPV_SUPPORT
     85        QString screenshot_template;
     86        QString screenshot_format;
     87#endif
    8288        QString screenshot_directory;
     89#ifdef CAPTURE_STREAM
     90        QString capture_directory;
     91#endif
    8392
    8493        // SMPlayer will remember all media settings for all videos.
     
    149158        // Misc
    150159        int osd;
     160        double osd_scale; // mpv
     161        double subfont_osd_scale; // mplayer
    151162        int osd_delay; //<! Delay in ms to show the OSD.
    152163
     
    186197        int HD_height; //!< An HD is a video which height is equal or greater than this.
    187198
     199#ifdef OBSOLETE_FAST_AUDIO_CHANGE
    188200        OptionState fast_audio_change; // If activated, not restart mplayer
     201#endif
     202
    189203#if !SMART_DVD_CHAPTERS
    190204        bool fast_chapter_change;
     
    192206
    193207        int threads; //!< number of threads to use for decoding (-lavdopts threads <1-8>)
     208        QString hwdec; //!< hardware video decoding (mpv only)
    194209
    195210        int cache_for_files;
     
    200215        int cache_for_tv;
    201216
    202 #ifdef YOUTUBE_SUPPORT
    203         int yt_quality;
    204         QString yt_user_agent;
    205         bool yt_use_https_main;
    206         bool yt_use_https_vi;
    207 #endif
    208 
    209217
    210218        /* *********
     
    212220           ********* */
    213221
    214         QString font_file;
    215         QString font_name;
    216         bool use_fontconfig;
    217222        QString subcp; // -subcp
    218223        bool use_enca;
    219224        QString enca_lang;
    220         int font_autoscale; // -subfont-autoscale
    221225        int subfuzziness;
    222226        bool autoload_sub;
    223227
    224228        bool use_ass_subtitles;
     229        bool enable_ass_styles;
    225230        int ass_line_spacing;
    226231
     
    231236        bool subtitles_on_screenshots;
    232237
    233         //! Use the new sub_vob, sub_demux and sub_file commands
    234         //! instead of sub_select
    235         OptionState use_new_sub_commands;
    236238        OptionState change_sub_scale_should_restart;
    237239
     
    248250        //! If false, options requiring freetype won't be used
    249251        bool freetype_support;
    250 #ifdef Q_OS_WIN
     252#ifdef FONTS_HACK
    251253        bool use_windowsfontdir;
    252254#endif
     
    299301        bool use_edl_files;
    300302
     303#ifdef MPLAYER_SUPPORT
     304        //! If true it will pass to mplayer the -playlist option
     305        bool use_playlist_option;
     306#endif
     307
    301308        //! Preferred connection method: ipv4 or ipv6
    302309        bool prefer_ipv4;
     
    323330
    324331        int time_to_kill_mplayer;
     332
     333#ifdef MPRIS2
     334        bool use_mpris2;
     335#endif
    325336
    326337
     
    341352#endif
    342353
    343         bool move_when_dragging; //!< Move the main window when the video area is dragged
     354        bool center_window; //!< Center the main window when playback starts
     355        bool center_window_if_outside; //!< Center the main window after an autoresize if it's outside of the screen
    344356
    345357        // Function of mouse buttons:
     
    355367        bool wheel_function_seeking_reverse;
    356368
     369        int drag_function;
     370
    357371        // Configurable seeking
    358372        int seeking1; // By default 10s
     
    370384        bool relative_seeking; 
    371385#endif
    372         bool precise_seeking; //! Enable precise_seeking (only available with mplayer2)
     386        bool precise_seeking; //! Enable precise_seeking (only available with mpv)
    373387
    374388        bool reset_stop; //! Pressing the stop button resets the position
     
    440454        QString last_dvb_channel;
    441455        QString last_tv_channel;
    442        
     456
     457
     458    /* ********
     459       Network
     460       ******** */
     461
     462        // Streaming
     463        int streaming_type;
     464        #ifdef YOUTUBE_SUPPORT
     465        int yt_quality;
     466        QString yt_user_agent;
     467        bool yt_use_https_main;
     468        bool yt_use_https_vi;
     469        #endif
     470
     471        // Proxy
     472        bool use_proxy;
     473        int proxy_type;
     474        QString proxy_host;
     475        int proxy_port;
     476        QString proxy_username;
     477        QString proxy_password;
     478
    443479
    444480    /* ***********
     
    494530        int mplayer_user_supplied_version;
    495531
     532#ifdef MPLAYER2_SUPPORT
    496533        bool mplayer_is_mplayer2; //! True if the detected version is mplayer2
    497534        QString mplayer2_detected_version;
     535#endif
    498536
    499537
Note: See TracChangeset for help on using the changeset viewer.