Changeset 75341 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Nov 9, 2018 8:37:28 AM (6 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r75287 r75341 145 145 void i_videoRecDestroy(void); 146 146 int i_videoRecEnable(BOOL fEnable, util::AutoWriteLock *pAutoLock); 147 int i_videoRecGetSettings(settings:: CaptureSettings &Settings);147 int i_videoRecGetSettings(settings::RecordSettings &Settings); 148 148 int i_videoRecStart(void); 149 149 int i_videoRecStop(void); … … 179 179 HRESULT i_onDnDModeChange(DnDMode_T aDnDMode); 180 180 HRESULT i_onVRDEServerChange(BOOL aRestart); 181 HRESULT i_on CaptureChange();181 HRESULT i_onRecordChange(); 182 182 HRESULT i_onUSBControllerChange(); 183 183 HRESULT i_onSharedFolderChange(BOOL aGlobal); -
trunk/src/VBox/Main/include/DrvAudioVideoRec.h
r75254 r75341 45 45 public: 46 46 47 int applyConfiguration(const settings:: CaptureSettings &Settings);47 int applyConfiguration(const settings::RecordSettings &Settings); 48 48 49 49 public: … … 61 61 struct DRVAUDIOVIDEOREC *mpDrv; 62 62 /** Capturing configuration used for configuring the driver. */ 63 struct settings:: CaptureSettings mVideoRecCfg;63 struct settings::RecordSettings mVideoRecCfg; 64 64 }; 65 65 -
trunk/src/VBox/Main/include/MachineImpl.h
r75324 r75341 32 32 #include "ParallelPortImpl.h" 33 33 #include "BIOSSettingsImpl.h" 34 #include " CaptureSettingsImpl.h"34 #include "RecordSettingsImpl.h" 35 35 #include "StorageControllerImpl.h" // required for MachineImpl.h to compile on Windows 36 36 #include "USBControllerImpl.h" // required for MachineImpl.h to compile on Windows … … 266 266 GraphicsControllerType_T mGraphicsControllerType; 267 267 ULONG mVRAMSize; 268 settings:: CaptureSettings mCaptureSettings;268 settings::RecordSettings mRecordSettings; 269 269 ULONG mMonitorCount; 270 270 BOOL mHWVirtExEnabled; … … 477 477 IsModified_Snapshots = 0x0800, 478 478 IsModified_BandwidthControl = 0x1000, 479 IsModified_ Capture= 0x2000479 IsModified_Record = 0x2000 480 480 }; 481 481 … … 524 524 virtual HRESULT i_onStorageDeviceChange(IMediumAttachment * /* mediumAttachment */, BOOL /* remove */, 525 525 BOOL /* silent */) { return S_OK; } 526 virtual HRESULT i_on CaptureChange() { return S_OK; }526 virtual HRESULT i_onRecordChange() { return S_OK; } 527 527 528 528 HRESULT i_saveRegistryEntry(settings::MachineRegistryEntry &data); … … 777 777 const ComObjPtr<USBDeviceFilters> mUSBDeviceFilters; 778 778 const ComObjPtr<BIOSSettings> mBIOSSettings; 779 const ComObjPtr< CaptureSettings> mCaptureSettings;779 const ComObjPtr<RecordSettings> mRecordSettings; 780 780 const ComObjPtr<BandwidthControl> mBandwidthControl; 781 781 … … 825 825 826 826 friend class Appliance; 827 friend class CaptureSettings;828 friend class CaptureScreenSettings;827 friend class RecordSettings; 828 friend class RecordScreenSettings; 829 829 friend class SessionMachine; 830 830 friend class SnapshotMachine; … … 880 880 HRESULT setMonitorCount(ULONG aMonitorCount); 881 881 HRESULT getBIOSSettings(ComPtr<IBIOSSettings> &aBIOSSettings); 882 HRESULT get CaptureSettings(ComPtr<ICaptureSettings> &aCaptureSettings);882 HRESULT getRecordSettings(ComPtr<IRecordSettings> &aRecordSettings); 883 883 HRESULT getFirmwareType(FirmwareType_T *aFirmwareType); 884 884 HRESULT setFirmwareType(FirmwareType_T aFirmwareType); … … 1326 1326 HRESULT i_onCPUChange(ULONG aCPU, BOOL aRemove); 1327 1327 HRESULT i_onVRDEServerChange(BOOL aRestart); 1328 HRESULT i_on CaptureChange();1328 HRESULT i_onRecordChange(); 1329 1329 HRESULT i_onUSBControllerChange(); 1330 1330 HRESULT i_onUSBDeviceAttach(IUSBDevice *aDevice, -
trunk/src/VBox/Main/include/RecordScreenSettingsImpl.h
r75340 r75341 18 18 */ 19 19 20 #ifndef ____H_ CAPTURESCREENSETTINGS21 #define ____H_ CAPTURESCREENSETTINGS20 #ifndef ____H_RecordScreenSettings 21 #define ____H_RecordScreenSettings 22 22 23 #include " CaptureScreenSettingsWrap.h"23 #include "RecordScreenSettingsWrap.h" 24 24 25 class CaptureSettings;25 class RecordSettings; 26 26 27 27 namespace settings 28 28 { 29 struct CaptureScreenSettings;29 struct RecordScreenSettings; 30 30 } 31 31 32 class ATL_NO_VTABLE CaptureScreenSettings :33 public CaptureScreenSettingsWrap32 class ATL_NO_VTABLE RecordScreenSettings : 33 public RecordScreenSettingsWrap 34 34 { 35 35 public: 36 36 37 DECLARE_EMPTY_CTOR_DTOR( CaptureScreenSettings)37 DECLARE_EMPTY_CTOR_DTOR(RecordScreenSettings) 38 38 39 39 HRESULT FinalConstruct(); … … 41 41 42 42 // 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); 46 46 void uninit(); 47 47 48 48 // 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); 51 51 52 52 void i_rollback(); 53 53 void i_commit(); 54 void i_copyFrom( CaptureScreenSettings *aThat);54 void i_copyFrom(RecordScreenSettings *aThat); 55 55 void i_applyDefaults(); 56 56 57 57 private: 58 58 59 // wrapped I CaptureScreenSettings methods60 HRESULT isFeatureEnabled( CaptureFeature_T aFeature, BOOL *aEnabled);59 // wrapped IRecordScreenSettings methods 60 HRESULT isFeatureEnabled(RecordFeature_T aFeature, BOOL *aEnabled); 61 61 62 // wrapped I CaptureScreenSettings properties62 // wrapped IRecordScreenSettings properties 63 63 HRESULT getId(ULONG *id); 64 64 HRESULT getEnabled(BOOL *enabled); … … 66 66 HRESULT getFeatures(ULONG *aFeatures); 67 67 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); 70 70 71 71 HRESULT getFileName(com::Utf8Str &aFileName); … … 78 78 HRESULT setOptions(const com::Utf8Str &aOptions); 79 79 80 HRESULT getAudioCodec( CaptureAudioCodec_T *aCodec);81 HRESULT setAudioCodec( CaptureAudioCodec_T aCodec);80 HRESULT getAudioCodec(RecordAudioCodec_T *aCodec); 81 HRESULT setAudioCodec(RecordAudioCodec_T aCodec); 82 82 HRESULT getAudioHz(ULONG *aHz); 83 83 HRESULT setAudioHz(ULONG aHz); … … 87 87 HRESULT setAudioChannels(ULONG aChannels); 88 88 89 HRESULT getVideoCodec( CaptureVideoCodec_T *aCodec);90 HRESULT setVideoCodec( CaptureVideoCodec_T aCodec);89 HRESULT getVideoCodec(RecordVideoCodec_T *aCodec); 90 HRESULT setVideoCodec(RecordVideoCodec_T aCodec); 91 91 HRESULT getVideoWidth(ULONG *aVideoWidth); 92 92 HRESULT setVideoWidth(ULONG aVideoWidth); … … 95 95 HRESULT getVideoRate(ULONG *aVideoRate); 96 96 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); 99 99 HRESULT getVideoFPS(ULONG *aVideoFPS); 100 100 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); 103 103 104 104 private: … … 113 113 }; 114 114 115 #endif // ____H_ CAPTURESCREENSETTINGS115 #endif // ____H_RecordScreenSettings 116 116 -
trunk/src/VBox/Main/include/RecordSettingsImpl.h
r75340 r75341 18 18 */ 19 19 20 #ifndef ____H_ CAPTURESETTINGS21 #define ____H_ CAPTURESETTINGS20 #ifndef ____H_RecordSettings 21 #define ____H_RecordSettings 22 22 23 #include " CaptureSettingsWrap.h"23 #include "RecordSettingsWrap.h" 24 24 25 25 namespace settings 26 26 { 27 struct CaptureSettings;28 struct CaptureScreenSettings;27 struct RecordSettings; 28 struct RecordScreenSettings; 29 29 } 30 30 31 class CaptureScreenSettings;31 class RecordScreenSettings; 32 32 33 class ATL_NO_VTABLE CaptureSettings :34 public CaptureSettingsWrap33 class ATL_NO_VTABLE RecordSettings : 34 public RecordSettingsWrap 35 35 { 36 36 public: 37 37 38 DECLARE_EMPTY_CTOR_DTOR( CaptureSettings)38 DECLARE_EMPTY_CTOR_DTOR(RecordSettings) 39 39 40 40 HRESULT FinalConstruct(); … … 43 43 // public initializer/uninitializer for internal purposes only 44 44 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); 47 47 void uninit(); 48 48 49 49 // 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); 52 52 53 53 void i_rollback(); 54 54 void i_commit(); 55 void i_copyFrom( CaptureSettings *aThat);55 void i_copyFrom(RecordSettings *aThat); 56 56 void i_applyDefaults(void); 57 57 … … 63 63 64 64 /** 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; 66 66 67 67 void i_reset(void); 68 68 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); 72 72 73 73 private: 74 74 75 // wrapped I CaptureSettings properties75 // wrapped IRecordSettings properties 76 76 HRESULT getEnabled(BOOL *enabled); 77 77 HRESULT setEnabled(BOOL enable); 78 HRESULT getScreens(std::vector<ComPtr<I CaptureScreenSettings> > &aCaptureScreenSettings);78 HRESULT getScreens(std::vector<ComPtr<IRecordScreenSettings> > &aRecordScreenSettings); 79 79 80 // wrapped I CaptureSettings methods81 HRESULT getScreenSettings(ULONG uScreenId, ComPtr<I CaptureScreenSettings> &aCaptureScreenSettings);80 // wrapped IRecordSettings methods 81 HRESULT getScreenSettings(ULONG uScreenId, ComPtr<IRecordScreenSettings> &aRecordScreenSettings); 82 82 83 83 private: … … 86 86 Data *m; 87 87 }; 88 #endif // ____H_ CAPTURESETTINGS88 #endif // ____H_RecordSettings 89 89 -
trunk/src/VBox/Main/include/SessionImpl.h
r75251 r75341 102 102 HRESULT onCPUExecutionCapChange(ULONG aExecutionCap); 103 103 HRESULT onVRDEServerChange(BOOL aRestart); 104 HRESULT on CaptureChange();104 HRESULT onRecordChange(); 105 105 HRESULT onUSBControllerChange(); 106 106 HRESULT onSharedFolderChange(BOOL aGlobal); -
trunk/src/VBox/Main/include/VideoRec.h
r75313 r75341 41 41 CaptureContext(Console *pConsole); 42 42 43 CaptureContext(Console *pConsole, const settings:: CaptureSettings &a_Settings);43 CaptureContext(Console *pConsole, const settings::RecordSettings &a_Settings); 44 44 45 45 virtual ~CaptureContext(void); … … 47 47 public: 48 48 49 const settings:: CaptureSettings &GetConfig(void) const;49 const settings::RecordSettings &GetConfig(void) const; 50 50 CaptureStream *GetStream(unsigned uScreen) const; 51 51 size_t GetStreamCount(void) const; 52 52 53 int Create(const settings:: CaptureSettings &a_Settings);53 int Create(const settings::RecordSettings &a_Settings); 54 54 int Destroy(void); 55 55 … … 64 64 public: 65 65 66 bool IsFeatureEnabled( CaptureFeature_T enmFeature) const;66 bool IsFeatureEnabled(RecordFeature_T enmFeature) const; 67 67 bool IsReady(void) const; 68 68 bool IsReady(uint32_t uScreen, uint64_t uTimeStampMs) const; … … 72 72 protected: 73 73 74 int createInternal(const settings:: CaptureSettings &a_Settings);74 int createInternal(const settings::RecordSettings &a_Settings); 75 75 int startInternal(void); 76 76 int stopInternal(void); … … 104 104 Console *pConsole; 105 105 /** Used recording configuration. */ 106 settings:: CaptureSettings Settings;106 settings::RecordSettings Settings; 107 107 /** The current state. */ 108 108 VIDEORECSTS enmState; -
trunk/src/VBox/Main/include/VideoRecStream.h
r75313 r75341 111 111 CaptureStream(CaptureContext *pCtx); 112 112 113 CaptureStream(CaptureContext *pCtx, uint32_t uScreen, const settings:: CaptureScreenSettings &Settings);113 CaptureStream(CaptureContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings); 114 114 115 115 virtual ~CaptureStream(void); … … 117 117 public: 118 118 119 int Init(CaptureContext *pCtx, uint32_t uScreen, const settings:: CaptureScreenSettings &Settings);119 int Init(CaptureContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings); 120 120 int Uninit(void); 121 121 … … 124 124 uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, uint64_t uTimeStampMs); 125 125 126 const settings:: CaptureScreenSettings &GetConfig(void) const;126 const settings::RecordScreenSettings &GetConfig(void) const; 127 127 bool IsLimitReached(uint64_t tsNowMs) const; 128 128 bool IsReady(void) const; … … 130 130 protected: 131 131 132 int open(const settings:: CaptureScreenSettings &Settings);132 int open(const settings::RecordScreenSettings &Settings); 133 133 int close(void); 134 134 135 int initInternal(CaptureContext *pCtx, uint32_t uScreen, const settings:: CaptureScreenSettings &Settings);135 int initInternal(CaptureContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings); 136 136 int uninitInternal(void); 137 137 … … 205 205 } Video; 206 206 207 settings:: CaptureScreenSettings ScreenSettings;207 settings::RecordScreenSettings ScreenSettings; 208 208 /** Common set of video recording (data) blocks, needed for 209 209 * multiplexing to all recording streams. */
Note:
See TracChangeset
for help on using the changeset viewer.