VirtualBox

Changeset 75341 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Nov 9, 2018 8:37:28 AM (6 years ago)
Author:
vboxsync
Message:

Recording: Renaming APIs ICapture* -> IRecord* and other terminology to better distinguish from features like mouse capturing and stuff.

Location:
trunk/src/VBox/Main/include
Files:
6 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r75287 r75341  
    145145    void i_videoRecDestroy(void);
    146146    int i_videoRecEnable(BOOL fEnable, util::AutoWriteLock *pAutoLock);
    147     int i_videoRecGetSettings(settings::CaptureSettings &Settings);
     147    int i_videoRecGetSettings(settings::RecordSettings &Settings);
    148148    int i_videoRecStart(void);
    149149    int i_videoRecStop(void);
     
    179179    HRESULT i_onDnDModeChange(DnDMode_T aDnDMode);
    180180    HRESULT i_onVRDEServerChange(BOOL aRestart);
    181     HRESULT i_onCaptureChange();
     181    HRESULT i_onRecordChange();
    182182    HRESULT i_onUSBControllerChange();
    183183    HRESULT i_onSharedFolderChange(BOOL aGlobal);
  • trunk/src/VBox/Main/include/DrvAudioVideoRec.h

    r75254 r75341  
    4545public:
    4646
    47     int applyConfiguration(const settings::CaptureSettings &Settings);
     47    int applyConfiguration(const settings::RecordSettings &Settings);
    4848
    4949public:
     
    6161    struct DRVAUDIOVIDEOREC         *mpDrv;
    6262    /** Capturing configuration used for configuring the driver. */
    63     struct settings::CaptureSettings mVideoRecCfg;
     63    struct settings::RecordSettings mVideoRecCfg;
    6464};
    6565
  • trunk/src/VBox/Main/include/MachineImpl.h

    r75324 r75341  
    3232#include "ParallelPortImpl.h"
    3333#include "BIOSSettingsImpl.h"
    34 #include "CaptureSettingsImpl.h"
     34#include "RecordSettingsImpl.h"
    3535#include "StorageControllerImpl.h"          // required for MachineImpl.h to compile on Windows
    3636#include "USBControllerImpl.h"              // required for MachineImpl.h to compile on Windows
     
    266266        GraphicsControllerType_T mGraphicsControllerType;
    267267        ULONG               mVRAMSize;
    268         settings::CaptureSettings mCaptureSettings;
     268        settings::RecordSettings mRecordSettings;
    269269        ULONG               mMonitorCount;
    270270        BOOL                mHWVirtExEnabled;
     
    477477        IsModified_Snapshots            = 0x0800,
    478478        IsModified_BandwidthControl     = 0x1000,
    479         IsModified_Capture              = 0x2000
     479        IsModified_Record               = 0x2000
    480480    };
    481481
     
    524524    virtual HRESULT i_onStorageDeviceChange(IMediumAttachment * /* mediumAttachment */, BOOL /* remove */,
    525525                                            BOOL /* silent */) { return S_OK; }
    526     virtual HRESULT i_onCaptureChange() { return S_OK; }
     526    virtual HRESULT i_onRecordChange() { return S_OK; }
    527527
    528528    HRESULT i_saveRegistryEntry(settings::MachineRegistryEntry &data);
     
    777777    const ComObjPtr<USBDeviceFilters>  mUSBDeviceFilters;
    778778    const ComObjPtr<BIOSSettings>      mBIOSSettings;
    779     const ComObjPtr<CaptureSettings>   mCaptureSettings;
     779    const ComObjPtr<RecordSettings>    mRecordSettings;
    780780    const ComObjPtr<BandwidthControl>  mBandwidthControl;
    781781
     
    825825
    826826    friend class Appliance;
    827     friend class CaptureSettings;
    828     friend class CaptureScreenSettings;
     827    friend class RecordSettings;
     828    friend class RecordScreenSettings;
    829829    friend class SessionMachine;
    830830    friend class SnapshotMachine;
     
    880880    HRESULT setMonitorCount(ULONG aMonitorCount);
    881881    HRESULT getBIOSSettings(ComPtr<IBIOSSettings> &aBIOSSettings);
    882     HRESULT getCaptureSettings(ComPtr<ICaptureSettings> &aCaptureSettings);
     882    HRESULT getRecordSettings(ComPtr<IRecordSettings> &aRecordSettings);
    883883    HRESULT getFirmwareType(FirmwareType_T *aFirmwareType);
    884884    HRESULT setFirmwareType(FirmwareType_T aFirmwareType);
     
    13261326    HRESULT i_onCPUChange(ULONG aCPU, BOOL aRemove);
    13271327    HRESULT i_onVRDEServerChange(BOOL aRestart);
    1328     HRESULT i_onCaptureChange();
     1328    HRESULT i_onRecordChange();
    13291329    HRESULT i_onUSBControllerChange();
    13301330    HRESULT i_onUSBDeviceAttach(IUSBDevice *aDevice,
  • trunk/src/VBox/Main/include/RecordScreenSettingsImpl.h

    r75340 r75341  
    1818 */
    1919
    20 #ifndef ____H_CAPTURESCREENSETTINGS
    21 #define ____H_CAPTURESCREENSETTINGS
     20#ifndef ____H_RecordScreenSettings
     21#define ____H_RecordScreenSettings
    2222
    23 #include "CaptureScreenSettingsWrap.h"
     23#include "RecordScreenSettingsWrap.h"
    2424
    25 class CaptureSettings;
     25class RecordSettings;
    2626
    2727namespace settings
    2828{
    29     struct CaptureScreenSettings;
     29    struct RecordScreenSettings;
    3030}
    3131
    32 class ATL_NO_VTABLE CaptureScreenSettings :
    33     public CaptureScreenSettingsWrap
     32class ATL_NO_VTABLE RecordScreenSettings :
     33    public RecordScreenSettingsWrap
    3434{
    3535public:
    3636
    37     DECLARE_EMPTY_CTOR_DTOR(CaptureScreenSettings)
     37    DECLARE_EMPTY_CTOR_DTOR(RecordScreenSettings)
    3838
    3939    HRESULT FinalConstruct();
     
    4141
    4242    // public initializer/uninitializer for internal purposes only
    43     HRESULT init(CaptureSettings *aParent, uint32_t uScreenId, const settings::CaptureScreenSettings& data);
    44     HRESULT init(CaptureSettings *aParent, CaptureScreenSettings *that);
    45     HRESULT initCopy(CaptureSettings *aParent, CaptureScreenSettings *that);
     43    HRESULT init(RecordSettings *aParent, uint32_t uScreenId, const settings::RecordScreenSettings& data);
     44    HRESULT init(RecordSettings *aParent, RecordScreenSettings *that);
     45    HRESULT initCopy(RecordSettings *aParent, RecordScreenSettings *that);
    4646    void uninit();
    4747
    4848    // public methods only for internal purposes
    49     HRESULT i_loadSettings(const settings::CaptureScreenSettings &data);
    50     HRESULT i_saveSettings(settings::CaptureScreenSettings &data);
     49    HRESULT i_loadSettings(const settings::RecordScreenSettings &data);
     50    HRESULT i_saveSettings(settings::RecordScreenSettings &data);
    5151
    5252    void i_rollback();
    5353    void i_commit();
    54     void i_copyFrom(CaptureScreenSettings *aThat);
     54    void i_copyFrom(RecordScreenSettings *aThat);
    5555    void i_applyDefaults();
    5656
    5757private:
    5858
    59     // wrapped ICaptureScreenSettings methods
    60     HRESULT isFeatureEnabled(CaptureFeature_T aFeature, BOOL *aEnabled);
     59    // wrapped IRecordScreenSettings methods
     60    HRESULT isFeatureEnabled(RecordFeature_T aFeature, BOOL *aEnabled);
    6161
    62     // wrapped ICaptureScreenSettings properties
     62    // wrapped IRecordScreenSettings properties
    6363    HRESULT getId(ULONG *id);
    6464    HRESULT getEnabled(BOOL *enabled);
     
    6666    HRESULT getFeatures(ULONG *aFeatures);
    6767    HRESULT setFeatures(ULONG aFeatures);
    68     HRESULT getDestination(CaptureDestination_T *aDestination);
    69     HRESULT setDestination(CaptureDestination_T aDestination);
     68    HRESULT getDestination(RecordDestination_T *aDestination);
     69    HRESULT setDestination(RecordDestination_T aDestination);
    7070
    7171    HRESULT getFileName(com::Utf8Str &aFileName);
     
    7878    HRESULT setOptions(const com::Utf8Str &aOptions);
    7979
    80     HRESULT getAudioCodec(CaptureAudioCodec_T *aCodec);
    81     HRESULT setAudioCodec(CaptureAudioCodec_T aCodec);
     80    HRESULT getAudioCodec(RecordAudioCodec_T *aCodec);
     81    HRESULT setAudioCodec(RecordAudioCodec_T aCodec);
    8282    HRESULT getAudioHz(ULONG *aHz);
    8383    HRESULT setAudioHz(ULONG aHz);
     
    8787    HRESULT setAudioChannels(ULONG aChannels);
    8888
    89     HRESULT getVideoCodec(CaptureVideoCodec_T *aCodec);
    90     HRESULT setVideoCodec(CaptureVideoCodec_T aCodec);
     89    HRESULT getVideoCodec(RecordVideoCodec_T *aCodec);
     90    HRESULT setVideoCodec(RecordVideoCodec_T aCodec);
    9191    HRESULT getVideoWidth(ULONG *aVideoWidth);
    9292    HRESULT setVideoWidth(ULONG aVideoWidth);
     
    9595    HRESULT getVideoRate(ULONG *aVideoRate);
    9696    HRESULT setVideoRate(ULONG aVideoRate);
    97     HRESULT getVideoRateControlMode(CaptureVideoRateControlMode_T *aMode);
    98     HRESULT setVideoRateControlMode(CaptureVideoRateControlMode_T aMode);
     97    HRESULT getVideoRateControlMode(RecordVideoRateControlMode_T *aMode);
     98    HRESULT setVideoRateControlMode(RecordVideoRateControlMode_T aMode);
    9999    HRESULT getVideoFPS(ULONG *aVideoFPS);
    100100    HRESULT setVideoFPS(ULONG aVideoFPS);
    101     HRESULT getVideoScalingMethod(CaptureVideoScalingMethod_T *aMode);
    102     HRESULT setVideoScalingMethod(CaptureVideoScalingMethod_T aMode);
     101    HRESULT getVideoScalingMethod(RecordVideoScalingMethod_T *aMode);
     102    HRESULT setVideoScalingMethod(RecordVideoScalingMethod_T aMode);
    103103
    104104private:
     
    113113};
    114114
    115 #endif // ____H_CAPTURESCREENSETTINGS
     115#endif // ____H_RecordScreenSettings
    116116
  • trunk/src/VBox/Main/include/RecordSettingsImpl.h

    r75340 r75341  
    1818 */
    1919
    20 #ifndef ____H_CAPTURESETTINGS
    21 #define ____H_CAPTURESETTINGS
     20#ifndef ____H_RecordSettings
     21#define ____H_RecordSettings
    2222
    23 #include "CaptureSettingsWrap.h"
     23#include "RecordSettingsWrap.h"
    2424
    2525namespace settings
    2626{
    27     struct CaptureSettings;
    28     struct CaptureScreenSettings;
     27    struct RecordSettings;
     28    struct RecordScreenSettings;
    2929}
    3030
    31 class CaptureScreenSettings;
     31class RecordScreenSettings;
    3232
    33 class ATL_NO_VTABLE CaptureSettings :
    34     public CaptureSettingsWrap
     33class ATL_NO_VTABLE RecordSettings :
     34    public RecordSettingsWrap
    3535{
    3636public:
    3737
    38     DECLARE_EMPTY_CTOR_DTOR(CaptureSettings)
     38    DECLARE_EMPTY_CTOR_DTOR(RecordSettings)
    3939
    4040    HRESULT FinalConstruct();
     
    4343    // public initializer/uninitializer for internal purposes only
    4444    HRESULT init(Machine *parent);
    45     HRESULT init(Machine *parent, CaptureSettings *that);
    46     HRESULT initCopy(Machine *parent, CaptureSettings *that);
     45    HRESULT init(Machine *parent, RecordSettings *that);
     46    HRESULT initCopy(Machine *parent, RecordSettings *that);
    4747    void uninit();
    4848
    4949    // public methods only for internal purposes
    50     HRESULT i_loadSettings(const settings::CaptureSettings &data);
    51     HRESULT i_saveSettings(settings::CaptureSettings &data);
     50    HRESULT i_loadSettings(const settings::RecordSettings &data);
     51    HRESULT i_saveSettings(settings::RecordSettings &data);
    5252
    5353    void i_rollback();
    5454    void i_commit();
    55     void i_copyFrom(CaptureSettings *aThat);
     55    void i_copyFrom(RecordSettings *aThat);
    5656    void i_applyDefaults(void);
    5757
     
    6363
    6464    /** Map of screen settings objects. The key specifies the screen ID. */
    65     typedef std::map <uint32_t, ComObjPtr<CaptureScreenSettings> > CaptureScreenSettingsMap;
     65    typedef std::map <uint32_t, ComObjPtr<RecordScreenSettings> > RecordScreenSettingsMap;
    6666
    6767    void i_reset(void);
    6868    int i_syncToMachineDisplays(void);
    69     int i_createScreenObj(CaptureScreenSettingsMap &screenSettingsMap, uint32_t uScreenId, const settings::CaptureScreenSettings &data);
    70     int i_destroyScreenObj(CaptureScreenSettingsMap &screenSettingsMap, uint32_t uScreenId);
    71     int i_destroyAllScreenObj(CaptureScreenSettingsMap &screenSettingsMap);
     69    int i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId, const settings::RecordScreenSettings &data);
     70    int i_destroyScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId);
     71    int i_destroyAllScreenObj(RecordScreenSettingsMap &screenSettingsMap);
    7272
    7373private:
    7474
    75     // wrapped ICaptureSettings properties
     75    // wrapped IRecordSettings properties
    7676    HRESULT getEnabled(BOOL *enabled);
    7777    HRESULT setEnabled(BOOL enable);
    78     HRESULT getScreens(std::vector<ComPtr<ICaptureScreenSettings> > &aCaptureScreenSettings);
     78    HRESULT getScreens(std::vector<ComPtr<IRecordScreenSettings> > &aRecordScreenSettings);
    7979
    80     // wrapped ICaptureSettings methods
    81     HRESULT getScreenSettings(ULONG uScreenId, ComPtr<ICaptureScreenSettings> &aCaptureScreenSettings);
     80    // wrapped IRecordSettings methods
     81    HRESULT getScreenSettings(ULONG uScreenId, ComPtr<IRecordScreenSettings> &aRecordScreenSettings);
    8282
    8383private:
     
    8686    Data *m;
    8787};
    88 #endif // ____H_CAPTURESETTINGS
     88#endif // ____H_RecordSettings
    8989
  • trunk/src/VBox/Main/include/SessionImpl.h

    r75251 r75341  
    102102    HRESULT onCPUExecutionCapChange(ULONG aExecutionCap);
    103103    HRESULT onVRDEServerChange(BOOL aRestart);
    104     HRESULT onCaptureChange();
     104    HRESULT onRecordChange();
    105105    HRESULT onUSBControllerChange();
    106106    HRESULT onSharedFolderChange(BOOL aGlobal);
  • trunk/src/VBox/Main/include/VideoRec.h

    r75313 r75341  
    4141    CaptureContext(Console *pConsole);
    4242
    43     CaptureContext(Console *pConsole, const settings::CaptureSettings &a_Settings);
     43    CaptureContext(Console *pConsole, const settings::RecordSettings &a_Settings);
    4444
    4545    virtual ~CaptureContext(void);
     
    4747public:
    4848
    49     const settings::CaptureSettings &GetConfig(void) const;
     49    const settings::RecordSettings &GetConfig(void) const;
    5050    CaptureStream *GetStream(unsigned uScreen) const;
    5151    size_t GetStreamCount(void) const;
    5252
    53     int Create(const settings::CaptureSettings &a_Settings);
     53    int Create(const settings::RecordSettings &a_Settings);
    5454    int Destroy(void);
    5555
     
    6464public:
    6565
    66     bool IsFeatureEnabled(CaptureFeature_T enmFeature) const;
     66    bool IsFeatureEnabled(RecordFeature_T enmFeature) const;
    6767    bool IsReady(void) const;
    6868    bool IsReady(uint32_t uScreen, uint64_t uTimeStampMs) const;
     
    7272protected:
    7373
    74     int createInternal(const settings::CaptureSettings &a_Settings);
     74    int createInternal(const settings::RecordSettings &a_Settings);
    7575    int startInternal(void);
    7676    int stopInternal(void);
     
    104104    Console                  *pConsole;
    105105    /** Used recording configuration. */
    106     settings::CaptureSettings Settings;
     106    settings::RecordSettings Settings;
    107107    /** The current state. */
    108108    VIDEORECSTS               enmState;
  • trunk/src/VBox/Main/include/VideoRecStream.h

    r75313 r75341  
    111111    CaptureStream(CaptureContext *pCtx);
    112112
    113     CaptureStream(CaptureContext *pCtx, uint32_t uScreen, const settings::CaptureScreenSettings &Settings);
     113    CaptureStream(CaptureContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings);
    114114
    115115    virtual ~CaptureStream(void);
     
    117117public:
    118118
    119     int Init(CaptureContext *pCtx, uint32_t uScreen, const settings::CaptureScreenSettings &Settings);
     119    int Init(CaptureContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings);
    120120    int Uninit(void);
    121121
     
    124124                       uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, uint64_t uTimeStampMs);
    125125
    126     const settings::CaptureScreenSettings &GetConfig(void) const;
     126    const settings::RecordScreenSettings &GetConfig(void) const;
    127127    bool IsLimitReached(uint64_t tsNowMs) const;
    128128    bool IsReady(void) const;
     
    130130protected:
    131131
    132     int open(const settings::CaptureScreenSettings &Settings);
     132    int open(const settings::RecordScreenSettings &Settings);
    133133    int close(void);
    134134
    135     int initInternal(CaptureContext *pCtx, uint32_t uScreen, const settings::CaptureScreenSettings &Settings);
     135    int initInternal(CaptureContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings);
    136136    int uninitInternal(void);
    137137
     
    205205    } Video;
    206206
    207     settings::CaptureScreenSettings ScreenSettings;
     207    settings::RecordScreenSettings ScreenSettings;
    208208    /** Common set of video recording (data) blocks, needed for
    209209     *  multiplexing to all recording streams. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette