Changeset 82422 in vbox for trunk/src/VBox/Main
- Timestamp:
- Dec 5, 2019 3:59:34 PM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/EBMLWriter.h
r76760 r82422 22 22 #endif 23 23 24 #include <iprt/file.h>25 #include <VBox/com/string.h>26 27 24 #include <stack> 28 25 29 #include <iprt/c defs.h>26 #include <iprt/critsect.h> 30 27 #include <iprt/file.h> 31 28 -
trunk/src/VBox/Main/include/Recording.h
r76893 r82422 22 22 #endif 23 23 24 #include <VBox/com/array.h> 25 #include <VBox/com/string.h> 26 #include <VBox/ com/VirtualBox.h>24 using namespace com; 25 26 #include <VBox/err.h> 27 27 #include <VBox/settings.h> 28 28 29 using namespace com;30 31 #include "RecordingInternals.h"32 29 #include "RecordingStream.h" 33 30 -
trunk/src/VBox/Main/include/RecordingInternals.h
r76562 r82422 22 22 #endif 23 23 24 #include <iprt/assert.h> 24 #include <list> 25 25 26 #include <iprt/types.h> /* drag in stdint.h before vpx does it. */ 26 #include <list>27 27 28 28 #ifdef VBOX_WITH_LIBVPX -
trunk/src/VBox/Main/include/RecordingStream.h
r76760 r82422 26 26 27 27 #include <iprt/critsect.h> 28 29 #include <VBox/settings.h>30 28 31 29 #include "RecordingInternals.h" -
trunk/src/VBox/Main/include/RecordingUtils.h
r76562 r82422 21 21 # pragma once 22 22 #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>31 23 32 24 -
trunk/src/VBox/Main/include/WebMWriter.h
r76760 r82422 23 23 24 24 #include "EBMLWriter.h" 25 #include "EBML_MKV.h" 25 26 26 27 #include <queue> -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r76553 r82422 22 22 #include "LoggingNew.h" 23 23 24 #include <stdexcept>25 26 #include <iprt/asm.h>27 #include <iprt/assert.h>28 #include <iprt/critsect.h>29 #include <iprt/file.h>30 24 #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>37 25 38 26 #include "Recording.h" 39 #include "RecordingStream.h"40 27 #include "RecordingUtils.h" 41 28 #include "WebMWriter.h" 42 29 30 31 #ifdef VBOX_RECORDING_DUMP 32 #pragma pack(push) 33 #pragma pack(1) 34 typedef 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; 42 AssertCompileSize(RECORDINGBMPHDR, 14); 43 44 typedef 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; 58 AssertCompileSize(RECORDINGBMPDIBHDR, 40); 59 60 #pragma pack(pop) 61 #endif /* VBOX_RECORDING_DUMP */ 43 62 44 63 RecordingStream::RecordingStream(RecordingContext *a_pCtx) … … 652 671 RT_ZERO(bmpDIBHdr); 653 672 654 bmpHdr.u 16Magic = 0x4d42; /* Magic */655 bmpHdr.u 32Size = (uint32_t)(sizeof(RECORDINGBMPHDR) + sizeof(RECORDINGBMPDIBHDR) + (w * h * uBytesPerPixel));656 bmpHdr.u 32OffBits = (uint32_t)(sizeof(RECORDINGBMPHDR) + sizeof(RECORDINGBMPDIBHDR));657 658 bmpDIBHdr.u 32Size = sizeof(RECORDINGBMPDIBHDR);659 bmpDIBHdr.u 32Width = w;660 bmpDIBHdr.u 32Height = h;661 bmpDIBHdr.u 16Planes = 1;662 bmpDIBHdr.u 16BitCount = uBPP;663 bmpDIBHdr.u 32XPelsPerMeter = 5000;664 bmpDIBHdr.u 32YPelsPerMeter = 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; 665 684 666 685 char szFileName[RTPATH_MAX]; -
trunk/src/VBox/Main/src-client/WebMWriter.cpp
r76760 r82422 25 25 #include "LoggingNew.h" 26 26 27 #include <iprt/cdefs.h>28 #include <iprt/critsect.h>29 #include <iprt/errcore.h>30 #include <iprt/file.h>31 27 #include <iprt/buildconfig.h> 32 33 #include <VBox/log.h>34 28 #include <VBox/version.h> 35 29 36 30 #include "WebMWriter.h" 37 #include "EBML_MKV.h"38 31 39 32
Note:
See TracChangeset
for help on using the changeset viewer.