1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Framebuffer (FB, DirectFB):
|
---|
4 | * Helper routines
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox base platform packages, as
|
---|
11 | * available from https://www.virtualbox.org.
|
---|
12 | *
|
---|
13 | * This program is free software; you can redistribute it and/or
|
---|
14 | * modify it under the terms of the GNU General Public License
|
---|
15 | * as published by the Free Software Foundation, in version 3 of the
|
---|
16 | * License.
|
---|
17 | *
|
---|
18 | * This program is distributed in the hope that it will be useful, but
|
---|
19 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | * General Public License for more details.
|
---|
22 | *
|
---|
23 | * You should have received a copy of the GNU General Public License
|
---|
24 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | *
|
---|
26 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
27 | */
|
---|
28 |
|
---|
29 | #ifndef VBOX_INCLUDED_SRC_VBoxFB_Helper_h
|
---|
30 | #define VBOX_INCLUDED_SRC_VBoxFB_Helper_h
|
---|
31 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
32 | # pragma once
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #define MAX_VIDEOMODES 64
|
---|
36 | struct videoMode
|
---|
37 | {
|
---|
38 | uint32_t width;
|
---|
39 | uint32_t height;
|
---|
40 | uint32_t bpp;
|
---|
41 | };
|
---|
42 | extern videoMode g_videoModes[];
|
---|
43 | extern uint32_t g_numVideoModes;
|
---|
44 |
|
---|
45 | DFBEnumerationResult enumVideoModesHandler(int width, int height, int bpp, void *callbackdata);
|
---|
46 | int32_t getBestVideoMode(uint32_t width, uint32_t height, uint32_t bpp);
|
---|
47 |
|
---|
48 |
|
---|
49 | #endif /* !VBOX_INCLUDED_SRC_VBoxFB_Helper_h */
|
---|