1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
10 | ** Commercial Usage
|
---|
11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
14 | ** written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Free Documentation License
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
20 | ** file.
|
---|
21 | **
|
---|
22 | ** If you have questions regarding the use of this file, please contact
|
---|
23 | ** Nokia at [email protected].
|
---|
24 | ** $QT_END_LICENSE$
|
---|
25 | **
|
---|
26 | ****************************************************************************/
|
---|
27 |
|
---|
28 | /*!
|
---|
29 |
|
---|
30 | \page qt-embeddedLinux-accel.html
|
---|
31 |
|
---|
32 | \target Hardware Acceleration with Qt for Embedded Linux
|
---|
33 |
|
---|
34 | \title Qt for Embedded Linux Hardware Accelerated Graphics
|
---|
35 | \ingroup qt-embedded-linux
|
---|
36 |
|
---|
37 |
|
---|
38 | \input platforms/emb-hardwareacceleration.qdocinc
|
---|
39 |
|
---|
40 | \section1 Windowing on Embedded Linux with Hardware Accelerated Graphics
|
---|
41 |
|
---|
42 | Qt for Embedded Linux includes its own windowing system, QWS. QWS was
|
---|
43 | designed in 1999, well before graphics acceleration was available for
|
---|
44 | embedded devices. It does a great job providing a lightweight window
|
---|
45 | manager including all the expected functionality such as arbitrary
|
---|
46 | windows that can be moved, resized, minimized, etc. Getting QWS to work
|
---|
47 | with GPUs is very challenging, particularly with OpenGL and OpenVG
|
---|
48 | because there is no standard way in Linux to share textures across
|
---|
49 | processes. Some silicon vendors provide private APIs to allow texture
|
---|
50 | sharing, others do not. These limitations are documented under the
|
---|
51 | sections describing each type of accelerated hardware APIs. The simplest
|
---|
52 | most generic support for accelerated graphics is a full screen single
|
---|
53 | process single window.
|
---|
54 |
|
---|
55 | \section2 General options
|
---|
56 | \list
|
---|
57 | \o QWS, not accelerated, allows arbitrary windowing with multiple
|
---|
58 | processes drawing on the screen.
|
---|
59 | \o X11 with an accelerated X11 driver provided by the silicon
|
---|
60 | vendor. Like QWS, this allows arbitrary windows with multiple
|
---|
61 | processes drawing on the screen. Our experience is that there is
|
---|
62 | some overhead from X11 which will adversely affect framerates.
|
---|
63 | Additionally, our experience is that the drivers from silicon
|
---|
64 | vendors are still maturing.
|
---|
65 | \o Full screen single process single window. This will always work.
|
---|
66 | Some additional capabilities are available and are documented in
|
---|
67 | the acceleration specific API sections.
|
---|
68 | \endlist
|
---|
69 |
|
---|
70 | \section1 Supported Hardware Accelerated Graphics APIs
|
---|
71 |
|
---|
72 | This table shows which Hardware Accelerated Graphics APIs currently
|
---|
73 | supported by Qt.
|
---|
74 |
|
---|
75 | \table
|
---|
76 | \header
|
---|
77 | \o Supported APIs
|
---|
78 | \o API Version
|
---|
79 | \row
|
---|
80 | \o \l {Qt for Embedded Linux and OpenGL}{OpenGL ES}
|
---|
81 | \o 1.x and 2.x
|
---|
82 | \row
|
---|
83 | \o \l {Qt for Embedded Linux and OpenVG}{OpenVG }
|
---|
84 | \o 1.1
|
---|
85 | \row
|
---|
86 | \o \l {Qt for Embedded Linux and DirectFB}{DirectFB}
|
---|
87 | \o 2.0
|
---|
88 | \endtable
|
---|
89 |
|
---|
90 |
|
---|
91 | */
|
---|