VirtualBox

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

Last change on this file since 26600 was 21771, checked in by vboxsync, 15 years ago

Frontends/VBoxFB: make it build again and clean up the obvious parts which are not using the current conventions. Still untested.

  • 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 *
3 * VBox frontends: Framebuffer (FB, DirectFB):
4 * Declaration of VBoxDirectFB class
5 */
6
7/*
8 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
21 */
22
23#ifndef __H_FRAMEBUFFER
24#define __H_FRAMEBUFFER
25
26#include "VBoxFB.h"
27
28class VBoxDirectFB : public IFramebuffer
29{
30public:
31 VBoxDirectFB(IDirectFB *aDFB, IDirectFBSurface *aSurface);
32 virtual ~VBoxDirectFB();
33
34 NS_DECL_ISUPPORTS
35
36 NS_IMETHOD GetWidth(PRUint32 *width);
37 NS_IMETHOD GetHeight(PRUint32 *height);
38 NS_IMETHOD Lock();
39 NS_IMETHOD Unlock();
40 NS_IMETHOD GetAddress(PRUint8 **address);
41 NS_IMETHOD GetBitsPerPixel(PRUint32 *bitsPerPixel);
42 NS_IMETHOD GetBytesPerLine(PRUint32 *bytesPerLine);
43 NS_IMETHOD GetPixelFormat(PRUint32 *pixelFormat);
44 NS_IMETHOD GetUsesGuestVRAM(PRBool *usesGuestVRAM);
45 NS_IMETHOD GetHeightReduction(PRUint32 *heightReduction);
46 NS_IMETHOD GetOverlay(IFramebufferOverlay **aOverlay);
47 NS_IMETHOD GetWinId(PRUint64 *winId);
48 NS_IMETHOD NotifyUpdate(PRUint32 x, PRUint32 y, PRUint32 w, PRUint32 h);
49 NS_IMETHOD RequestResize(PRUint32 aScreenId, PRUint32 pixelFormat, PRUint8 *vram,
50 PRUint32 bitsPerPixel, PRUint32 bytesPerLine,
51 PRUint32 w, PRUint32 h,
52 PRBool *finished);
53 NS_IMETHOD VideoModeSupported(PRUint32 width, PRUint32 height, PRUint32 bpp, PRBool *supported);
54 NS_IMETHOD GetVisibleRegion(PRUint8 *aRectangles, PRUint32 aCount, PRUint32 *aCountCopied);
55 NS_IMETHOD SetVisibleRegion(PRUint8 *aRectangles, PRUint32 aCount);
56
57 NS_IMETHOD ProcessVHWACommand(PRUint8 *pCommand);
58
59private:
60 int createSurface(uint32_t w, uint32_t h);
61
62 IDirectFB *dfb;
63 IDirectFBSurface *surface;
64 uint32_t screenWidth;
65 uint32_t screenHeight;
66 IDirectFBSurface *fbInternalSurface;
67 void *fbBufferAddress;
68 uint32_t fbWidth;
69 uint32_t fbHeight;
70 uint32_t fbPitch;
71 int fbSurfaceLocked;
72};
73
74
75#endif // __H_FRAMEBUFFER
76
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