VirtualBox

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


Ignore:
Timestamp:
Aug 19, 2022 8:15:55 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153138
Message:

Recording/Main: Renaming (use m_ prefixes for class variables).

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

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

    r96322 r96324  
    4848    size_t GetStreamCount(void) const;
    4949#ifdef VBOX_WITH_AUDIO_RECORDING
    50     PRECORDINGCODEC GetCodecAudio(void) { return &this->CodecAudio; }
     50    PRECORDINGCODEC GetCodecAudio(void) { return &this->m_CodecAudio; }
    5151#endif
    5252
     
    118118
    119119    /** Pointer to the console object. */
    120     Console                     *pConsole;
     120    Console                     *m_pConsole;
    121121    /** Used recording configuration. */
    122122    settings::RecordingSettings  m_Settings;
    123123    /** The current state. */
    124     RECORDINGSTS                 enmState;
     124    RECORDINGSTS                 m_enmState;
    125125    /** Critical section to serialize access. */
    126     RTCRITSECT                   CritSect;
     126    RTCRITSECT                   m_CritSect;
    127127    /** Semaphore to signal the encoding worker thread. */
    128     RTSEMEVENT                   WaitEvent;
     128    RTSEMEVENT                   m_WaitEvent;
    129129    /** Shutdown indicator. */
    130     bool                         fShutdown;
     130    bool                         m_fShutdown;
    131131    /** Encoding worker thread. */
    132     RTTHREAD                     Thread;
     132    RTTHREAD                     m_Thread;
    133133    /** Vector of current recording streams.
    134134     *  Per VM screen (display) one recording stream is being used. */
    135     RecordingStreams             vecStreams;
     135    RecordingStreams             m_vecStreams;
    136136    /** Number of streams in vecStreams which currently are enabled for recording. */
    137     uint16_t                     cStreamsEnabled;
     137    uint16_t                     m_cStreamsEnabled;
    138138    /** Timestamp (in ms) of when recording has been started. */
    139     uint64_t                     tsStartMs;
     139    uint64_t                     m_tsStartMs;
    140140#ifdef VBOX_WITH_AUDIO_RECORDING
    141141    /** Audio codec to use.
     
    145145     *  all audio data of a VM will be the same for each stream at a given
    146146     *  point in time. */
    147     RECORDINGCODEC               CodecAudio;
     147    RECORDINGCODEC               m_CodecAudio;
    148148#endif /* VBOX_WITH_AUDIO_RECORDING */
    149149    /** Block map of raw common data blocks which need to get encoded first. */
    150     RecordingBlockMap            mapBlocksRaw;
     150    RecordingBlockMap            m_mapBlocksRaw;
    151151    /** Block map of encoded common blocks.
    152152     *
     
    159159     *  For now this only affects audio, e.g. all recording streams
    160160     *  need to have the same audio data at a specific point in time. */
    161     RecordingBlockMap            mapBlocksEncoded;
     161    RecordingBlockMap            m_mapBlocksEncoded;
    162162};
    163163#endif /* !MAIN_INCLUDED_Recording_h */
  • trunk/src/VBox/Main/include/RecordingStream.h

    r96322 r96324  
    125125
    126126    const settings::RecordingScreenSettings &GetConfig(void) const;
    127     uint16_t GetID(void) const { return this->uScreenID; };
     127    uint16_t GetID(void) const { return this->m_uScreenID; };
    128128#ifdef VBOX_WITH_AUDIO_RECORDING
    129     PRECORDINGCODEC GetAudioCodec(void) { return this->pCodecAudio; };
     129    PRECORDINGCODEC GetAudioCodec(void) { return this->m_pCodecAudio; };
    130130#endif
    131     PRECORDINGCODEC GetVideoCodec(void) { return &this->CodecVideo; };
     131    PRECORDINGCODEC GetVideoCodec(void) { return &this->m_CodecVideo; };
    132132
    133133    bool IsLimitReached(uint64_t msTimestamp) const;
     
    176176    RecordingContext       *m_pCtx;
    177177    /** The current state. */
    178     RECORDINGSTREAMSTATE    enmState;
     178    RECORDINGSTREAMSTATE    m_enmState;
    179179    struct
    180180    {
    181181        /** File handle to use for writing. */
    182         RTFILE              hFile;
     182        RTFILE              m_hFile;
    183183        /** Pointer to WebM writer instance being used. */
    184         WebMWriter         *pWEBM;
     184        WebMWriter         *m_pWEBM;
    185185    } File;
    186     bool                fEnabled;
     186    bool                m_fEnabled;
    187187    /** Track number of audio stream.
    188188     *  Set to UINT8_MAX if not being used. */
    189     uint8_t             uTrackAudio;
     189    uint8_t             m_uTrackAudio;
    190190    /** Track number of video stream.
    191191     *  Set to UINT8_MAX if not being used. */
    192     uint8_t             uTrackVideo;
     192    uint8_t             m_uTrackVideo;
    193193    /** Screen ID. */
    194     uint16_t            uScreenID;
     194    uint16_t            m_uScreenID;
    195195    /** Critical section to serialize access. */
    196     RTCRITSECT          CritSect;
     196    RTCRITSECT          m_CritSect;
    197197    /** Timestamp (in ms) of when recording has been started. */
    198     uint64_t            tsStartMs;
     198    uint64_t            m_tsStartMs;
    199199#ifdef VBOX_WITH_AUDIO_RECORDING
    200200    /** Pointer to audio codec instance data to use.
     
    206206     *
    207207     *  Might be NULL if not being used. */
    208     PRECORDINGCODEC     pCodecAudio;
     208    PRECORDINGCODEC     m_pCodecAudio;
    209209#endif /* VBOX_WITH_AUDIO_RECORDING */
    210210    /** Video codec instance data to use. */
    211     RECORDINGCODEC      CodecVideo;
     211    RECORDINGCODEC      m_CodecVideo;
    212212    /** Screen settings to use. */
    213213    settings::RecordingScreenSettings
    214                         ScreenSettings;
     214                        m_ScreenSettings;
    215215    /** Common set of recording (data) blocks, needed for
    216216     *  multiplexing to all recording streams. */
    217     RecordingBlockSet   Blocks;
     217    RecordingBlockSet   m_Blocks;
    218218};
    219219
  • trunk/src/VBox/Main/include/WebMWriter.h

    r96285 r96324  
    373373    {
    374374        WebMSegment(void)
    375             : tcAbsStartMs(0)
    376             , tcAbsLastWrittenMs(0)
    377             , offStart(0)
    378             , offInfo(0)
    379             , offSeekInfo(0)
    380             , offTracks(0)
    381             , offCues(0)
    382             , cClusters(0)
    383         {
    384             uTimecodeScaleFactor = VBOX_WEBM_TIMECODESCALE_FACTOR_MS;
    385 
    386             LogFunc(("Default timecode scale is: %RU64ns\n", uTimecodeScaleFactor));
     375            : m_tcAbsStartMs(0)
     376            , m_tcAbsLastWrittenMs(0)
     377            , m_offStart(0)
     378            , m_offInfo(0)
     379            , m_offSeekInfo(0)
     380            , m_offTracks(0)
     381            , m_offCues(0)
     382            , m_cClusters(0)
     383        {
     384            m_uTimecodeScaleFactor = VBOX_WEBM_TIMECODESCALE_FACTOR_MS;
     385
     386            LogFunc(("Default timecode scale is: %RU64ns\n", m_uTimecodeScaleFactor));
    387387        }
    388388
     
    399399        int init(void)
    400400        {
    401             return RTCritSectInit(&CritSect);
     401            return RTCritSectInit(&m_CritSect);
    402402        }
    403403
     
    409409            clear();
    410410
    411             RTCritSectDelete(&CritSect);
     411            RTCritSectDelete(&m_CritSect);
    412412        }
    413413
     
    417417        void clear(void)
    418418        {
    419             WebMCuePointList::iterator itCuePoint = lstCuePoints.begin();
    420             while (itCuePoint != lstCuePoints.end())
     419            WebMCuePointList::iterator itCuePoint = m_lstCuePoints.begin();
     420            while (itCuePoint != m_lstCuePoints.end())
    421421            {
    422422                WebMCuePoint *pCuePoint = (*itCuePoint);
     
    424424                delete pCuePoint;
    425425
    426                 lstCuePoints.erase(itCuePoint);
    427                 itCuePoint = lstCuePoints.begin();
     426                m_lstCuePoints.erase(itCuePoint);
     427                itCuePoint = m_lstCuePoints.begin();
    428428            }
    429429
    430             Assert(lstCuePoints.empty());
     430            Assert(m_lstCuePoints.empty());
    431431        }
    432432
    433433        /** Critical section for serializing access to this segment. */
    434         RTCRITSECT                      CritSect;
     434        RTCRITSECT                      m_CritSect;
    435435
    436436        /** The timecode scale factor of this segment. */
    437         uint64_t                        uTimecodeScaleFactor;
     437        uint64_t                        m_uTimecodeScaleFactor;
    438438
    439439        /** Absolute timecode (in ms) when starting this segment. */
    440         WebMTimecodeAbs                 tcAbsStartMs;
     440        WebMTimecodeAbs                 m_tcAbsStartMs;
    441441        /** Absolute timecode (in ms) of last write. */
    442         WebMTimecodeAbs                 tcAbsLastWrittenMs;
     442        WebMTimecodeAbs                 m_tcAbsLastWrittenMs;
    443443
    444444        /** Absolute offset (in bytes) of CurSeg. */
    445         uint64_t                        offStart;
     445        uint64_t                        m_offStart;
    446446        /** Absolute offset (in bytes) of general info. */
    447         uint64_t                        offInfo;
     447        uint64_t                        m_offInfo;
    448448        /** Absolute offset (in bytes) of seeking info. */
    449         uint64_t                        offSeekInfo;
     449        uint64_t                        m_offSeekInfo;
    450450        /** Absolute offset (in bytes) of tracks. */
    451         uint64_t                        offTracks;
     451        uint64_t                        m_offTracks;
    452452        /** Absolute offset (in bytes) of cues table. */
    453         uint64_t                        offCues;
     453        uint64_t                        m_offCues;
    454454        /** List of cue points. Needed for seeking table. */
    455         WebMCuePointList                lstCuePoints;
     455        WebMCuePointList                m_lstCuePoints;
    456456
    457457        /** Total number of clusters. */
    458         uint64_t                        cClusters;
     458        uint64_t                        m_cClusters;
    459459
    460460        /** Map of tracks.
    461461         *  The key marks the track number (*not* the UUID!). */
    462         std::map <uint8_t, WebMTrack *> mapTracks;
     462        std::map <uint8_t, WebMTrack *> m_mapTracks;
    463463
    464464        /** Current cluster which is being handled.
     
    466466         *  Note that we don't need (and shouldn't need, as this can be a *lot* of data!) a
    467467         *  list of all clusters. */
    468         WebMCluster                     CurCluster;
    469 
    470         WebMQueue                       queueBlocks;
    471 
    472     } CurSeg;
     468        WebMCluster                     m_CurCluster;
     469
     470        WebMQueue                       m_queueBlocks;
     471
     472    } m_CurSeg;
    473473
    474474    /** Audio codec to use. */
     
    542542     * @returns Number of written WebM clusters; 0 when no clusters written (empty file).
    543543     */
    544     uint64_t GetClusters(void) const { return CurSeg.cClusters; }
     544    uint64_t GetClusters(void) const { return m_CurSeg.m_cClusters; }
    545545
    546546protected:
Note: See TracChangeset for help on using the changeset viewer.

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