OpenCore  1.0.4
OpenCore Bootloader
1.0.4
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ResolutionParsing.c File Reference
#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)
 

Detailed Description

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.

Function Documentation

◆ OcParseConsoleMode()

VOID OcParseConsoleMode ( IN CONST CHAR8 * String,
OUT UINT32 * Width,
OUT UINT32 * Height,
OUT BOOLEAN * Max )

Parse console mode from string.

Parameters
[in]StringResolution in WxH format.
[out]WidthParsed mode width or 0.
[out]HeightParsed mode height or 0.
[out]MaxSet to TRUE when String equals to Max.

Definition at line 121 of file ResolutionParsing.c.

◆ OcParseScreenResolution()

VOID OcParseScreenResolution ( IN CONST CHAR8 * String,
OUT UINT32 * Width,
OUT UINT32 * Height,
OUT UINT32 * Bpp,
OUT BOOLEAN * Max )

Parse screen resolution from string.

Parameters
[in]StringResolution in WxH@B or WxH format.
[out]WidthParsed resolution width or 0.
[out]HeightParsed resolution height or 0.
[out]BppParsed resolution bpp or 0.
[out]MaxSet to TRUE when String equals to Max.

Definition at line 103 of file ResolutionParsing.c.

◆ ParseResolution()

STATIC VOID ParseResolution ( IN CONST CHAR8 * String,
OUT UINT32 * Width,
OUT UINT32 * Height,
OUT UINT32 *Bpp OPTIONAL,
OUT BOOLEAN * Max )

Parse resolution string.

Parameters
[in]StringResolution in WxH@Bpp or WxH format.
[out]WidthParsed width or 0.
[out]HeightParsed height or 0.
[out]BppParsed Bpp or 0, optional to force WxH format.
[out]MaxSet to TRUE when String equals to Max.

Definition at line 31 of file ResolutionParsing.c.