VirtualBox

source: vbox/trunk/src/VBox/Frontends/VBoxFB/Framebuffer.h@ 83503

Last change on this file since 83503 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/** @file
2 * VBoxFB - Declaration of VBoxDirectFB class.
3 */
4
5/*
6 * Copyright (C) 2006-2020 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef VBOX_INCLUDED_SRC_VBoxFB_Framebuffer_h
18#define VBOX_INCLUDED_SRC_VBoxFB_Framebuffer_h
19#ifndef RT_WITHOUT_PRAGMA_ONCE
20# pragma once
21#endif
22
23#include "VBoxFB.h"
24
25class VBoxDirectFB : public IFramebuffer
26{
27public:
28 VBoxDirectFB(IDirectFB *aDFB, IDirectFBSurface *aSurface);
29 virtual ~VBoxDirectFB();
30
31 NS_DECL_ISUPPORTS
32
33 NS_IMETHOD GetWidth(PRUint32 *width);
34 NS_IMETHOD GetHeight(PRUint32 *height);
35 NS_IMETHOD Lock();
36 NS_IMETHOD Unlock();
37 NS_IMETHOD GetAddress(PRUint8 **address);
38 NS_IMETHOD GetBitsPerPixel(PRUint32 *bitsPerPixel);
39 NS_IMETHOD GetBytesPerLine(PRUint32 *bytesPerLine);
40 NS_IMETHOD GetPixelFormat(PRUint32 *pixelFormat);
41 NS_IMETHOD GetUsesGuestVRAM(PRBool *usesGuestVRAM);
42 NS_IMETHOD GetHeightReduction(PRUint32 *heightReduction);
43 NS_IMETHOD GetOverlay(IFramebufferOverlay **aOverlay);
44 NS_IMETHOD GetWinId(PRUint64 *winId);
45 NS_IMETHOD NotifyUpdate(PRUint32 x, PRUint32 y, PRUint32 w, PRUint32 h);
46 NS_IMETHOD RequestResize(PRUint32 aScreenId, PRUint32 pixelFormat, PRUint8 *vram,
47 PRUint32 bitsPerPixel, PRUint32 bytesPerLine,
48 PRUint32 w, PRUint32 h,
49 PRBool *finished);
50 NS_IMETHOD VideoModeSupported(PRUint32 width, PRUint32 height, PRUint32 bpp, PRBool *supported);
51 NS_IMETHOD GetVisibleRegion(PRUint8 *aRectangles, PRUint32 aCount, PRUint32 *aCountCopied);
52 NS_IMETHOD SetVisibleRegion(PRUint8 *aRectangles, PRUint32 aCount);
53
54 NS_IMETHOD ProcessVHWACommand(PRUint8 *pCommand, LONG enmCmd, BOOL fGuestCmd);
55
56 NS_IMETHOD Notify3DEvent(PRUint32 type, PRUint8 *reserved);
57private:
58 int createSurface(uint32_t w, uint32_t h);
59
60 IDirectFB *dfb;
61 IDirectFBSurface *surface;
62 uint32_t screenWidth;
63 uint32_t screenHeight;
64 IDirectFBSurface *fbInternalSurface;
65 void *fbBufferAddress;
66 uint32_t fbWidth;
67 uint32_t fbHeight;
68 uint32_t fbPitch;
69 int fbSurfaceLocked;
70};
71
72
73#endif /* !VBOX_INCLUDED_SRC_VBoxFB_Framebuffer_h */
74
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette