EFI_PAGE_SIZE instead of magic, small readme tweaks
This commit is contained in:
1 parent
565b8b44c8
commit
498a089387
4 files changed
+5
-2
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -324,7 +324,7 @@ EFI_STATUS efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable) {
|
|||||||
|
|
||||||
VOID* HeapMemory = NULL;
|
VOID* HeapMemory = NULL;
|
||||||
UINTN AllocationSize = 512 * 1024 * 1024; // 512 MB
|
UINTN AllocationSize = 512 * 1024 * 1024; // 512 MB
|
||||||
UINTN Pages = AllocationSize / 4096; // UEFI page size is 4KB
|
UINTN Pages = AllocationSize / EFI_PAGE_SIZE;
|
||||||
|
|
||||||
EFI_STATUS Status = gBS->AllocatePages(
|
EFI_STATUS Status = gBS->AllocatePages(
|
||||||
AllocateAnyPages,
|
AllocateAnyPages,
|
||||||
|
|||||||
@@ -47,8 +47,11 @@ A: Science isn't about 'why', it's about 'why not'.
|
|||||||
Q: Why not raw frames?
|
Q: Why not raw frames?
|
||||||
A: Too simple.
|
A: Too simple.
|
||||||
|
|
||||||
|
Q: How did you implement file I/O?
|
||||||
|
A: I didn't. I just preload the entire video into memory.
|
||||||
|
|
||||||
Q: Is this finished?
|
Q: Is this finished?
|
||||||
A: Some parts yes.
|
A: Mostly yes.
|
||||||
|
|
||||||
Q: Can I use this in production?
|
Q: Can I use this in production?
|
||||||
A: Define production.
|
A: Define production.
|
||||||
|
|||||||
Reference in new issue
Block a user