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/mplayerprocess.h

    r163 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
     
    1717*/
    1818
    19 #ifndef _MPLAYERPROCESS_H_
    20 #define _MPLAYERPROCESS_H_
     19#ifndef MPLAYERPROCESS_H
     20#define MPLAYERPROCESS_H
    2121
    2222#include <QString>
    23 #include "myprocess.h"
     23#include "playerprocess.h"
    2424#include "mediadata.h"
    2525#include "config.h"
    2626
    27 #ifdef Q_OS_OS2
    28 #include <QThread>
    29 #include <qt_os2.h>
    30 #endif
    31 
    32 #define NOTIFY_SUB_CHANGES 1
    33 #define NOTIFY_AUDIO_CHANGES 1
    34 
    35 #ifdef Q_OS_OS2
    36 class PipeThread : public QThread
    37 {
    38 public:
    39         PipeThread(const QByteArray t, const HPIPE pipe);
    40         ~PipeThread();
    41         void run();
    42 
    43 private:
    44         HPIPE hpipe;
    45         QByteArray text;
    46 };
    47 #endif
    48 
    49 
    5027class QStringList;
    5128
    52 class MplayerProcess : public MyProcess
     29class MplayerProcess : public PlayerProcess
    5330{
    5431        Q_OBJECT
     
    5936
    6037        bool start();
    61         void writeToStdin(QString text);
    6238
    63         MediaData mediaData() { return md; };
     39        // Command line options
     40        void setMedia(const QString & media, bool is_playlist = false);
     41        void setFixedOptions();
     42        void disableInput();
     43        void setOption(const QString & option_name, const QVariant & value = QVariant());
     44        void addUserOption(const QString & option);
     45        void addVF(const QString & filter_name, const QVariant & value = QVariant());
     46        void addAF(const QString & filter_name, const QVariant & value = QVariant());
     47        void addStereo3DFilter(const QString & in, const QString & out);
     48        void setSubStyles(const AssStyles & styles, const QString & assStylesFile = QString::null);
    6449
    65 signals:
    66         void processExited();
    67         void lineAvailable(QString line);
     50        // Slave commands
     51        void quit();
     52        void setVolume(int v);
     53        void setOSD(int o);
     54        void setAudio(int ID);
     55        void setVideo(int ID);
     56        void setSubtitle(int type, int ID);
     57        void disableSubtitles();
     58        void setSecondarySubtitle(int /*ID*/) {};
     59        void disableSecondarySubtitles() {};
     60        void setSubtitlesVisibility(bool b);
     61        void seek(double secs, int mode, bool precise);
     62        void mute(bool b);
     63        void setPause(bool b);
     64        void frameStep();
     65        void frameBackStep();
     66        void showOSDText(const QString & text, int duration, int level);
     67        void showFilenameOnOSD();
     68        void showTimeOnOSD();
     69        void setContrast(int value);
     70        void setBrightness(int value);
     71        void setHue(int value);
     72        void setSaturation(int value);
     73        void setGamma(int value);
     74        void setChapter(int ID);
     75        void nextChapter();
     76        void previousChapter();
     77        void setExternalSubtitleFile(const QString & filename);
     78        void setSubPos(int pos);
     79        void setSubScale(double value);
     80        void setSubStep(int value);
     81#ifdef MPV_SUPPORT
     82        void seekSub(int value);
     83#endif
     84        void setSubForcedOnly(bool b);
     85        void setSpeed(double value);
     86        void enableKaraoke(bool b);
     87        void enableExtrastereo(bool b);
     88        void enableVolnorm(bool b, const QString & option);
     89        void setAudioEqualizer(const QString & values);
     90        void setAudioDelay(double delay);
     91        void setSubDelay(double delay);
     92        void setLoop(int v);
     93        void takeScreenshot(ScreenshotType t, bool include_subtitles = false);
     94#ifdef CAPTURE_STREAM
     95        void switchCapturing();
     96#endif
     97        void setTitle(int ID);
     98        void changeVF(const QString & filter, bool enable, const QVariant & option = QVariant());
     99        void changeStereo3DFilter(bool enable, const QString & in, const QString & out);
     100#if DVDNAV_SUPPORT
     101        void discSetMousePos(int x, int y);
     102        void discButtonPressed(const QString & button_name);
     103#endif
     104        void setAspect(double aspect);
     105        void setFullscreen(bool b);
     106#if PROGRAM_SWITCH
     107        void setTSProgram(int ID);
     108#endif
     109        void toggleDeinterlace();
     110        void askForLength();
     111        void setOSDScale(double value);
     112        void setChannelsFile(const QString &) {};
    68113
    69         void receivedCurrentSec(double sec);
    70         void receivedCurrentFrame(int frame);
    71         void receivedPause();
    72         void receivedWindowResolution(int,int);
    73         void receivedNoVideo();
    74         void receivedVO(QString);
    75         void receivedAO(QString);
    76         void receivedEndOfFile();
    77         void mplayerFullyLoaded();
    78         void receivedStartingTime(double sec);
     114        void enableScreenshots(const QString & dir, const QString & templ = QString::null, const QString & format = QString::null);
    79115
    80         void receivedCacheMessage(QString);
    81         void receivedCacheEmptyMessage(QString);
    82         void receivedCreatingIndex(QString);
    83         void receivedConnectingToMessage(QString);
    84         void receivedResolvingMessage(QString);
    85         void receivedScreenshot(QString);
    86         void receivedUpdatingFontCache();
    87         void receivedScanningFont(QString);
    88         void receivedForbiddenText();
    89 
    90         void receivedStreamTitle(QString);
    91         void receivedStreamTitleAndUrl(QString,QString);
    92 
    93         void failedToParseMplayerVersion(QString line_with_mplayer_version);
    94 
    95 #if NOTIFY_SUB_CHANGES
    96         //! Emitted if a new subtitle has been added or an old one changed
    97         void subtitleInfoChanged(const SubTracks &);
    98 
    99         //! Emitted when subtitle info has been received but there wasn't anything new
    100         void subtitleInfoReceivedAgain(const SubTracks &);
    101 #endif
    102 #if NOTIFY_AUDIO_CHANGES
    103         //! Emitted if a new audio track been added or an old one changed
    104     void audioInfoChanged(const Tracks &);
    105 #endif
    106 
    107 #if DVDNAV_SUPPORT
    108         void receivedDVDTitle(int);
    109         void receivedDuration(double);
    110         void receivedTitleIsMenu();
    111         void receivedTitleIsMovie();
     116#ifdef CAPTURE_STREAM
     117        void setCaptureDirectory(const QString & dir);
    112118#endif
    113119
     
    117123        void gotError(QProcess::ProcessError);
    118124
    119 #if defined(Q_OS_OS2)
    120         void MPpipeOpen();
    121         void MPpipeClose();
    122         void MPpipeWrite(const QByteArray text);
    123 #endif
    124 
    125125private:
    126126        bool notified_mplayer_is_running;
    127127        bool received_end_of_file;
    128128
    129         MediaData md;
    130 
    131129        int last_sub_id;
    132 
    133 #if defined(Q_OS_OS2)
    134         PipeThread *pipeThread;       
    135         HPIPE hpipe;
    136         PID pidMP;
    137 #endif
    138130
    139131        int mplayer_svn;
     
    155147};
    156148
    157 
    158149#endif
Note: See TracChangeset for help on using the changeset viewer.