summaryrefslogtreecommitdiff
path: root/Source/DirectFB/include/directfb_strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/DirectFB/include/directfb_strings.h')
-rwxr-xr-xSource/DirectFB/include/directfb_strings.h474
1 files changed, 474 insertions, 0 deletions
diff --git a/Source/DirectFB/include/directfb_strings.h b/Source/DirectFB/include/directfb_strings.h
new file mode 100755
index 0000000..f826817
--- /dev/null
+++ b/Source/DirectFB/include/directfb_strings.h
@@ -0,0 +1,474 @@
+#ifndef __DIRECTFB_STRINGS_H__
+#define __DIRECTFB_STRINGS_H__
+
+
+struct DFBPixelFormatName {
+ DFBSurfacePixelFormat format;
+ const char *name;
+};
+
+#define DirectFBPixelFormatNames(Identifier) struct DFBPixelFormatName Identifier[] = { \
+ { DSPF_ARGB1555, "ARGB1555" }, \
+ { DSPF_RGB16, "RGB16" }, \
+ { DSPF_RGB24, "RGB24" }, \
+ { DSPF_RGB32, "RGB32" }, \
+ { DSPF_ARGB, "ARGB" }, \
+ { DSPF_A8, "A8" }, \
+ { DSPF_YUY2, "YUY2" }, \
+ { DSPF_RGB332, "RGB332" }, \
+ { DSPF_UYVY, "UYVY" }, \
+ { DSPF_I420, "I420" }, \
+ { DSPF_YV12, "YV12" }, \
+ { DSPF_LUT8, "LUT8" }, \
+ { DSPF_ALUT44, "ALUT44" }, \
+ { DSPF_AiRGB, "AiRGB" }, \
+ { DSPF_A1, "A1" }, \
+ { DSPF_NV12, "NV12" }, \
+ { DSPF_NV16, "NV16" }, \
+ { DSPF_ARGB2554, "ARGB2554" }, \
+ { DSPF_ARGB4444, "ARGB4444" }, \
+ { DSPF_RGBA4444, "RGBA4444" }, \
+ { DSPF_NV21, "NV21" }, \
+ { DSPF_AYUV, "AYUV" }, \
+ { DSPF_A4, "A4" }, \
+ { DSPF_ARGB1666, "ARGB1666" }, \
+ { DSPF_ARGB6666, "ARGB6666" }, \
+ { DSPF_RGB18, "RGB18" }, \
+ { DSPF_LUT2, "LUT2" }, \
+ { DSPF_RGB444, "RGB444" }, \
+ { DSPF_RGB555, "RGB555" }, \
+ { DSPF_BGR555, "BGR555" }, \
+ { DSPF_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBInputDeviceTypeFlagsName {
+ DFBInputDeviceTypeFlags type;
+ const char *name;
+};
+
+#define DirectFBInputDeviceTypeFlagsNames(Identifier) struct DFBInputDeviceTypeFlagsName Identifier[] = { \
+ { DIDTF_KEYBOARD, "KEYBOARD" }, \
+ { DIDTF_MOUSE, "MOUSE" }, \
+ { DIDTF_JOYSTICK, "JOYSTICK" }, \
+ { DIDTF_REMOTE, "REMOTE" }, \
+ { DIDTF_VIRTUAL, "VIRTUAL" }, \
+ { DIDTF_NONE, "NONE" } \
+};
+
+
+struct DFBSurfaceDrawingFlagsName {
+ DFBSurfaceDrawingFlags flag;
+ const char *name;
+};
+
+#define DirectFBSurfaceDrawingFlagsNames(Identifier) struct DFBSurfaceDrawingFlagsName Identifier[] = { \
+ { DSDRAW_BLEND, "BLEND" }, \
+ { DSDRAW_DST_COLORKEY, "DST_COLORKEY" }, \
+ { DSDRAW_SRC_PREMULTIPLY, "SRC_PREMULTIPLY" }, \
+ { DSDRAW_DST_PREMULTIPLY, "DST_PREMULTIPLY" }, \
+ { DSDRAW_DEMULTIPLY, "DEMULTIPLY" }, \
+ { DSDRAW_XOR, "XOR" }, \
+ { DSDRAW_NOFX, "NOFX" } \
+};
+
+
+struct DFBSurfaceBlittingFlagsName {
+ DFBSurfaceBlittingFlags flag;
+ const char *name;
+};
+
+#define DirectFBSurfaceBlittingFlagsNames(Identifier) struct DFBSurfaceBlittingFlagsName Identifier[] = { \
+ { DSBLIT_BLEND_ALPHACHANNEL, "BLEND_ALPHACHANNEL" }, \
+ { DSBLIT_BLEND_COLORALPHA, "BLEND_COLORALPHA" }, \
+ { DSBLIT_COLORIZE, "COLORIZE" }, \
+ { DSBLIT_SRC_COLORKEY, "SRC_COLORKEY" }, \
+ { DSBLIT_DST_COLORKEY, "DST_COLORKEY" }, \
+ { DSBLIT_SRC_PREMULTIPLY, "SRC_PREMULTIPLY" }, \
+ { DSBLIT_DST_PREMULTIPLY, "DST_PREMULTIPLY" }, \
+ { DSBLIT_DEMULTIPLY, "DEMULTIPLY" }, \
+ { DSBLIT_DEINTERLACE, "DEINTERLACE" }, \
+ { DSBLIT_SRC_PREMULTCOLOR, "SRC_PREMULTCOLOR" }, \
+ { DSBLIT_XOR, "XOR" }, \
+ { DSBLIT_INDEX_TRANSLATION, "INDEX_TRANSLATION" }, \
+ { DSBLIT_ROTATE90, "ROTATE90" }, \
+ { DSBLIT_ROTATE180, "ROTATE180" }, \
+ { DSBLIT_ROTATE270, "ROTATE270" }, \
+ { DSBLIT_COLORKEY_PROTECT, "COLORKEY_PROTECT" }, \
+ { DSBLIT_SRC_MASK_ALPHA, "SRC_MASK_ALPHA" }, \
+ { DSBLIT_SRC_MASK_COLOR, "SRC_MASK_COLOR" }, \
+ { DSBLIT_NOFX, "NOFX" } \
+};
+
+
+struct DFBSurfaceBlendFunctionName {
+ DFBSurfaceBlendFunction function;
+ const char *name;
+};
+
+#define DirectFBSurfaceBlendFunctionNames(Identifier) struct DFBSurfaceBlendFunctionName Identifier[] = { \
+ { DSBF_ZERO, "ZERO" }, \
+ { DSBF_ONE, "ONE" }, \
+ { DSBF_SRCCOLOR, "SRCCOLOR" }, \
+ { DSBF_INVSRCCOLOR, "INVSRCCOLOR" }, \
+ { DSBF_SRCALPHA, "SRCALPHA" }, \
+ { DSBF_INVSRCALPHA, "INVSRCALPHA" }, \
+ { DSBF_DESTALPHA, "DESTALPHA" }, \
+ { DSBF_INVDESTALPHA, "INVDESTALPHA" }, \
+ { DSBF_DESTCOLOR, "DESTCOLOR" }, \
+ { DSBF_INVDESTCOLOR, "INVDESTCOLOR" }, \
+ { DSBF_SRCALPHASAT, "SRCALPHASAT" }, \
+ { DSBF_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBInputDeviceCapabilitiesName {
+ DFBInputDeviceCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBInputDeviceCapabilitiesNames(Identifier) struct DFBInputDeviceCapabilitiesName Identifier[] = { \
+ { DICAPS_KEYS, "KEYS" }, \
+ { DICAPS_AXES, "AXES" }, \
+ { DICAPS_BUTTONS, "BUTTONS" }, \
+ { DICAPS_NONE, "NONE" } \
+};
+
+
+struct DFBDisplayLayerTypeFlagsName {
+ DFBDisplayLayerTypeFlags type;
+ const char *name;
+};
+
+#define DirectFBDisplayLayerTypeFlagsNames(Identifier) struct DFBDisplayLayerTypeFlagsName Identifier[] = { \
+ { DLTF_GRAPHICS, "GRAPHICS" }, \
+ { DLTF_VIDEO, "VIDEO" }, \
+ { DLTF_STILL_PICTURE, "STILL_PICTURE" }, \
+ { DLTF_BACKGROUND, "BACKGROUND" }, \
+ { DLTF_NONE, "NONE" } \
+};
+
+
+struct DFBDisplayLayerCapabilitiesName {
+ DFBDisplayLayerCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBDisplayLayerCapabilitiesNames(Identifier) struct DFBDisplayLayerCapabilitiesName Identifier[] = { \
+ { DLCAPS_SURFACE, "SURFACE" }, \
+ { DLCAPS_OPACITY, "OPACITY" }, \
+ { DLCAPS_ALPHACHANNEL, "ALPHACHANNEL" }, \
+ { DLCAPS_SCREEN_LOCATION, "SCREEN_LOCATION" }, \
+ { DLCAPS_FLICKER_FILTERING, "FLICKER_FILTERING" }, \
+ { DLCAPS_DEINTERLACING, "DEINTERLACING" }, \
+ { DLCAPS_SRC_COLORKEY, "SRC_COLORKEY" }, \
+ { DLCAPS_DST_COLORKEY, "DST_COLORKEY" }, \
+ { DLCAPS_BRIGHTNESS, "BRIGHTNESS" }, \
+ { DLCAPS_CONTRAST, "CONTRAST" }, \
+ { DLCAPS_HUE, "HUE" }, \
+ { DLCAPS_SATURATION, "SATURATION" }, \
+ { DLCAPS_LEVELS, "LEVELS" }, \
+ { DLCAPS_FIELD_PARITY, "FIELD_PARITY" }, \
+ { DLCAPS_WINDOWS, "WINDOWS" }, \
+ { DLCAPS_SOURCES, "SOURCES" }, \
+ { DLCAPS_ALPHA_RAMP, "ALPHA_RAMP" }, \
+ { DLCAPS_PREMULTIPLIED, "PREMULTIPLIED" }, \
+ { DLCAPS_SCREEN_POSITION, "SCREEN_POSITION" }, \
+ { DLCAPS_SCREEN_SIZE, "SCREEN_SIZE" }, \
+ { DLCAPS_CLIP_REGIONS, "CLIP_REGIONS" }, \
+ { DLCAPS_NONE, "NONE" } \
+};
+
+
+struct DFBDisplayLayerBufferModeName {
+ DFBDisplayLayerBufferMode mode;
+ const char *name;
+};
+
+#define DirectFBDisplayLayerBufferModeNames(Identifier) struct DFBDisplayLayerBufferModeName Identifier[] = { \
+ { DLBM_FRONTONLY, "FRONTONLY" }, \
+ { DLBM_BACKVIDEO, "BACKVIDEO" }, \
+ { DLBM_BACKSYSTEM, "BACKSYSTEM" }, \
+ { DLBM_TRIPLE, "TRIPLE" }, \
+ { DLBM_WINDOWS, "WINDOWS" }, \
+ { DLBM_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBWindowCapabilitiesName {
+ DFBWindowCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBWindowCapabilitiesNames(Identifier) struct DFBWindowCapabilitiesName Identifier[] = { \
+ { DWCAPS_ALPHACHANNEL, "ALPHACHANNEL" }, \
+ { DWCAPS_DOUBLEBUFFER, "DOUBLEBUFFER" }, \
+ { DWCAPS_INPUTONLY, "INPUTONLY" }, \
+ { DWCAPS_NODECORATION, "NODECORATION" }, \
+ { DWCAPS_SUBWINDOW, "SUBWINDOW" }, \
+ { DWCAPS_NOFOCUS, "NOFOCUS" }, \
+ { DWCAPS_NONE, "NONE" } \
+};
+
+
+struct DFBWindowOptionsName {
+ DFBWindowOptions option;
+ const char *name;
+};
+
+#define DirectFBWindowOptionsNames(Identifier) struct DFBWindowOptionsName Identifier[] = { \
+ { DWOP_COLORKEYING, "COLORKEYING" }, \
+ { DWOP_ALPHACHANNEL, "ALPHACHANNEL" }, \
+ { DWOP_OPAQUE_REGION, "OPAQUE_REGION" }, \
+ { DWOP_SHAPED, "SHAPED" }, \
+ { DWOP_ALPHACHANNEL, "ALPHACHANNEL" }, \
+ { DWOP_KEEP_POSITION, "KEEP_POSITION" }, \
+ { DWOP_KEEP_SIZE, "KEEP_SIZE" }, \
+ { DWOP_KEEP_STACKING, "KEEP_STACKING" }, \
+ { DWOP_GHOST, "GHOST" }, \
+ { DWOP_INDESTRUCTIBLE, "INDESTRUCTIBLE" }, \
+ { DWOP_SCALE, "SCALE" }, \
+ { DWOP_KEEP_ABOVE, "KEEP_ABOVE" }, \
+ { DWOP_KEEP_UNDER, "KEEP_UNDER" }, \
+ { DWOP_FOLLOW_BOUNDS, "FOLLOW_BOUNDS" }, \
+ { DWOP_NONE, "NONE" } \
+};
+
+
+struct DFBScreenCapabilitiesName {
+ DFBScreenCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBScreenCapabilitiesNames(Identifier) struct DFBScreenCapabilitiesName Identifier[] = { \
+ { DSCCAPS_VSYNC, "VSYNC" }, \
+ { DSCCAPS_POWER_MANAGEMENT, "POWER_MANAGEMENT" }, \
+ { DSCCAPS_MIXERS, "MIXERS" }, \
+ { DSCCAPS_ENCODERS, "ENCODERS" }, \
+ { DSCCAPS_OUTPUTS, "OUTPUTS" }, \
+ { DSCCAPS_NONE, "NONE" } \
+};
+
+
+struct DFBScreenEncoderCapabilitiesName {
+ DFBScreenEncoderCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBScreenEncoderCapabilitiesNames(Identifier) struct DFBScreenEncoderCapabilitiesName Identifier[] = { \
+ { DSECAPS_TV_STANDARDS, "TV_STANDARDS" }, \
+ { DSECAPS_TEST_PICTURE, "TEST_PICTURE" }, \
+ { DSECAPS_MIXER_SEL, "MIXER_SEL" }, \
+ { DSECAPS_OUT_SIGNALS, "OUT_SIGNALS" }, \
+ { DSECAPS_SCANMODE, "SCANMODE" }, \
+ { DSECAPS_FREQUENCY, "FREQUENCY" }, \
+ { DSECAPS_BRIGHTNESS, "BRIGHTNESS" }, \
+ { DSECAPS_CONTRAST, "CONTRAST" }, \
+ { DSECAPS_HUE, "HUE" }, \
+ { DSECAPS_SATURATION, "SATURATION" }, \
+ { DSECAPS_CONNECTORS, "CONNECTORS" }, \
+ { DSECAPS_SLOW_BLANKING, "SLOW_BLANKING" }, \
+ { DSECAPS_RESOLUTION, "RESOLUTION" }, \
+ { DSECAPS_NONE, "NONE" } \
+};
+
+
+struct DFBScreenEncoderTypeName {
+ DFBScreenEncoderType type;
+ const char *name;
+};
+
+#define DirectFBScreenEncoderTypeNames(Identifier) struct DFBScreenEncoderTypeName Identifier[] = { \
+ { DSET_CRTC, "CRTC" }, \
+ { DSET_TV, "TV" }, \
+ { DSET_DIGITAL, "DIGITAL" }, \
+ { DSET_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBScreenEncoderTVStandardsName {
+ DFBScreenEncoderTVStandards standard;
+ const char *name;
+};
+
+#define DirectFBScreenEncoderTVStandardsNames(Identifier) struct DFBScreenEncoderTVStandardsName Identifier[] = { \
+ { DSETV_PAL, "PAL" }, \
+ { DSETV_NTSC, "NTSC" }, \
+ { DSETV_SECAM, "SECAM" }, \
+ { DSETV_PAL_60, "PAL_60" }, \
+ { DSETV_PAL_BG, "PAL_BG" }, \
+ { DSETV_PAL_I, "PAL_I" }, \
+ { DSETV_PAL_M, "PAL_M" }, \
+ { DSETV_PAL_N, "PAL_N" }, \
+ { DSETV_PAL_NC, "PAL_NC" }, \
+ { DSETV_NTSC_M_JPN, "NTSC_M_JPN" }, \
+ { DSETV_NTSC_443, "NTSC_443" }, \
+ { DSETV_DIGITAL, "DIGITAL" }, \
+ { DSETV_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBScreenOutputCapabilitiesName {
+ DFBScreenOutputCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBScreenOutputCapabilitiesNames(Identifier) struct DFBScreenOutputCapabilitiesName Identifier[] = { \
+ { DSOCAPS_CONNECTORS, "CONNECTORS" }, \
+ { DSOCAPS_ENCODER_SEL, "ENCODER_SEL" }, \
+ { DSOCAPS_SIGNAL_SEL, "SIGNAL_SEL" }, \
+ { DSOCAPS_CONNECTOR_SEL, "CONNECTOR_SEL" }, \
+ { DSOCAPS_SLOW_BLANKING, "SLOW_BLANKING" }, \
+ { DSOCAPS_RESOLUTION, "RESOLUTION" }, \
+ { DSOCAPS_NONE, "NONE" } \
+};
+
+
+struct DFBScreenOutputConnectorsName {
+ DFBScreenOutputConnectors connector;
+ const char *name;
+};
+
+#define DirectFBScreenOutputConnectorsNames(Identifier) struct DFBScreenOutputConnectorsName Identifier[] = { \
+ { DSOC_VGA, "VGA" }, \
+ { DSOC_SCART, "SCART" }, \
+ { DSOC_YC, "YC" }, \
+ { DSOC_CVBS, "CVBS" }, \
+ { DSOC_SCART2, "SCART2" }, \
+ { DSOC_COMPONENT, "COMPONENT" }, \
+ { DSOC_HDMI, "HDMI" }, \
+ { DSOC_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBScreenOutputSignalsName {
+ DFBScreenOutputSignals signal;
+ const char *name;
+};
+
+#define DirectFBScreenOutputSignalsNames(Identifier) struct DFBScreenOutputSignalsName Identifier[] = { \
+ { DSOS_VGA, "VGA" }, \
+ { DSOS_YC, "YC" }, \
+ { DSOS_CVBS, "CVBS" }, \
+ { DSOS_RGB, "RGB" }, \
+ { DSOS_YCBCR, "YCBCR" }, \
+ { DSOS_HDMI, "HDMI" }, \
+ { DSOS_656, "656" }, \
+ { DSOS_NONE, "NONE" } \
+};
+
+
+struct DFBScreenOutputSlowBlankingSignalsName {
+ DFBScreenOutputSlowBlankingSignals slow_signal;
+ const char *name;
+};
+
+#define DirectFBScreenOutputSlowBlankingSignalsNames(Identifier) struct DFBScreenOutputSlowBlankingSignalsName Identifier[] = { \
+ { DSOSB_16x9, "16x9" }, \
+ { DSOSB_4x3, "4x3" }, \
+ { DSOSB_FOLLOW, "FOLLOW" }, \
+ { DSOSB_MONITOR, "MONITOR" }, \
+ { DSOSB_OFF, "OFF" } \
+};
+
+
+struct DFBScreenOutputResolutionName {
+ DFBScreenOutputResolution resolution;
+ const char *name;
+};
+
+#define DirectFBScreenOutputResolutionNames(Identifier) struct DFBScreenOutputResolutionName Identifier[] = { \
+ { DSOR_640_480, "640_480" }, \
+ { DSOR_720_480, "720_480" }, \
+ { DSOR_720_576, "720_576" }, \
+ { DSOR_800_600, "800_600" }, \
+ { DSOR_1024_768, "1024_768" }, \
+ { DSOR_1152_864, "1152_864" }, \
+ { DSOR_1280_720, "1280_720" }, \
+ { DSOR_1280_768, "1280_768" }, \
+ { DSOR_1280_960, "1280_960" }, \
+ { DSOR_1280_1024, "1280_1024" }, \
+ { DSOR_1400_1050, "1400_1050" }, \
+ { DSOR_1600_1200, "1600_1200" }, \
+ { DSOR_1920_1080, "1920_1080" }, \
+ { DSOR_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBScreenMixerCapabilitiesName {
+ DFBScreenMixerCapabilities capability;
+ const char *name;
+};
+
+#define DirectFBScreenMixerCapabilitiesNames(Identifier) struct DFBScreenMixerCapabilitiesName Identifier[] = { \
+ { DSMCAPS_FULL, "FULL" }, \
+ { DSMCAPS_SUB_LEVEL, "SUB_LEVEL" }, \
+ { DSMCAPS_SUB_LAYERS, "SUB_LAYERS" }, \
+ { DSMCAPS_BACKGROUND, "BACKGROUND" }, \
+ { DSMCAPS_NONE, "NONE" } \
+};
+
+
+struct DFBScreenMixerTreeName {
+ DFBScreenMixerTree tree;
+ const char *name;
+};
+
+#define DirectFBScreenMixerTreeNames(Identifier) struct DFBScreenMixerTreeName Identifier[] = { \
+ { DSMT_FULL, "FULL" }, \
+ { DSMT_SUB_LEVEL, "SUB_LEVEL" }, \
+ { DSMT_SUB_LAYERS, "SUB_LAYERS" }, \
+ { DSMT_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBScreenEncoderTestPictureName {
+ DFBScreenEncoderTestPicture test_picture;
+ const char *name;
+};
+
+#define DirectFBScreenEncoderTestPictureNames(Identifier) struct DFBScreenEncoderTestPictureName Identifier[] = { \
+ { DSETP_MULTI, "MULTI" }, \
+ { DSETP_SINGLE, "SINGLE" }, \
+ { DSETP_WHITE, "WHITE" }, \
+ { DSETP_YELLOW, "YELLOW" }, \
+ { DSETP_CYAN, "CYAN" }, \
+ { DSETP_GREEN, "GREEN" }, \
+ { DSETP_MAGENTA, "MAGENTA" }, \
+ { DSETP_RED, "RED" }, \
+ { DSETP_BLUE, "BLUE" }, \
+ { DSETP_BLACK, "BLACK" }, \
+ { DSETP_OFF, "OFF" } \
+};
+
+
+struct DFBScreenEncoderScanModeName {
+ DFBScreenEncoderScanMode scan_mode;
+ const char *name;
+};
+
+#define DirectFBScreenEncoderScanModeNames(Identifier) struct DFBScreenEncoderScanModeName Identifier[] = { \
+ { DSESM_INTERLACED, "INTERLACED" }, \
+ { DSESM_PROGRESSIVE, "PROGRESSIVE" }, \
+ { DSESM_UNKNOWN, "UNKNOWN" } \
+};
+
+
+struct DFBAccelerationMaskName {
+ DFBAccelerationMask mask;
+ const char *name;
+};
+
+#define DirectFBAccelerationMaskNames(Identifier) struct DFBAccelerationMaskName Identifier[] = { \
+ { DFXL_FILLRECTANGLE, "FILLRECTANGLE" }, \
+ { DFXL_DRAWRECTANGLE, "DRAWRECTANGLE" }, \
+ { DFXL_DRAWLINE, "DRAWLINE" }, \
+ { DFXL_FILLTRIANGLE, "FILLTRIANGLE" }, \
+ { DFXL_BLIT, "BLIT" }, \
+ { DFXL_STRETCHBLIT, "STRETCHBLIT" }, \
+ { DFXL_TEXTRIANGLES, "TEXTRIANGLES" }, \
+ { DFXL_DRAWSTRING, "DRAWSTRING" }, \
+ { DFXL_NONE, "NONE" } \
+};
+
+#endif