📄 types.html
字号:
</TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_LEVELS</font> </TD><TD valign=top> <font color=#404040>Adjustment of the layer's level (z position) is supported. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_FIELD_PARITY</font> </TD><TD valign=top> <font color=#404040>Field parity can be selected </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_WINDOWS</font> </TD><TD valign=top> <font color=#404040>Hardware window support. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_SOURCES</font> </TD><TD valign=top> <font color=#404040>Sources can be selected. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_ALPHA_RAMP</font> </TD><TD valign=top> <font color=#404040>Alpha values for formats with one or two alpha bits can be chosen, i.e. using ARGB1555 or ARGB2554 the user can define the meaning of the two or four possibilities. In short, this feature provides a lookup table for the alpha bits of these formats. See also <a href="IDirectFBSurface_SetAlphaRamp.html">IDirectFBSurface::SetAlphaRamp()</a>. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_PREMULTIPLIED</font> </TD><TD valign=top> <font color=#404040>Surfaces with premultiplied alpha are supported. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_SCREEN_POSITION</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_SCREEN_SIZE</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLCAPS_ALL</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> </TABLE> Capabilities of a display layer. <br></p><p> <a name=DFBScreenCapabilities> <font color=#D07070 size=+1>DFBScreenCapabilities</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_NONE</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_VSYNC</font> </TD><TD valign=top> <font color=#404040>Synchronization with the vertical retrace supported. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_POWER_MANAGEMENT</font> </TD><TD valign=top> <font color=#404040>Power management supported. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_MIXERS</font> </TD><TD valign=top> <font color=#404040>Has mixers. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_ENCODERS</font> </TD><TD valign=top> <font color=#404040>Has encoders. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_OUTPUTS</font> </TD><TD valign=top> <font color=#404040>Has outputs. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCCAPS_ALL</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> </TABLE> Capabilities of a screen. <br></p><p> <a name=DFBDisplayLayerOptions> <font color=#D07070 size=+1>DFBDisplayLayerOptions</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_NONE</font> </TD><TD valign=top> <font color=#404040>None of these. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_ALPHACHANNEL</font> </TD><TD valign=top> <font color=#404040>Make usage of alpha channel for blending on a pixel per pixel basis. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_FLICKER_FILTERING</font> </TD><TD valign=top> <font color=#404040>Enable flicker filtering. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_DEINTERLACING</font> </TD><TD valign=top> <font color=#404040>Enable deinterlacing of an interlaced (video) source. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_SRC_COLORKEY</font> </TD><TD valign=top> <font color=#404040>Enable source color key. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_DST_COLORKEY</font> </TD><TD valign=top> <font color=#404040>Enable dest. color key. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_OPACITY</font> </TD><TD valign=top> <font color=#404040>Make usage of the global alpha factor set by SetOpacity. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLOP_FIELD_PARITY</font> </TD><TD valign=top> <font color=#404040>Set field parity </font> </TD></TR> </TABLE> Used to enable some capabilities like flicker filtering or colorkeying. <br></p><p> <a name=DFBDisplayLayerBufferMode> <font color=#D07070 size=+1>DFBDisplayLayerBufferMode</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLBM_UNKNOWN</font> </TD><TD valign=top> <font color=#404040></font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLBM_FRONTONLY</font> </TD><TD valign=top> <font color=#404040>no backbuffer </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLBM_BACKVIDEO</font> </TD><TD valign=top> <font color=#404040>backbuffer in video memory </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLBM_BACKSYSTEM</font> </TD><TD valign=top> <font color=#404040>backbuffer in system memory </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLBM_TRIPLE</font> </TD><TD valign=top> <font color=#404040>triple buffering </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DLBM_WINDOWS</font> </TD><TD valign=top> <font color=#404040>no layer buffers at all, using buffer of each window </font> </TD></TR> </TABLE> Layer Buffer Mode. <br></p><p> <a name=DFBSurfaceDescriptionFlags> <font color=#D07070 size=+1>DFBSurfaceDescriptionFlags</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_NONE</font> </TD><TD valign=top> <font color=#404040>none of these </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_CAPS</font> </TD><TD valign=top> <font color=#404040>caps field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_WIDTH</font> </TD><TD valign=top> <font color=#404040>width field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_HEIGHT</font> </TD><TD valign=top> <font color=#404040>height field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_PIXELFORMAT</font> </TD><TD valign=top> <font color=#404040>pixelformat field is valid </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_PREALLOCATED</font> </TD><TD valign=top> <font color=#404040>Surface uses data that has been preallocated by the application. The field array 'preallocated' has to be set using the first element for the front buffer and eventually the second one for the back buffer. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_PALETTE</font> </TD><TD valign=top> <font color=#404040>Initialize the surfaces palette with the entries specified in the description. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSDESC_ALL</font> </TD><TD valign=top> <font color=#404040>all of these </font> </TD></TR> </TABLE> Flags defining which fields of a DFBSurfaceDescription are valid. <br></p><p> <a name=DFBPaletteDescriptionFlags> <font color=#D07070 size=+1>DFBPaletteDescriptionFlags</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DPDESC_CAPS</font> </TD><TD valign=top> <font color=#404040>Specify palette capabilities. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DPDESC_SIZE</font> </TD><TD valign=top> <font color=#404040>Specify number of entries. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DPDESC_ENTRIES</font> </TD><TD valign=top> <font color=#404040>Initialize the palette with the entries specified in the description. </font> </TD></TR> </TABLE> Flags defining which fields of a DFBPaletteDescription are valid. <br></p><p> <a name=DFBSurfaceCapabilities> <font color=#D07070 size=+1>DFBSurfaceCapabilities</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_NONE</font> </TD><TD valign=top> <font color=#404040>None of these. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_PRIMARY</font> </TD><TD valign=top> <font color=#404040>It's the primary surface. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_SYSTEMONLY</font> </TD><TD valign=top> <font color=#404040>Surface data is permanently stored in system memory.<br> There's no video memory allocation/storage. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_VIDEOONLY</font> </TD><TD valign=top> <font color=#404040>Surface data is permanently stored in video memory.<br> There's no system memory allocation/storage. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_DOUBLE</font> </TD><TD valign=top> <font color=#404040>Surface is double buffered </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_SUBSURFACE</font> </TD><TD valign=top> <font color=#404040>Surface is just a sub area of another one sharing the surface data. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_INTERLACED</font> </TD><TD valign=top> <font color=#404040>Each buffer contains interlaced video (or graphics) data consisting of two fields.<br> Their lines are stored interleaved. One field's height is a half of the surface's height. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_SEPARATED</font> </TD><TD valign=top> <font color=#404040>For usage with DSCAPS_INTERLACED.<br> DSCAPS_SEPARATED specifies that the fields are NOT interleaved line by line in the buffer.<br> The first field is followed by the second one. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_STATIC_ALLOC</font> </TD><TD valign=top> <font color=#404040>The amount of video or system memory allocated for the surface is never less than its initial value. This way a surface can be resized (smaller and bigger up to the initial size) without reallocation of the buffers. It's useful for surfaces that need a guaranteed space in video memory after resizing. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_TRIPLE</font> </TD><TD valign=top> <font color=#404040>Surface is triple buffered. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_PREMULTIPLIED</font> </TD><TD valign=top> <font color=#404040>Surface stores data with premultiplied alpha. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_DEPTH</font> </TD><TD valign=top> <font color=#404040>A depth buffer is allocated. </font> </TD></TR> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DSCAPS_ALL</font> </TD><TD valign=top> <font color=#404040>All of these. </font> </TD></TR> </TABLE> The surface capabilities. <br></p><p> <a name=DFBPaletteCapabilities> <font color=#D07070 size=+1>DFBPaletteCapabilities</font> <br> <TABLE border=0 cellspacing=0 cellpadding=4 bgcolor=#F0F0F0> <TR><TD width=32> </TD><TD valign=top> <font color=#40A040>DPCAPS_NONE</font> </TD><TD valign=top> <font color=#404040>None of these. </font> </TD></TR> </TABLE> The palette capabilities. <br></p><p> <a name=DFBSurfaceDrawingFlags>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -