VirtualBox

Changeset 95743 in vbox for trunk/include


Ignore:
Timestamp:
Jul 20, 2022 9:32:46 AM (2 years ago)
Author:
vboxsync
Message:

Main/Recording: Added ISystemProperties::getRecordingFeatures to allow clients querying for enabled recording features at runtime. Also added IRecordingScreenSettings::videoDeadline + audioDeadline attributes to allow specifying the video/audio codec's (encoding) deadlines [build fix, forgot to commit a file]. bugref:10244

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/settings.h

    r95639 r95743  
    624624typedef std::map<RecordingFeature_T, bool> RecordingFeatureMap;
    625625
     626/**
     627 * Recording settings for a single screen (e.g. virtual monitor).
     628 */
    626629struct RecordingScreenSettings
    627630{
     
    657660    struct Audio
    658661    {
    659         Audio()
    660             : enmAudioCodec(RecordingAudioCodec_Opus)
    661             , uHz(22050)
    662             , cBits(16)
    663             , cChannels(2) { }
    664 
    665662        /** The audio codec type to use. */
    666         RecordingAudioCodec_T enmAudioCodec; /** @todo Implement with next settings version bump. */
     663        RecordingAudioCodec_T    enmAudioCodec; // requires settings version 1.19 (VirtualBox 7.0)
     664        /** Codec deadline to use. */
     665        RecordingCodecDeadline_T enmDeadline;   // requires settings version 1.19 (VirtualBox 7.0)
    667666        /** Hz rate. */
    668         uint16_t              uHz;           /** @todo Implement with next settings version bump. */
     667        uint16_t                 uHz;           // requires settings version 1.19 (VirtualBox 7.0)
    669668        /** Bits per sample. */
    670         uint8_t               cBits;         /** @todo Implement with next settings version bump. */
     669        uint8_t                  cBits;         // requires settings version 1.19 (VirtualBox 7.0)
    671670        /** Number of audio channels. */
    672         uint8_t               cChannels;     /** @todo Implement with next settings version bump. */
     671        uint8_t                  cChannels;     // requires settings version 1.19 (VirtualBox 7.0)
    673672    } Audio;
    674673
     
    678677    struct Video
    679678    {
    680         Video()
    681             : enmCodec(RecordingVideoCodec_VP8)
    682             , ulWidth(1024)
    683             , ulHeight(768)
    684             , ulRate(512)
    685             , ulFPS(25) { }
    686 
    687679        /** The codec to use. */
    688         RecordingVideoCodec_T enmCodec;  /** @todo Implement with next settings version bump. */
     680        RecordingVideoCodec_T    enmCodec;    // requires settings version 1.19 (VirtualBox 7.0)
     681        /** Codec deadline to use. */
     682        RecordingCodecDeadline_T enmDeadline; // requires settings version 1.19 (VirtualBox 7.0)
    689683        /** Target frame width in pixels (X). */
    690         uint32_t              ulWidth;   // requires settings version 1.14 (VirtualBox 4.3)
     684            uint32_t             ulWidth;     // requires settings version 1.14 (VirtualBox 4.3)
    691685        /** Target frame height in pixels (Y). */
    692         uint32_t              ulHeight;  // requires settings version 1.14 (VirtualBox 4.3)
     686        uint32_t                 ulHeight;    // requires settings version 1.14 (VirtualBox 4.3)
    693687        /** Encoding rate. */
    694         uint32_t              ulRate;    // requires settings version 1.14 (VirtualBox 4.3)
     688        uint32_t                 ulRate;      // requires settings version 1.14 (VirtualBox 4.3)
    695689        /** Frames per second (FPS). */
    696         uint32_t              ulFPS;     // requires settings version 1.14 (VirtualBox 4.3)
     690        uint32_t                 ulFPS;       // requires settings version 1.14 (VirtualBox 4.3)
    697691    } Video;
    698692
     
    702696    struct File
    703697    {
    704         File()
    705             : ulMaxSizeMB(0) { }
    706 
    707698        /** Maximum size (in MB) the file is allowed to have.
    708699         *  When reaching the limit, recording will stop. 0 means no limit. */
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