VirtualBox

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


Ignore:
Timestamp:
Aug 19, 2022 7:45:57 AM (2 years ago)
Author:
vboxsync
Message:

Recording/Main: Optimization: Check if recording stream updates are needed at display implementation level already, should save quite a few unnecessary calls. bugref:10275

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

Legend:

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

    r96260 r96322  
    7070    bool IsLimitReached(void);
    7171    bool IsLimitReached(uint32_t uScreen, uint64_t msTimestamp);
     72    bool NeedsUpdate( uint32_t uScreen, uint64_t msTimestamp);
    7273
    7374    DECLCALLBACK(int) OnLimitReached(uint32_t uScreen, int rc);
  • trunk/src/VBox/Main/include/RecordingInternals.h

    r96285 r96322  
    454454int recordingCodecEncode(PRECORDINGCODEC pCodec, const PRECORDINGFRAME pFrame, size_t *pcEncoded, size_t *pcbEncoded);
    455455int recordingCodecFinalize(PRECORDINGCODEC pCodec);
    456 uint32_t recordingCodecGetWritable(PRECORDINGCODEC pCodec, uint64_t msTimestamp);
     456bool recordingCodecIsInitialized(const PRECORDINGCODEC pCodec);
     457uint32_t recordingCodecGetWritable(const PRECORDINGCODEC pCodec, uint64_t msTimestamp);
    457458#endif /* !MAIN_INCLUDED_RecordingInternals_h */
  • trunk/src/VBox/Main/include/RecordingStream.h

    r96260 r96322  
    130130#endif
    131131    PRECORDINGCODEC GetVideoCodec(void) { return &this->CodecVideo; };
     132
    132133    bool IsLimitReached(uint64_t msTimestamp) const;
    133134    bool IsReady(void) const;
     135    bool NeedsUpdate(uint64_t msTimestamp) const;
    134136
    135137public:
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