Changeset 82423 in vbox for trunk/src/VBox
- Timestamp:
- Dec 5, 2019 4:09:59 PM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/Recording.h
r82422 r82423 21 21 # pragma once 22 22 #endif 23 24 using namespace com;25 23 26 24 #include <VBox/err.h> -
trunk/src/VBox/Main/src-client/Recording.cpp
r76893 r82423 56 56 //# define VBOX_RECORDING_DUMP 57 57 #endif 58 59 #ifdef VBOX_RECORDING_DUMP60 #pragma pack(push)61 #pragma pack(1)62 typedef struct63 {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 struct73 {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 */90 58 91 59 -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r82422 r82423 27 27 #include "RecordingUtils.h" 28 28 #include "WebMWriter.h" 29 30 29 31 30 #ifdef VBOX_RECORDING_DUMP … … 214 213 while ((pos = strOptions.parseKeyValue(key, value, pos)) != com::Utf8Str::npos) 215 214 { 216 if (key.compare("vc_quality", Utf8Str::CaseInsensitive) == 0)215 if (key.compare("vc_quality", com::Utf8Str::CaseInsensitive) == 0) 217 216 { 218 217 #ifdef VBOX_WITH_LIBVPX 219 218 Assert(this->ScreenSettings.Video.ulFPS); 220 if (value.compare("realtime", Utf8Str::CaseInsensitive) == 0)219 if (value.compare("realtime", com::Utf8Str::CaseInsensitive) == 0) 221 220 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) 223 222 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) 225 224 this->Video.Codec.VPX.uEncoderDeadline = VPX_DL_BEST_QUALITY; 226 225 else … … 230 229 } 231 230 } 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) 235 234 this->ScreenSettings.featureMap[RecordingFeature_Video] = false; 236 235 } 237 else if (key.compare("ac_enabled", Utf8Str::CaseInsensitive) == 0)236 else if (key.compare("ac_enabled", com::Utf8Str::CaseInsensitive) == 0) 238 237 { 239 238 #ifdef VBOX_WITH_AUDIO_RECORDING 240 if (value.compare("true", Utf8Str::CaseInsensitive) == 0)239 if (value.compare("true", com::Utf8Str::CaseInsensitive) == 0) 241 240 this->ScreenSettings.featureMap[RecordingFeature_Audio] = true; 242 241 #endif 243 242 } 244 else if (key.compare("ac_profile", Utf8Str::CaseInsensitive) == 0)243 else if (key.compare("ac_profile", com::Utf8Str::CaseInsensitive) == 0) 245 244 { 246 245 #ifdef VBOX_WITH_AUDIO_RECORDING 247 if (value.compare("low", Utf8Str::CaseInsensitive) == 0)246 if (value.compare("low", com::Utf8Str::CaseInsensitive) == 0) 248 247 { 249 248 this->ScreenSettings.Audio.uHz = 8000; … … 251 250 this->ScreenSettings.Audio.cChannels = 1; 252 251 } 253 else if (value.startsWith("med" /* "med[ium]" */, Utf8Str::CaseInsensitive) == 0)252 else if (value.startsWith("med" /* "med[ium]" */, com::Utf8Str::CaseInsensitive) == 0) 254 253 { 255 254 /* Stay with the default set above. */ 256 255 } 257 else if (value.compare("high", Utf8Str::CaseInsensitive) == 0)256 else if (value.compare("high", com::Utf8Str::CaseInsensitive) == 0) 258 257 { 259 258 this->ScreenSettings.Audio.uHz = 48000;
Note:
See TracChangeset
for help on using the changeset viewer.