VirtualBox

Changeset 82422 in vbox for trunk/src/VBox/Main


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

Main/Recording: Cleanup; greatly reduced the include maze.

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

Legend:

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

    r76760 r82422  
    2222#endif
    2323
    24 #include <iprt/file.h>
    25 #include <VBox/com/string.h>
    26 
    2724#include <stack>
    2825
    29 #include <iprt/cdefs.h>
     26#include <iprt/critsect.h>
    3027#include <iprt/file.h>
    3128
  • trunk/src/VBox/Main/include/Recording.h

    r76893 r82422  
    2222#endif
    2323
    24 #include <VBox/com/array.h>
    25 #include <VBox/com/string.h>
    26 #include <VBox/com/VirtualBox.h>
     24using namespace com;
     25
     26#include <VBox/err.h>
    2727#include <VBox/settings.h>
    2828
    29 using namespace com;
    30 
    31 #include "RecordingInternals.h"
    3229#include "RecordingStream.h"
    3330
  • trunk/src/VBox/Main/include/RecordingInternals.h

    r76562 r82422  
    2222#endif
    2323
    24 #include <iprt/assert.h>
     24#include <list>
     25
    2526#include <iprt/types.h> /* drag in stdint.h before vpx does it. */
    26 #include <list>
    2727
    2828#ifdef VBOX_WITH_LIBVPX
  • trunk/src/VBox/Main/include/RecordingStream.h

    r76760 r82422  
    2626
    2727#include <iprt/critsect.h>
    28 
    29 #include <VBox/settings.h>
    3028
    3129#include "RecordingInternals.h"
  • trunk/src/VBox/Main/include/RecordingUtils.h

    r76562 r82422  
    2121# pragma once
    2222#endif
    23 
    24 #include <iprt/asm.h>
    25 #include <iprt/assert.h>
    26 #include <iprt/critsect.h>
    27 #include <iprt/path.h>
    28 #include <iprt/semaphore.h>
    29 #include <iprt/thread.h>
    30 #include <iprt/time.h>
    3123
    3224
  • trunk/src/VBox/Main/include/WebMWriter.h

    r76760 r82422  
    2323
    2424#include "EBMLWriter.h"
     25#include "EBML_MKV.h"
    2526
    2627#include <queue>
  • trunk/src/VBox/Main/src-client/RecordingStream.cpp

    r76553 r82422  
    2222#include "LoggingNew.h"
    2323
    24 #include <stdexcept>
    25 
    26 #include <iprt/asm.h>
    27 #include <iprt/assert.h>
    28 #include <iprt/critsect.h>
    29 #include <iprt/file.h>
    3024#include <iprt/path.h>
    31 #include <iprt/semaphore.h>
    32 #include <iprt/thread.h>
    33 #include <iprt/time.h>
    34 
    35 #include <VBox/err.h>
    36 #include <VBox/com/VirtualBox.h>
    3725
    3826#include "Recording.h"
    39 #include "RecordingStream.h"
    4027#include "RecordingUtils.h"
    4128#include "WebMWriter.h"
    4229
     30
     31#ifdef VBOX_RECORDING_DUMP
     32#pragma pack(push)
     33#pragma pack(1)
     34typedef struct
     35{
     36    uint16_t uMagic;
     37    uint32_t uSize;
     38    uint16_t uReserved1;
     39    uint16_t uReserved2;
     40    uint32_t uOffBits;
     41} RECORDINGBMPHDR, *PRECORDINGBMPHDR;
     42AssertCompileSize(RECORDINGBMPHDR, 14);
     43
     44typedef struct
     45{
     46    uint32_t uSize;
     47    uint32_t uWidth;
     48    uint32_t uHeight;
     49    uint16_t uPlanes;
     50    uint16_t uBitCount;
     51    uint32_t uCompression;
     52    uint32_t uSizeImage;
     53    uint32_t uXPelsPerMeter;
     54    uint32_t uYPelsPerMeter;
     55    uint32_t uClrUsed;
     56    uint32_t uClrImportant;
     57} RECORDINGBMPDIBHDR, *PRECORDINGBMPDIBHDR;
     58AssertCompileSize(RECORDINGBMPDIBHDR, 40);
     59
     60#pragma pack(pop)
     61#endif /* VBOX_RECORDING_DUMP */
    4362
    4463RecordingStream::RecordingStream(RecordingContext *a_pCtx)
     
    652671        RT_ZERO(bmpDIBHdr);
    653672
    654         bmpHdr.u16Magic   = 0x4d42; /* Magic */
    655         bmpHdr.u32Size    = (uint32_t)(sizeof(RECORDINGBMPHDR) + sizeof(RECORDINGBMPDIBHDR) + (w * h * uBytesPerPixel));
    656         bmpHdr.u32OffBits = (uint32_t)(sizeof(RECORDINGBMPHDR) + sizeof(RECORDINGBMPDIBHDR));
    657 
    658         bmpDIBHdr.u32Size          = sizeof(RECORDINGBMPDIBHDR);
    659         bmpDIBHdr.u32Width         = w;
    660         bmpDIBHdr.u32Height        = h;
    661         bmpDIBHdr.u16Planes        = 1;
    662         bmpDIBHdr.u16BitCount      = uBPP;
    663         bmpDIBHdr.u32XPelsPerMeter = 5000;
    664         bmpDIBHdr.u32YPelsPerMeter = 5000;
     673        bmpHdr.uMagic   = 0x4d42; /* Magic */
     674        bmpHdr.uSize    = (uint32_t)(sizeof(RECORDINGBMPHDR) + sizeof(RECORDINGBMPDIBHDR) + (w * h * uBytesPerPixel));
     675        bmpHdr.uOffBits = (uint32_t)(sizeof(RECORDINGBMPHDR) + sizeof(RECORDINGBMPDIBHDR));
     676
     677        bmpDIBHdr.uSize          = sizeof(RECORDINGBMPDIBHDR);
     678        bmpDIBHdr.uWidth         = w;
     679        bmpDIBHdr.uHeight        = h;
     680        bmpDIBHdr.uPlanes        = 1;
     681        bmpDIBHdr.uBitCount      = uBPP;
     682        bmpDIBHdr.uXPelsPerMeter = 5000;
     683        bmpDIBHdr.uYPelsPerMeter = 5000;
    665684
    666685        char szFileName[RTPATH_MAX];
  • trunk/src/VBox/Main/src-client/WebMWriter.cpp

    r76760 r82422  
    2525#include "LoggingNew.h"
    2626
    27 #include <iprt/cdefs.h>
    28 #include <iprt/critsect.h>
    29 #include <iprt/errcore.h>
    30 #include <iprt/file.h>
    3127#include <iprt/buildconfig.h>
    32 
    33 #include <VBox/log.h>
    3428#include <VBox/version.h>
    3529
    3630#include "WebMWriter.h"
    37 #include "EBML_MKV.h"
    3831
    3932
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