|
ReactOS 0.4.16-dev-2122-g1628f5e
|

Go to the source code of this file.
Classes | |
| struct | _FRAMEBUFFER_INFO |
Macros | |
| #define | TOP_BOTTOM_LINES 0 |
| #define | VGA_CHAR_SIZE 2 |
| #define | FBCONS_WIDTH (framebufInfo.ScreenWidth / CHAR_WIDTH) |
| #define | FBCONS_HEIGHT ((framebufInfo.ScreenHeight - 2 * TOP_BOTTOM_LINES) / CHAR_HEIGHT) |
Typedefs | |
| typedef struct _FRAMEBUFFER_INFO | FRAMEBUFFER_INFO |
| typedef struct _FRAMEBUFFER_INFO * | PFRAMEBUFFER_INFO |
Functions | |
| DBG_DEFAULT_CHANNEL (UI) | |
| BOOLEAN | VidFbInitializeVideo (_In_ ULONG_PTR BaseAddress, _In_ ULONG BufferSize, _In_ UINT32 ScreenWidth, _In_ UINT32 ScreenHeight, _In_ UINT32 PixelsPerScanLine, _In_ UINT32 BitsPerPixel, _In_opt_ PPIXEL_BITMASK PixelMasks) |
| Initializes internal framebuffer information based on the given parameters. | |
| VOID | VidFbClearScreenColor (_In_ UINT32 Color, _In_ BOOLEAN FullScreen) |
| VOID | VidFbOutputChar (_In_ UCHAR Char, _In_ ULONG X, _In_ ULONG Y, _In_ UINT32 FgColor, _In_ UINT32 BgColor) |
| Displays a character at a given pixel position with specific foreground and background colors. | |
| VOID | VidFbGetDisplaySize (_Out_ PULONG Width, _Out_ PULONG Height, _Out_ PULONG Depth) |
| Returns the width and height in pixels, of the whole visible area of the graphics framebuffer. | |
| ULONG | VidFbGetBufferSize (VOID) |
| Returns the size in bytes, of a full graphics pixel buffer rectangle that can fill the whole visible area of the graphics framebuffer. | |
| VOID | VidFbScrollUp (_In_ UINT32 Color, _In_ ULONG Scroll) |
| static UINT32 | FbConsAttrToSingleColor (_In_ UCHAR Attr) |
| static VOID | FbConsAttrToColors (_In_ UCHAR Attr, _Out_ PUINT32 FgColor, _Out_ PUINT32 BgColor) |
| Maps a text-mode CGA-style character attribute to separate foreground and background ARGB colors. | |
| VOID | FbConsClearScreen (_In_ UCHAR Attr) |
| VOID | FbConsOutputChar (_In_ UCHAR Char, _In_ ULONG Column, _In_ ULONG Row, _In_ UINT32 FgColor, _In_ UINT32 BgColor) |
| Displays a character at a given position with specific foreground and background colors. | |
| VOID | FbConsPutChar (_In_ UCHAR Char, _In_ UCHAR Attr, _In_ ULONG Column, _In_ ULONG Row) |
| Displays a character with specific text attributes at a given position. | |
| VOID | FbConsGetDisplaySize (_Out_ PULONG Width, _Out_ PULONG Height, _Out_ PULONG Depth) |
| Returns the width and height in number of CGA characters/attributes, of a full text-mode CGA-style character buffer rectangle that can fill the whole console. | |
| ULONG | FbConsGetBufferSize (VOID) |
| Returns the size in bytes, of a full text-mode CGA-style character buffer rectangle that can fill the whole console. | |
| VOID | FbConsCopyOffScreenBufferToVRAM (_In_ PVOID Buffer) |
| Copies a full text-mode CGA-style character buffer rectangle to the console. | |
| VOID | FbConsScrollUp (_In_ UCHAR Attr) |
Variables | |
| FRAMEBUFFER_INFO | framebufInfo |
| #define FBCONS_HEIGHT ((framebufInfo.ScreenHeight - 2 * TOP_BOTTOM_LINES) / CHAR_HEIGHT) |
| #define FBCONS_WIDTH (framebufInfo.ScreenWidth / CHAR_WIDTH) |
| typedef struct _FRAMEBUFFER_INFO FRAMEBUFFER_INFO |
| typedef struct _FRAMEBUFFER_INFO * PFRAMEBUFFER_INFO |
| DBG_DEFAULT_CHANNEL | ( | UI | ) |
|
static |
Maps a text-mode CGA-style character attribute to separate foreground and background ARGB colors.
Definition at line 367 of file vidfb.c.
Referenced by FbConsClearScreen(), FbConsPutChar(), and FbConsScrollUp().
Definition at line 349 of file vidfb.c.
Referenced by FbConsAttrToColors().
Definition at line 377 of file vidfb.c.
Referenced by UefiVideoClearScreen(), and XboxVideoClearScreen().
Copies a full text-mode CGA-style character buffer rectangle to the console.
Definition at line 456 of file vidfb.c.
Referenced by UefiVideoCopyOffScreenBufferToVRAM(), and XboxVideoCopyOffScreenBufferToVRAM().
Returns the size in bytes, of a full text-mode CGA-style character buffer rectangle that can fill the whole console.
Definition at line 445 of file vidfb.c.
Referenced by UefiVideoGetBufferSize(), and XboxVideoGetBufferSize().
Returns the width and height in number of CGA characters/attributes, of a full text-mode CGA-style character buffer rectangle that can fill the whole console.
Definition at line 426 of file vidfb.c.
Referenced by UefiVideoGetDisplaySize(), and XboxVideoGetDisplaySize().
| VOID FbConsOutputChar | ( | _In_ UCHAR | Char, |
| _In_ ULONG | Column, | ||
| _In_ ULONG | Row, | ||
| _In_ UINT32 | FgColor, | ||
| _In_ UINT32 | BgColor | ||
| ) |
Displays a character at a given position with specific foreground and background colors.
Definition at line 391 of file vidfb.c.
Referenced by FbConsPutChar().
Displays a character with specific text attributes at a given position.
Definition at line 409 of file vidfb.c.
Referenced by FbConsCopyOffScreenBufferToVRAM(), UefiVideoPutChar(), and XboxVideoPutChar().
Definition at line 477 of file vidfb.c.
Referenced by UefiConsPutChar(), and XboxConsPutChar().
Definition at line 194 of file vidfb.c.
Referenced by FbConsClearScreen(), XboxVideoInit(), and XboxVideoPrepareForReactOS().
| BOOLEAN VidFbInitializeVideo | ( | _In_ ULONG_PTR | BaseAddress, |
| _In_ ULONG | BufferSize, | ||
| _In_ UINT32 | ScreenWidth, | ||
| _In_ UINT32 | ScreenHeight, | ||
| _In_ UINT32 | PixelsPerScanLine, | ||
| _In_ UINT32 | BitsPerPixel, | ||
| _In_opt_ PPIXEL_BITMASK | PixelMasks | ||
| ) |
Initializes internal framebuffer information based on the given parameters.
| [in] | BaseAddress | The framebuffer physical base address. |
| [in] | BufferSize | The framebuffer size, in bytes. |
| [in] | ScreenWidth | |
| [in] | ScreenHeight | The width and height of the visible framebuffer area, in pixels. |
| [in] | PixelsPerScanLine | The size in number of pixels of a whole horizontal video memory scanline. |
| [in] | BitsPerPixel | The number of usable bits (not counting the reserved ones) per pixel. |
| [in] | PixelMasks | Optional pointer to a PIXEL_BITMASK structure describing the pixel format used by the framebuffer. |
Definition at line 97 of file vidfb.c.
Referenced by UefiInitializeVideo(), and XboxVideoInit().
| VOID VidFbOutputChar | ( | _In_ UCHAR | Char, |
| _In_ ULONG | X, | ||
| _In_ ULONG | Y, | ||
| _In_ UINT32 | FgColor, | ||
| _In_ UINT32 | BgColor | ||
| ) |
Displays a character at a given pixel position with specific foreground and background colors.
Definition at line 217 of file vidfb.c.
Referenced by FbConsOutputChar().
Definition at line 281 of file vidfb.c.
Referenced by FbConsScrollUp().
| FRAMEBUFFER_INFO framebufInfo |
Definition at line 43 of file vidfb.c.
Referenced by FbConsGetDisplaySize(), VidFbClearScreenColor(), VidFbGetBufferSize(), VidFbGetDisplaySize(), VidFbInitializeVideo(), VidFbOutputChar(), and VidFbScrollUp().