![]() |
![]() |
Data Structures | |
struct | Display_Attrs |
Attributes used to create a Display device driver instance. More... | |
Typedefs | |
typedef struct Display_Object * | Display_Handle |
Handle through which to reference a Display device instance. | |
Enumerations | |
enum | Display_Std { Display_Std_V4L2 = 0, Display_Std_FBDEV, Display_Std_COUNT } |
Display standards supported on Linux (v4l2 and fbdev). More... | |
enum | Display_Output { Display_Output_SVIDEO = 0, Display_Output_COMPOSITE, Display_Output_COMPONENT, Display_Output_LCD, Display_Output_DVI, Display_Output_SYSTEM, Display_Output_COUNT } |
Video display outputs. More... | |
enum | Display_Control_Message { Display_Control_V4L2_Overlay_FMT = 0, Display_Control_V4L2_Output_FMT, Display_Control_V4L2_Streamoff, Display_Control_V4L2_Streamon, Display_Control_V4L2_Qbuf, Display_Control_COUNT } |
Video display control Messages. More... | |
Functions | |
Display_Handle | Display_create (BufTab_Handle hBufTab, Display_Attrs *attrs) |
Creates a Display driver instance. | |
Int | Display_delete (Display_Handle hDisplay) |
Deletes a Display driver instance. | |
Int | Display_get (Display_Handle hDisplay, Buffer_Handle *hBuf) |
Receive a buffer from the display device driver instance to be filled with data. | |
Int | Display_put (Display_Handle hDisplay, Buffer_Handle hBufPtr) |
Send a buffer with data to the display device driver instance to be shown on the display. | |
VideoStd_Type | Display_getVideoStd (Display_Handle hDisplay) |
Get the display standard used by a Display device driver instance. | |
BufTab_Handle | Display_getBufTab (Display_Handle hDisplay) |
Get a handle to the BufTab used by the Display device driver instance. | |
Int | Display_getHandle (Display_Handle hDisplay) |
Obtains the File Descriptor for a given Display driver instance. | |
Int | Display_control (Display_Handle hDisplay, Display_Control_Message message, void *parameters, BufTab_Handle hBufTab, Display_Attrs *attrs) |
Sends a Control a Message to the A Display Driver Instance. | |
Variables | |
const Display_Attrs | Display_Attrs_DM6446_DM355_ATTR_DEFAULT |
Default parameters for the Attribute window on DM6446 / DM355. | |
const Display_Attrs | Display_Attrs_DM6446_DM355_OSD_DEFAULT |
Default parameters for the OSD window on DM6446 / DM355. | |
const Display_Attrs | Display_Attrs_DM6446_DM355_VID_DEFAULT |
Default parameters for Video window 1 on DM6446 / DM355. | |
const Display_Attrs | Display_Attrs_OMAPL137_OSD_DEFAULT |
Default parameters for the OSD window on OMAPL137. | |
const Display_Attrs | Display_Attrs_OMAPL138_OSD_DEFAULT |
Default parameters for the OSD window on OMAPL138. | |
const Display_Attrs | Display_Attrs_OMAPL138_VID_DEFAULT |
Default parameters for VID window on OMAPL138. | |
const Display_Attrs | Display_Attrs_DM6467_VID_DEFAULT |
Default parameters for Video window on DM6467. | |
const Display_Attrs | Display_Attrs_DM365_VID_DEFAULT |
Default parameters for Video window on DM365. | |
const Display_Attrs | Display_Attrs_DM365_OSD_DEFAULT |
Default parameters for OSD window on DM365. | |
const Display_Attrs | Display_Attrs_DM365_ATTR_DEFAULT |
Default parameters for Attribute window on DM365. | |
const Display_Attrs | Display_Attrs_O3530_VID_DEFAULT |
Default parameters for Video window on OMAP3530. | |
const Display_Attrs | Display_Attrs_O3530_OSD_DEFAULT |
Default parameters for OSD window on OMAP3530. |
#include <xdc/std.h> #include <ti/sdo/dmai/Dmai.h> #include <ti/sdo/dmai/Display.h> #include <ti/sdo/dmai/BufferGfx.h> BufferGfx_Handle dBuf; Display_Attrs dattrs = Display_Attrs_DM6446_DM355_VID_DEFAULT; Display_Handle hDisplay; Dmai_init(); hDisplay = Display_create(NULL, &dAttrs); while (1) { Display_get(hDisplay, &dBuf); // Write data in to display buffer "dBuf" for display.. Display_put(hDisplay, dBuf); } Display_delete(hDisplay);
typedef struct Display_Object* Display_Handle |
Handle through which to reference a Display device instance.
enum Display_Std |
enum Display_Output |
Video display outputs.
Video display control Messages.
Display_Handle Display_create | ( | BufTab_Handle | hBufTab, | |
Display_Attrs * | attrs | |||
) |
Creates a Display driver instance.
[in] | hBufTab | The BufTab with buffers to use with the display device. If NULL is passed, the display driver will be used to allocate the buffers. |
[in] | attrs | Display_Attrs to use for creating the Display driver instance. |
Display_Handle | for use in subsequent operations. | |
NULL | for failure. |
Int Display_delete | ( | Display_Handle | hDisplay | ) |
Deletes a Display driver instance.
[in] | hDisplay | The Display_Handle to delete. |
Dmai_EOK | for success. | |
Negative value | for failure, see Dmai.h. |
Int Display_get | ( | Display_Handle | hDisplay, | |
Buffer_Handle * | hBuf | |||
) |
Receive a buffer from the display device driver instance to be filled with data.
[in] | hDisplay | The Display_Handle to get a buffer from. |
[out] | hBuf | A pointer to the Buffer_Handle received. |
Dmai_EOK | for success. | |
Negative value | for failure, see Dmai.h. |
Int Display_put | ( | Display_Handle | hDisplay, | |
Buffer_Handle | hBufPtr | |||
) |
Send a buffer with data to the display device driver instance to be shown on the display.
[in] | hDisplay | The Display_Handle to send a buffer to. |
[in] | hBufPtr | A Buffer_Handle to send to the display device. |
Dmai_EOK | for success. | |
Negative value | for failure, see Dmai.h. |
For Frame buffer Display driver Display_get and Display_put have to called in sequence for since Display_fbdev_put is function which assigns the working index.If not called in sequence it will return the same buffer address as previous Display_get function. Current implementation for Frame Buffer driver will work to support two buffers. In order to support more buffers implementation will have to be changed.
VideoStd_Type Display_getVideoStd | ( | Display_Handle | hDisplay | ) |
Get the display standard used by a Display device driver instance.
[in] | hDisplay | The Display_Handle to get the video standard of. |
Type | of video standard used (see VideoStd_Type). |
BufTab_Handle Display_getBufTab | ( | Display_Handle | hDisplay | ) |
Get a handle to the BufTab used by the Display device driver instance.
[in] | hDisplay | The Display_Handle to get the BufTab of. |
Handle | to the BufTab used (see BufTab_Handle). |
Int Display_getHandle | ( | Display_Handle | hDisplay | ) |
Obtains the File Descriptor for a given Display driver instance.
[in] | hDisplay | The Display_Handle to get the BufTab of. |
Internal | Handle associated with this Display. |
Tested only for transparency in OMAP3530 platform.
Returns the File Descriptor for Linux.
Int Display_control | ( | Display_Handle | hDisplay, | |
Display_Control_Message | message, | |||
void * | parameters, | |||
BufTab_Handle | hBufTab, | |||
Display_Attrs * | attrs | |||
) |
Sends a Control a Message to the A Display Driver Instance.
[in] | hDisplay | The Display_Handle where the message should be delivered. |
[in] | messsage | The Display_Control_Message message that is sent to the Driver. |
[in] | hBufTab | The BufTab with buffers to use with the display device. If NULL is passed, the display driver will be used to allocate the buffers. |
[in] | parameters | A pointer to the parameters related to the specific message. |
Dmai_EOK | for success. | |
Negative value | for failure, see Dmai.h. |
Default parameters for the Attribute window on DM6446 / DM355.
numBufs = 1, displayStd = Display_Std_FBDEV, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/fb2" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for the OSD window on DM6446 / DM355.
numBufs = 2, displayStd = Display_Std_FBDEV, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/fb0" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for Video window 1 on DM6446 / DM355.
numBufs = 3, displayStd = Display_Std_FBDEV, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/fb3" rotation = 0 colorSpace = ColorSpace_UYVY width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for the OSD window on OMAPL137.
numBufs = 1, displayStd = Display_Std_FBDEV, videoStd = VideoStd_QVGA, videoOutput = Display_Output_LCD, displayDevice = "/dev/fb/0" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for the OSD window on OMAPL138.
numBufs = 1, displayStd = Display_Std_FBDEV, videoStd = VideoStd_QVGA, videoOutput = Display_Output_LCD, displayDevice = "/dev/fb0" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for VID window on OMAPL138.
frameSkip = FALSE, numBufs = 3, displayStd = Display_Std_V4L2, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/video2" rotation = -1 colorSpace = ColorSpace_YUV422PSEMI width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for Video window on DM6467.
numBufs = 3, displayStd = Display_Std_V4L2, videoStd = VideoStd_720P_60, videoOutput = Display_Output_COMPONENT, displayDevice = "/dev/video2" rotation = 0 colorSpace = ColorSpace_YUV422PSEMI width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for Video window on DM365.
numBufs = 3, displayStd = Display_Std_V4L2, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/video2" rotation = 0 colorSpace = ColorSpace_YUV420PSEMI width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for OSD window on DM365.
numBufs = 2, displayStd = Display_Std_FBDEV, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/fb0" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for Attribute window on DM365.
numBufs = 1, displayStd = Display_Std_FBDEV, videoStd = VideoStd_D1_NTSC, videoOutput = Display_Output_COMPOSITE, displayDevice = "/dev/fb2" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for Video window on OMAP3530.
numBufs = 3, displayStd = Display_Std_V4L2, videoStd = VideoStd_VGA, videoOutput = Display_Output_LCD, displayDevice = "/dev/video1" rotation = 0 colorSpace = ColorSpace_UYVY width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE
Default parameters for OSD window on OMAP3530.
numBufs = 1, displayStd = Display_Std_FBDEV, videoStd = VideoStd_VGA, videoOutput = Display_Output_LCD, displayDevice = "/dev/fb0" rotation = 0 colorSpace = ColorSpace_RGB565 width = -1 height = -1 delayStreamon = FALSE forceFrameRateNum = 0 forceFrameRateDen = 0 streamonDisable = FALSE