DirectFB几个辅助工具
转载时请注明出处和作者联系方式作者联系方式:李先静 <xianjimli at hotmail dot com>
uwmdump: 显示所有窗口的信息。我修改之后可以显示在栈中的位置,进程ID,标题和左右操作栏的文本。如:
-------[ Contexts ]-------
Reference . Refs Windows
--------------------------
0x0000000d : 43 15
-----------------------------------[ Windows ]---------------------------------------------
Index Reference . Refs X Y Width Height Opacity ID Flags PID TITLE OtherInfo
-------------------------------------------------------------------------------------------
14 0x0000001d : 22 239, 189 12 x 18 0xff 1 * 2873 L() R() VISIBLE
13 0x00000154 : 4 0, 26 240 x 268 0x00 35 - 3175 开始 L(取消) R() DECORATED
12 0x00000150 : 5 0, 293 240 x 1 0x00 34 - 3175 开始 L(解锁) R() DECORATED
11 0x0000012b : 17 0, 26 240 x 268 0xff 30 - 3182 联系人 L(新建) R(菜单) VISIBLE DECORATED
10 0x00000147 : 7 0, 26 240 x 268 0xff 33 - 3310 媒体播放器 L(播放) R(菜单) VISIBLE DECORATED
9 0x00000110 : 5 0, 26 120 x 281 0x00 27 - 3175 L() R() DECORATED
8 0x00000135 : 22 0, 26 240 x 268 0x00 31 - 3182 日历 L(周) R(菜单) DECORATED
7 0x000000f3 : 2 0, 26 240 x 268 0x00 25 - 3175 电话 L() R() DECORATED
6 0x000000e6 : 5 0, 26 240 x 268 0xff 24 - 3175 L() R() VISIBLE DECORATED
5 0x000000e2 : 3 0, 294 240 x 26 0xff 23 - 3175 L() R() VISIBLE DECORATED
4 0x000000dd : 3 0, 0 240 x 26 0xff 22 - 3175 L() R() VISIBLE DECORATED
3 0x000000d9 : 2 0, 319 1 x 1 0xff 21 - 3175 L() R() VISIBLE DECORATED
2 0x00000036 : 1 0, 0 240 x 320 0x00 5 - 2913 L() R() DECORATED
1 0x00000033 : 1 0, 26 240 x 180 0x00 4 - 2913 L() R() DECORATED
0 0x00000020 : 1 0, 0 240 x 320 0xff 2 - 2873 L() R() VISIBLE DECORATED
Reference . Refs Windows
--------------------------
0x0000000d : 43 15
-----------------------------------[ Windows ]---------------------------------------------
Index Reference . Refs X Y Width Height Opacity ID Flags PID TITLE OtherInfo
-------------------------------------------------------------------------------------------
14 0x0000001d : 22 239, 189 12 x 18 0xff 1 * 2873 L() R() VISIBLE
13 0x00000154 : 4 0, 26 240 x 268 0x00 35 - 3175 开始 L(取消) R() DECORATED
12 0x00000150 : 5 0, 293 240 x 1 0x00 34 - 3175 开始 L(解锁) R() DECORATED
11 0x0000012b : 17 0, 26 240 x 268 0xff 30 - 3182 联系人 L(新建) R(菜单) VISIBLE DECORATED
10 0x00000147 : 7 0, 26 240 x 268 0xff 33 - 3310 媒体播放器 L(播放) R(菜单) VISIBLE DECORATED
9 0x00000110 : 5 0, 26 120 x 281 0x00 27 - 3175 L() R() DECORATED
8 0x00000135 : 22 0, 26 240 x 268 0x00 31 - 3182 日历 L(周) R(菜单) DECORATED
7 0x000000f3 : 2 0, 26 240 x 268 0x00 25 - 3175 电话 L() R() DECORATED
6 0x000000e6 : 5 0, 26 240 x 268 0xff 24 - 3175 L() R() VISIBLE DECORATED
5 0x000000e2 : 3 0, 294 240 x 26 0xff 23 - 3175 L() R() VISIBLE DECORATED
4 0x000000dd : 3 0, 0 240 x 26 0xff 22 - 3175 L() R() VISIBLE DECORATED
3 0x000000d9 : 2 0, 319 1 x 1 0xff 21 - 3175 L() R() VISIBLE DECORATED
2 0x00000036 : 1 0, 0 240 x 320 0x00 5 - 2913 L() R() DECORATED
1 0x00000033 : 1 0, 26 240 x 180 0x00 4 - 2913 L() R() DECORATED
0 0x00000020 : 1 0, 0 240 x 320 0xff 2 - 2873 L() R() VISIBLE DECORATED
dfbdump: 显示窗口和surface的信息。如:
-----------------------------[ Surfaces ]-------------------------------
Reference . Refs Width Height Format Video System Capabilities
------------------------------------------------------------------------
0x00000155 : 1 26 x 14 RGB16 0k 1k
0x00000153 : 6 240 x 268 RGB16 0k 126k system only
0x0000014f : 8 240 x 1 RGB16 0k 1k system only
0x0000014d : 3 640 x 11 A8 0k 7k
0x0000014c : 2 1536 x 64 RGB32 0k 384k�
0x0000014b : 2 1536 x 64 RGB16 0k 192k�
0x0000014a : 2 832 x 14 A8 0k 12k
0x00000149 : 1 65 x 14 RGB16 0k 2k
0x00000148 : 2 1 x 1 RGB16 0k 1k
0x00000146 : 10 240 x 268 RGB16 0k 126k system only
0x00000144 : 2 12 x 18 ARGB 0k 1k
0x00000143 : 1 10 x 16 ARGB 0k 1k
0x00000137 : 5 1536 x 64 RGB16 0k 192k�
0x00000136 : 1 26 x 14 RGB16 0k 1k
0x00000134 : 41 240 x 268 RGB16 0k 126k system only
0x00000132 : 2 11 x 18 ARGB 0k 1k
0x00000131 : 1 9 x 16 ARGB 0k 1k
0x00000130 : 2 17 x 11 ARGB 0k 1k
0x0000012f : 1 15 x 9 ARGB 0k 1k
0x0000012e : 13 832 x 14 A8 0k 12k
0x0000012d : 1 39 x 14 RGB16 0k 2k
0x0000012c : 2 1 x 1 RGB16 0k 1k
0x0000012a : 16 240 x 268 RGB16 0k 126k system only
0x00000112 : 4 832 x 14 A8 0k 12k
0x00000111 : 4 240 x 320 RGB16 0k 150k
0x0000010f : 10 120 x 281 RGB16 0k 66k system only
0x0000010b : 2 12 x 18 ARGB 0k 1k
0x0000010a : 1 10 x 16 ARGB 0k 1k
0x00000100 : 2 12 x 18 ARGB 0k 1k
0x000000ff : 1 10 x 16 ARGB 0k 1k
0x000000f5 : 3 240 x 268 RGB16 0k 126k
0x000000f4 : 1 26 x 14 RGB16 0k 1k
0x000000f2 : 4 240 x 268 RGB16 0k 126k system only
0x000000f0 : 2 240 x 320 RGB16 0k 150k
0x000000ef : 2 240 x 320 RGB16 0k 150k
0x000000ee : 2 240 x 320 RGB16 0k 150k
0x000000ed : 2 240 x 26 RGB16 0k 13k
0x000000ec : 2 240 x 26 RGB16 0k 13k
0x000000eb : 6 832 x 14 A8 0k 12k
0x000000e8 : 7 1536 x 64 RGB16 0k 192k�
0x000000e5 : 11 240 x 268 RGB16 0k 126k system only
0x000000e3 : 1 240 x 26 RGB16 0k 13k
0x000000e1 : 6 240 x 26 RGB16 0k 13k system only
0x000000df : 4 1536 x 64 RGB32 0k 384k�
0x000000de : 1 240 x 26 RGB16 0k 13k
0x000000dc : 6 240 x 26 RGB16 0k 13k system only
0x000000da : 2 1 x 1 RGB16 0k 1k
0x000000d8 : 4 1 x 1 RGB16 0k 1k system only
0x000000d6 : 2 12 x 18 ARGB 0k 1k
0x000000d5 : 1 10 x 16 ARGB 0k 1k
0x000000c8 : 2 12 x 18 ARGB 0k 1k
0x000000c7 : 1 10 x 16 ARGB 0k 1k
0x0000007f : 2 12 x 18 ARGB 0k 1k
0x0000007e : 1 10 x 16 ARGB 0k 1k
0x0000003b : 2 17 x 11 ARGB 0k 1k
0x0000003a : 1 15 x 9 ARGB 0k 1k
0x00000035 : 2 240 x 320 RGB16 0k 150k system only
0x00000032 : 2 240 x 180 RGB16 0k 85k system only
0x00000030 : 2 1536 x 64 RGB16 0k 192k�
0x0000002f : 2 11 x 18 ARGB 0k 1k
0x0000002e : 1 9 x 16 ARGB 0k 1k
0x0000002d : 2 832 x 14 A8 0k 12k
0x00000029 : 2 1536 x 64 RGB32 0k 384k�
0x00000027 : 2 1 x 1 RGB16 0k 1k
0x00000025 : 1 240 x 320 RGB16 0k 150k system only
0x0000001f : 2 240 x 320 RGB16 0k 300k system only double
0x0000001c : 2 12 x 18 ARGB 0k 1k system only
0x0000001a : 2 12 x 18 ARGB 0k 1k
0x00000019 : 1 10 x 16 ARGB 0k 1k
0x0000000f : 2 240 x 320 ARGB 0k 300k
0x0000000e : 2 240 x 320 ARGB 0k 300k
0x0000000c : 2 640 x 480 RGB16 750k 750k video only double
0x00000009 : 1 214 x 64 ARGB 0k 54k
0x00000008 : 1 214 x 64 ARGB 0k 54k
0x00000007 : 1 214 x 64 ARGB 0k 54k
0x00000006 : 1 214 x 64 ARGB 0k 54k
0x00000005 : 1 214 x 64 ARGB 0k 54k
0x00000004 : 1 214 x 64 ARGB 0k 54k
0x00000003 : 1 214 x 64 ARGB 0k 54k
0x00000002 : 1 214 x 64 ARGB 0k 54k
0x00000001 : 1 214 x 64 ARGB 0k 54k
------ ------
750k 6170k -> 6920k total
-----------------------------------[ Windows of Layer 0 ]-----------------------------------
Reference . Refs X Y Width Height Opacity ID Capabilities State & Options
--------------------------------------------------------------------------------------------
0x0000001b : 24 239, 189 12 x 18 0xff 1 * alphachannel GHOST
0x00000152 : 5 0, 26 240 x 268 0x00 35 -
0x0000014e : 6 0, 293 240 x 1 0x00 34 -
0x00000129 : 18 0, 26 240 x 268 0xff 30 -
0x00000145 : 8 0, 26 240 x 268 0xff 33 -
0x0000010e : 6 0, 26 120 x 281 0x00 27 -
0x00000133 : 23 0, 26 240 x 268 0x00 31 -
0x000000f1 : 3 0, 26 240 x 268 0x00 25 -
0x000000e4 : 6 0, 26 240 x 268 0xff 24 -
0x000000e0 : 4 0, 294 240 x 26 0xff 23 -
0x000000db : 4 0, 0 240 x 26 0xff 22 -
0x000000d7 : 3 0, 319 1 x 1 0xff 21 -
0x00000034 : 2 0, 0 240 x 320 0x00 5 -
0x00000031 : 2 0, 26 240 x 180 0x00 4 -
0x0000001e : 2 0, 0 240 x 320 0xff 2 - double buffer
----------------------------------[ Contexts of Layer 0 ]-----------------------------------
Reference . Refs Width Height Format Location on screen Regions Active Info Level
--------------------------------------------------------------------------------------------
0x0000000a : 24 640 x 480 RGB16 0.0, 0.0 -> 1.0, 1.0 1 (*) SHARED N/A
Reference . Refs Width Height Format Video System Capabilities
------------------------------------------------------------------------
0x00000155 : 1 26 x 14 RGB16 0k 1k
0x00000153 : 6 240 x 268 RGB16 0k 126k system only
0x0000014f : 8 240 x 1 RGB16 0k 1k system only
0x0000014d : 3 640 x 11 A8 0k 7k
0x0000014c : 2 1536 x 64 RGB32 0k 384k�
0x0000014b : 2 1536 x 64 RGB16 0k 192k�
0x0000014a : 2 832 x 14 A8 0k 12k
0x00000149 : 1 65 x 14 RGB16 0k 2k
0x00000148 : 2 1 x 1 RGB16 0k 1k
0x00000146 : 10 240 x 268 RGB16 0k 126k system only
0x00000144 : 2 12 x 18 ARGB 0k 1k
0x00000143 : 1 10 x 16 ARGB 0k 1k
0x00000137 : 5 1536 x 64 RGB16 0k 192k�
0x00000136 : 1 26 x 14 RGB16 0k 1k
0x00000134 : 41 240 x 268 RGB16 0k 126k system only
0x00000132 : 2 11 x 18 ARGB 0k 1k
0x00000131 : 1 9 x 16 ARGB 0k 1k
0x00000130 : 2 17 x 11 ARGB 0k 1k
0x0000012f : 1 15 x 9 ARGB 0k 1k
0x0000012e : 13 832 x 14 A8 0k 12k
0x0000012d : 1 39 x 14 RGB16 0k 2k
0x0000012c : 2 1 x 1 RGB16 0k 1k
0x0000012a : 16 240 x 268 RGB16 0k 126k system only
0x00000112 : 4 832 x 14 A8 0k 12k
0x00000111 : 4 240 x 320 RGB16 0k 150k
0x0000010f : 10 120 x 281 RGB16 0k 66k system only
0x0000010b : 2 12 x 18 ARGB 0k 1k
0x0000010a : 1 10 x 16 ARGB 0k 1k
0x00000100 : 2 12 x 18 ARGB 0k 1k
0x000000ff : 1 10 x 16 ARGB 0k 1k
0x000000f5 : 3 240 x 268 RGB16 0k 126k
0x000000f4 : 1 26 x 14 RGB16 0k 1k
0x000000f2 : 4 240 x 268 RGB16 0k 126k system only
0x000000f0 : 2 240 x 320 RGB16 0k 150k
0x000000ef : 2 240 x 320 RGB16 0k 150k
0x000000ee : 2 240 x 320 RGB16 0k 150k
0x000000ed : 2 240 x 26 RGB16 0k 13k
0x000000ec : 2 240 x 26 RGB16 0k 13k
0x000000eb : 6 832 x 14 A8 0k 12k
0x000000e8 : 7 1536 x 64 RGB16 0k 192k�
0x000000e5 : 11 240 x 268 RGB16 0k 126k system only
0x000000e3 : 1 240 x 26 RGB16 0k 13k
0x000000e1 : 6 240 x 26 RGB16 0k 13k system only
0x000000df : 4 1536 x 64 RGB32 0k 384k�
0x000000de : 1 240 x 26 RGB16 0k 13k
0x000000dc : 6 240 x 26 RGB16 0k 13k system only
0x000000da : 2 1 x 1 RGB16 0k 1k
0x000000d8 : 4 1 x 1 RGB16 0k 1k system only
0x000000d6 : 2 12 x 18 ARGB 0k 1k
0x000000d5 : 1 10 x 16 ARGB 0k 1k
0x000000c8 : 2 12 x 18 ARGB 0k 1k
0x000000c7 : 1 10 x 16 ARGB 0k 1k
0x0000007f : 2 12 x 18 ARGB 0k 1k
0x0000007e : 1 10 x 16 ARGB 0k 1k
0x0000003b : 2 17 x 11 ARGB 0k 1k
0x0000003a : 1 15 x 9 ARGB 0k 1k
0x00000035 : 2 240 x 320 RGB16 0k 150k system only
0x00000032 : 2 240 x 180 RGB16 0k 85k system only
0x00000030 : 2 1536 x 64 RGB16 0k 192k�
0x0000002f : 2 11 x 18 ARGB 0k 1k
0x0000002e : 1 9 x 16 ARGB 0k 1k
0x0000002d : 2 832 x 14 A8 0k 12k
0x00000029 : 2 1536 x 64 RGB32 0k 384k�
0x00000027 : 2 1 x 1 RGB16 0k 1k
0x00000025 : 1 240 x 320 RGB16 0k 150k system only
0x0000001f : 2 240 x 320 RGB16 0k 300k system only double
0x0000001c : 2 12 x 18 ARGB 0k 1k system only
0x0000001a : 2 12 x 18 ARGB 0k 1k
0x00000019 : 1 10 x 16 ARGB 0k 1k
0x0000000f : 2 240 x 320 ARGB 0k 300k
0x0000000e : 2 240 x 320 ARGB 0k 300k
0x0000000c : 2 640 x 480 RGB16 750k 750k video only double
0x00000009 : 1 214 x 64 ARGB 0k 54k
0x00000008 : 1 214 x 64 ARGB 0k 54k
0x00000007 : 1 214 x 64 ARGB 0k 54k
0x00000006 : 1 214 x 64 ARGB 0k 54k
0x00000005 : 1 214 x 64 ARGB 0k 54k
0x00000004 : 1 214 x 64 ARGB 0k 54k
0x00000003 : 1 214 x 64 ARGB 0k 54k
0x00000002 : 1 214 x 64 ARGB 0k 54k
0x00000001 : 1 214 x 64 ARGB 0k 54k
------ ------
750k 6170k -> 6920k total
-----------------------------------[ Windows of Layer 0 ]-----------------------------------
Reference . Refs X Y Width Height Opacity ID Capabilities State & Options
--------------------------------------------------------------------------------------------
0x0000001b : 24 239, 189 12 x 18 0xff 1 * alphachannel GHOST
0x00000152 : 5 0, 26 240 x 268 0x00 35 -
0x0000014e : 6 0, 293 240 x 1 0x00 34 -
0x00000129 : 18 0, 26 240 x 268 0xff 30 -
0x00000145 : 8 0, 26 240 x 268 0xff 33 -
0x0000010e : 6 0, 26 120 x 281 0x00 27 -
0x00000133 : 23 0, 26 240 x 268 0x00 31 -
0x000000f1 : 3 0, 26 240 x 268 0x00 25 -
0x000000e4 : 6 0, 26 240 x 268 0xff 24 -
0x000000e0 : 4 0, 294 240 x 26 0xff 23 -
0x000000db : 4 0, 0 240 x 26 0xff 22 -
0x000000d7 : 3 0, 319 1 x 1 0xff 21 -
0x00000034 : 2 0, 0 240 x 320 0x00 5 -
0x00000031 : 2 0, 26 240 x 180 0x00 4 -
0x0000001e : 2 0, 0 240 x 320 0xff 2 - double buffer
----------------------------------[ Contexts of Layer 0 ]-----------------------------------
Reference . Refs Width Height Format Location on screen Regions Active Info Level
--------------------------------------------------------------------------------------------
0x0000000a : 24 640 x 480 RGB16 0.0, 0.0 -> 1.0, 1.0 1 (*) SHARED N/A
dfbinfo: 显示screen和输入设备信息。
Screen (00) FBDev Primary Screen (primary screen)
Caps: VSYNC POWER_MANAGEMENT
Layer (00) FBDev Primary Layer (primary layer)
Type: GRAPHICS
Caps: SURFACE BRIGHTNESS CONTRAST SATURATION
Input (00) Keyboard (primary keyboard)
Type: KEYBOARD
Caps: KEYS
Input (01) IMPS/2 Mouse (primary mouse)
Type: MOUSE
Caps: AXES BUTTONS
Max. Axis: 2
Max. Button: 2
Caps: VSYNC POWER_MANAGEMENT
Layer (00) FBDev Primary Layer (primary layer)
Type: GRAPHICS
Caps: SURFACE BRIGHTNESS CONTRAST SATURATION
Input (00) Keyboard (primary keyboard)
Type: KEYBOARD
Caps: KEYS
Input (01) IMPS/2 Mouse (primary mouse)
Type: MOUSE
Caps: AXES BUTTONS
Max. Axis: 2
Max. Button: 2
dfblayer: 显示layer的信息。如:
FBDev Primary Layer
Width 240
Height 320
Format RGB16
Buffermode BACKSYSTEM
Width 240
Height 320
Format RGB16
Buffermode BACKSYSTEM
~~end~~