00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00064 #ifndef ti_sdo_dmai_Display_h_
00065 #define ti_sdo_dmai_Display_h_
00066
00067 #include <xdc/std.h>
00068
00069 #include <ti/sdo/dmai/Dmai.h>
00070 #include <ti/sdo/dmai/BufTab.h>
00071 #include <ti/sdo/dmai/VideoStd.h>
00072 #include <ti/sdo/dmai/ColorSpace.h>
00073
00076
00080 typedef enum {
00082 Display_Std_V4L2 = 0,
00083
00085 Display_Std_FBDEV,
00086
00087 Display_Std_COUNT
00088 } Display_Std;
00089
00093 typedef enum {
00095 Display_Output_SVIDEO = 0,
00096
00098 Display_Output_COMPOSITE,
00099
00101 Display_Output_COMPONENT,
00102
00104 Display_Output_LCD,
00105
00107 Display_Output_DVI,
00108
00110 Display_Output_SYSTEM,
00111
00112 Display_Output_COUNT
00113 } Display_Output;
00114
00118 typedef enum {
00120 Display_Control_V4L2_Overlay_FMT = 0,
00121
00123 Display_Control_V4L2_Output_FMT,
00124
00126 Display_Control_V4L2_Streamoff,
00127
00129 Display_Control_V4L2_Streamon,
00130
00132 Display_Control_V4L2_Qbuf,
00133
00134 Display_Control_COUNT
00135 } Display_Control_Message;
00136
00153 typedef struct Display_Attrs {
00156 Int numBufs;
00157
00161 Display_Std displayStd;
00162
00166 VideoStd_Type videoStd;
00167
00171 Display_Output videoOutput;
00172
00176 Char *displayDevice;
00177
00182 Int rotation;
00183
00185 ColorSpace_Type colorSpace;
00186
00189 Int width;
00190
00193 Int height;
00194
00200 Int delayStreamon;
00201
00209 Int forceFrameRateNum;
00210
00215 Int forceFrameRateDen;
00216
00222 Int streamonDisable;
00223 } Display_Attrs;
00224
00228 typedef struct Display_Object *Display_Handle;
00229
00248 extern const Display_Attrs Display_Attrs_DM6446_DM355_ATTR_DEFAULT;
00249
00268 extern const Display_Attrs Display_Attrs_DM6446_DM355_OSD_DEFAULT;
00269
00288 extern const Display_Attrs Display_Attrs_DM6446_DM355_VID_DEFAULT;
00289
00308 extern const Display_Attrs Display_Attrs_OMAPL137_OSD_DEFAULT;
00309
00328 extern const Display_Attrs Display_Attrs_OMAPL138_OSD_DEFAULT;
00329
00349 extern const Display_Attrs Display_Attrs_OMAPL138_VID_DEFAULT;
00350
00369 extern const Display_Attrs Display_Attrs_DM6467_VID_DEFAULT;
00370
00389 extern const Display_Attrs Display_Attrs_DM365_VID_DEFAULT;
00390
00409 extern const Display_Attrs Display_Attrs_DM365_OSD_DEFAULT;
00410
00429 extern const Display_Attrs Display_Attrs_DM365_ATTR_DEFAULT;
00430
00449 extern const Display_Attrs Display_Attrs_O3530_VID_DEFAULT;
00450
00469 extern const Display_Attrs Display_Attrs_O3530_OSD_DEFAULT;
00470
00471 #if defined (__cplusplus)
00472 extern "C" {
00473 #endif
00474
00487 extern Display_Handle Display_create(BufTab_Handle hBufTab,
00488 Display_Attrs *attrs);
00489
00500 extern Int Display_delete(Display_Handle hDisplay);
00501
00514 extern Int Display_get(Display_Handle hDisplay, Buffer_Handle *hBuf);
00515
00535 extern Int Display_put(Display_Handle hDisplay, Buffer_Handle hBufPtr);
00536
00547 extern VideoStd_Type Display_getVideoStd(Display_Handle hDisplay);
00548
00549
00560 extern BufTab_Handle Display_getBufTab(Display_Handle hDisplay);
00561
00573 extern Int Display_getHandle(Display_Handle hDisplay);
00574
00593 extern Int Display_control(Display_Handle hDisplay,
00594 Display_Control_Message message, void *parameters, BufTab_Handle hBufTab, Display_Attrs *attrs);
00595
00596 #if defined (__cplusplus)
00597 }
00598 #endif
00599
00602 #endif