VirtualBox

Changeset 82423 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 5, 2019 4:09:59 PM (5 years ago)
Author:
vboxsync
Message:

Main/Recording: Cleanup; greatly reduced the include maze [build fix].

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

Legend:

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

    r82422 r82423  
    2121# pragma once
    2222#endif
    23 
    24 using namespace com;
    2523
    2624#include <VBox/err.h>
  • trunk/src/VBox/Main/src-client/Recording.cpp

    r76893 r82423  
    5656//# define VBOX_RECORDING_DUMP
    5757#endif
    58 
    59 #ifdef VBOX_RECORDING_DUMP
    60 #pragma pack(push)
    61 #pragma pack(1)
    62 typedef struct
    63 {
    64     uint16_t u16Magic;
    65     uint32_t u32Size;
    66     uint16_t u16Reserved1;
    67     uint16_t u16Reserved2;
    68     uint32_t u32OffBits;
    69 } RECORDINGBMPHDR, *PRECORDINGBMPHDR;
    70 AssertCompileSize(RECORDINGBMPHDR, 14);
    71 
    72 typedef struct
    73 {
    74     uint32_t u32Size;
    75     uint32_t u32Width;
    76     uint32_t u32Height;
    77     uint16_t u16Planes;
    78     uint16_t u16BitCount;
    79     uint32_t u32Compression;
    80     uint32_t u32SizeImage;
    81     uint32_t u32XPelsPerMeter;
    82     uint32_t u32YPelsPerMeter;
    83     uint32_t u32ClrUsed;
    84     uint32_t u32ClrImportant;
    85 } RECORDINGBMPDIBHDR, *PRECORDINGBMPDIBHDR;
    86 AssertCompileSize(RECORDINGBMPDIBHDR, 40);
    87 
    88 #pragma pack(pop)
    89 #endif /* VBOX_RECORDING_DUMP */
    9058
    9159
  • trunk/src/VBox/Main/src-client/RecordingStream.cpp

    r82422 r82423  
    2727#include "RecordingUtils.h"
    2828#include "WebMWriter.h"
    29 
    3029
    3130#ifdef VBOX_RECORDING_DUMP
     
    214213    while ((pos = strOptions.parseKeyValue(key, value, pos)) != com::Utf8Str::npos)
    215214    {
    216         if (key.compare("vc_quality", Utf8Str::CaseInsensitive) == 0)
     215        if (key.compare("vc_quality", com::Utf8Str::CaseInsensitive) == 0)
    217216        {
    218217#ifdef VBOX_WITH_LIBVPX
    219218            Assert(this->ScreenSettings.Video.ulFPS);
    220             if (value.compare("realtime", Utf8Str::CaseInsensitive) == 0)
     219            if (value.compare("realtime", com::Utf8Str::CaseInsensitive) == 0)
    221220                this->Video.Codec.VPX.uEncoderDeadline = VPX_DL_REALTIME;
    222             else if (value.compare("good", Utf8Str::CaseInsensitive) == 0)
     221            else if (value.compare("good", com::Utf8Str::CaseInsensitive) == 0)
    223222                this->Video.Codec.VPX.uEncoderDeadline = 1000000 / this->ScreenSettings.Video.ulFPS;
    224             else if (value.compare("best", Utf8Str::CaseInsensitive) == 0)
     223            else if (value.compare("best", com::Utf8Str::CaseInsensitive) == 0)
    225224                this->Video.Codec.VPX.uEncoderDeadline = VPX_DL_BEST_QUALITY;
    226225            else
     
    230229            }
    231230        }
    232         else if (key.compare("vc_enabled", Utf8Str::CaseInsensitive) == 0)
    233         {
    234             if (value.compare("false", Utf8Str::CaseInsensitive) == 0)
     231        else if (key.compare("vc_enabled", com::Utf8Str::CaseInsensitive) == 0)
     232        {
     233            if (value.compare("false", com::Utf8Str::CaseInsensitive) == 0)
    235234                this->ScreenSettings.featureMap[RecordingFeature_Video] = false;
    236235        }
    237         else if (key.compare("ac_enabled", Utf8Str::CaseInsensitive) == 0)
     236        else if (key.compare("ac_enabled", com::Utf8Str::CaseInsensitive) == 0)
    238237        {
    239238#ifdef VBOX_WITH_AUDIO_RECORDING
    240             if (value.compare("true", Utf8Str::CaseInsensitive) == 0)
     239            if (value.compare("true", com::Utf8Str::CaseInsensitive) == 0)
    241240                this->ScreenSettings.featureMap[RecordingFeature_Audio] = true;
    242241#endif
    243242        }
    244         else if (key.compare("ac_profile", Utf8Str::CaseInsensitive) == 0)
     243        else if (key.compare("ac_profile", com::Utf8Str::CaseInsensitive) == 0)
    245244        {
    246245#ifdef VBOX_WITH_AUDIO_RECORDING
    247             if (value.compare("low", Utf8Str::CaseInsensitive) == 0)
     246            if (value.compare("low", com::Utf8Str::CaseInsensitive) == 0)
    248247            {
    249248                this->ScreenSettings.Audio.uHz       = 8000;
     
    251250                this->ScreenSettings.Audio.cChannels = 1;
    252251            }
    253             else if (value.startsWith("med" /* "med[ium]" */, Utf8Str::CaseInsensitive) == 0)
     252            else if (value.startsWith("med" /* "med[ium]" */, com::Utf8Str::CaseInsensitive) == 0)
    254253            {
    255254                /* Stay with the default set above. */
    256255            }
    257             else if (value.compare("high", Utf8Str::CaseInsensitive) == 0)
     256            else if (value.compare("high", com::Utf8Str::CaseInsensitive) == 0)
    258257            {
    259258                this->ScreenSettings.Audio.uHz       = 48000;
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