EFI_GRAPHICS_OUTPUT_PROTOCOL是UEFI(统一可扩展固件接口)规范中定义的一种协议,用于在启动过程中管理图形输出设备。Blt是EFI_GRAPHICS_OUTPUT_PROTOCOL中的一个函数,用于在图形输出设备上进行位块传输(Bit Block Transfer)操作。 具体来说,EFI_GRAPHICS_OUTPUT_PROTOCOL Blt函数可以用于以下操作: 图像复制:可以将一个...
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor, IN UINTN Progress, IN UINTN PreviousValue ){ EFI_STATUS Status; EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput; EFI_UGA_DRAW_PROTOCOL *UgaDraw; UINT32 SizeOfX; UINT32 SizeOfY; UINT32 ColorDepth; UINT32 RefreshRate; EFI_GRAPHICS_OUTPUT_BLT_PIXEL...
extern EFI_RUNTIME_SERVICES *gRT; extern EFI_SHELL_ENVIRONMENT2 *mEfiShellEnvironment2; extern EFI_HANDLE gImageHandle; static EFI_GUID GraphicsOutputProtocolGuid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID; static EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput = NULL; //Copied from C\MdePkg\Include\Protocol...
}else{/// If current video resolution is not same with the new one, set new video resolution.// In this case, the driver which produces simple text out need be restarted.//Status = GraphicsOutput->SetMode(GraphicsOutput, ModeNumber);if(!EFI_ERROR (Status)) { FreePool (Info);break; }...