2 Copyright © 2010, The AROS Development Team. All rights reserved.
5 Desc: Overlay hidd class description
10 * This file contains only documentation. Currently no overlay base class is developed.
11 * So far there's no need to compile this file.
14 /*****************************************************************************************
17 --background_overlay--
23 Objects of overlay class represent hardware video overlays.
25 Current hardware supports only one video overlay per screen, however in future
26 the situation may change.
28 hidd.graphics.overlay is an interface name. There's no such public ID since
29 there's actually no base class for the overlay. The whole implementation is
30 hardware-dependant and needs to be done separately for every driver.
32 Overlay classes do not need to be public. It's up to display drivers to manage
33 them. A moHidd_Gfx_NewOverlay method of graphics driver class is used to create
36 *****************************************************************************************/
38 /*****************************************************************************************
41 aoHidd_Overlay_SrcWidth
50 Specifies source data width in pixels.
59 aoHidd_Overlay_SrcHeight
63 *****************************************************************************************/
65 /*****************************************************************************************
68 aoHidd_Overlay_SrcHeight
77 Specifies source data height in pixels.
86 aoHidd_Overlay_SrcWidth
90 *****************************************************************************************/
92 /*****************************************************************************************
95 aoHidd_Overlay_SrcFormat
101 hidd.graphics.overlay
104 Specifies source data pixel format. The value should be one of SRCFMT_... constants
105 defined in cybergraphx/cgxvideo.h:
107 SRCFMT_YUV16 - 16-but YUV
108 SRCFMT_YCbCr16 - 16-bit YCbCr
109 SRCFMT_RGB15PC - R5G5B5, little-endian
110 SRCFMT_RGB16PC - R5G6B5, little-endian
113 Not all formats can be supported by all drivers. Use aoHidd_Overlay_Error attribute
114 in order to get an explanation why overlay creation fails.
124 *****************************************************************************************/
126 /*****************************************************************************************
135 hidd.graphics.overlay
138 Specifies a pointer to ULONG location where error code will be written.
140 This attribute can be used for overlay creation in order to be able to get an
141 information about the actual failure reason.
143 Resulting error code can be one of VOERR_... values defined in
144 cybergraphx/cgxvideo.h:
146 VOERR_OK - there was no error
147 VOERR_INVSCRMODE - no (more) hardware overlays are supported on this card
148 VOERR_NOOVLMEMORY - there is not enough VRAM to hold overlay data
149 VOERR_INVSRCFMT - given source pixel format is not supported by the card
150 VOERR_NOMEMORY - there is not enough system RAM for internal driver needs
162 *****************************************************************************************/