Changeset 96480 in vbox
- Timestamp:
- Aug 25, 2022 7:02:55 AM (2 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/RecordingInternals.h
r96407 r96480 335 335 336 336 /** 337 * Enumeration for a recording frame type. 338 */ 339 enum RECORDINGFRAME_TYPE 340 { 341 /** Invalid frame type; do not use. */ 342 RECORDINGFRAME_TYPE_INVALID = 0, 343 /** Frame is an audio frame. */ 344 RECORDINGFRAME_TYPE_AUDIO = 1, 345 /** Frame is an video frame. */ 346 RECORDINGFRAME_TYPE_VIDEO = 2, 347 /** Frame contains a video frame pointer. */ 348 RECORDINGFRAME_TYPE_VIDEO_PTR = 3 349 }; 350 351 /** 337 352 * Structure for keeping a single recording video frame. 338 353 */ 339 354 typedef struct RECORDINGVIDEOFRAME 340 355 { 341 /** X resolution of this frame. */ 342 uint32_t uWidth; 343 /** Y resolution of this frame. */ 344 uint32_t uHeight; 356 /** X origin (in pixel) of this frame. */ 357 uint16_t uX; 358 /** X origin (in pixel) of this frame. */ 359 uint16_t uY; 360 /** X resolution (in pixel) of this frame. */ 361 uint16_t uWidth; 362 /** Y resolution (in pixel) of this frame. */ 363 uint16_t uHeight; 364 /** Bits per pixel (BPP). */ 365 uint8_t uBPP; 345 366 /** Pixel format of this frame. */ 346 uint32_t uPixelFormat; 367 RECORDINGPIXELFMT enmPixelFmt; 368 /** Bytes per scan line. */ 369 uint16_t uBytesPerLine; 347 370 /** RGB buffer containing the unmodified frame buffer data from Main's display. */ 348 371 uint8_t *pu8RGBBuf; … … 367 390 typedef struct RECORDINGFRAME 368 391 { 392 /** List node. */ 393 RTLISTNODE Node; 394 /** Stream index (hint) where this frame should go to. 395 * Specify UINT16_MAX to broadcast to all streams. */ 396 uint16_t idStream; 397 /** The frame type. */ 398 RECORDINGFRAME_TYPE enmType; 369 399 /** Timestamp (PTS, in ms). */ 370 400 uint64_t msTimestamp; … … 372 402 { 373 403 #ifdef VBOX_WITH_AUDIO_RECORDING 404 /** Audio frame data. */ 374 405 RECORDINGAUDIOFRAME Audio; 375 406 #endif 407 /** Video frame data. */ 376 408 RECORDINGVIDEOFRAME Video; 409 /** A (weak) pointer to a video frame. */ 377 410 RECORDINGVIDEOFRAME *VideoPtr; 378 411 }; -
trunk/src/VBox/Main/include/RecordingUtils.h
r96479 r96480 31 31 # pragma once 32 32 #endif 33 34 #include "RecordingInternals.h" 33 35 34 36
Note:
See TracChangeset
for help on using the changeset viewer.