#include <Library/BaseLib.h>
#include <Library/BaseOverflowLib.h>
#include <Library/DebugLib.h>
#include <Library/OcConsoleLib.h>
Go to the source code of this file.
Functions | |
STATIC VOID | ParseResolution (IN CONST CHAR8 *String, OUT UINT32 *Width, OUT UINT32 *Height, OUT UINT32 *Bpp OPTIONAL, OUT BOOLEAN *Max) |
VOID | OcParseScreenResolution (IN CONST CHAR8 *String, OUT UINT32 *Width, OUT UINT32 *Height, OUT UINT32 *Bpp, OUT BOOLEAN *Max) |
VOID | OcParseConsoleMode (IN CONST CHAR8 *String, OUT UINT32 *Width, OUT UINT32 *Height, OUT BOOLEAN *Max) |
Copyright (C) 2019, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file ResolutionParsing.c.
VOID OcParseConsoleMode | ( | IN CONST CHAR8 * | String, |
OUT UINT32 * | Width, | ||
OUT UINT32 * | Height, | ||
OUT BOOLEAN * | Max ) |
Parse console mode from string.
[in] | String | Resolution in WxH format. |
[out] | Width | Parsed mode width or 0. |
[out] | Height | Parsed mode height or 0. |
[out] | Max | Set to TRUE when String equals to Max. |
Definition at line 121 of file ResolutionParsing.c.
VOID OcParseScreenResolution | ( | IN CONST CHAR8 * | String, |
OUT UINT32 * | Width, | ||
OUT UINT32 * | Height, | ||
OUT UINT32 * | Bpp, | ||
OUT BOOLEAN * | Max ) |
Parse screen resolution from string.
[in] | String | Resolution in WxH@B or WxH format. |
[out] | Width | Parsed resolution width or 0. |
[out] | Height | Parsed resolution height or 0. |
[out] | Bpp | Parsed resolution bpp or 0. |
[out] | Max | Set to TRUE when String equals to Max. |
Definition at line 103 of file ResolutionParsing.c.
STATIC VOID ParseResolution | ( | IN CONST CHAR8 * | String, |
OUT UINT32 * | Width, | ||
OUT UINT32 * | Height, | ||
OUT UINT32 *Bpp | OPTIONAL, | ||
OUT BOOLEAN * | Max ) |
Parse resolution string.
[in] | String | Resolution in WxH@Bpp or WxH format. |
[out] | Width | Parsed width or 0. |
[out] | Height | Parsed height or 0. |
[out] | Bpp | Parsed Bpp or 0, optional to force WxH format. |
[out] | Max | Set to TRUE when String equals to Max. |
Definition at line 31 of file ResolutionParsing.c.