VirtualBox

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


Ignore:
Timestamp:
Aug 12, 2022 2:20:09 PM (2 years ago)
Author:
vboxsync
Message:

Recording: Implemented support for Vorbis codec (provided by libvorbis, not enabled by default yet). This also makes all the codec handling more abstract by using a simple codec wrapper, to keep other places free from codec-specific as much as possible. Initial implementation works and output files are being recognized by media players, but there still are some timing bugs to resolve, as well as optimizing the performance [build fix]. bugref:10275

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

Legend:

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

    r96175 r96176  
    444444typedef std::list<RecordingBlock *> RecordingBlockList;
    445445
    446 #ifdef VBOX_WITH_AUDIO_RECORDING
    447446int recordingCodecCreateAudio(PRECORDINGCODEC pCodec, RecordingAudioCodec_T enmAudioCodec);
    448 #endif
    449447int recordingCodecCreateVideo(PRECORDINGCODEC pCodec, RecordingVideoCodec_T enmVideoCodec);
    450448int recordingCodecInit(const PRECORDINGCODEC pCodec, const PRECORDINGCODECCALLBACKS pCallbacks, const settings::RecordingScreenSettings &Settings);
  • trunk/src/VBox/Main/include/RecordingStream.h

    r96175 r96176  
    126126    uint16_t GetID(void) const { return this->uScreenID; };
    127127#ifdef VBOX_WITH_AUDIO_RECORDING
    128     const PRECORDINGCODEC GetAudioCodec(void) { return &this->CodecAudio; };
     128    PRECORDINGCODEC GetAudioCodec(void) { return &this->CodecAudio; };
    129129#endif
    130     const PRECORDINGCODEC GetVideoCodec(void) { return &this->CodecVideo; };
     130    PRECORDINGCODEC GetVideoCodec(void) { return &this->CodecVideo; };
    131131    bool IsLimitReached(uint64_t msTimestamp) const;
    132132    bool IsReady(void) const;
     
    195195    uint64_t            tsStartMs;
    196196
    197 #ifdef VBOX_WITH_AUDIO_RECORDING
    198197    /** Audio codec instance data to use. */
    199198    RECORDINGCODEC                    CodecAudio;
    200 #endif
    201199    /** Video codec instance data to use. */
    202200    RECORDINGCODEC                    CodecVideo;
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