Compare commits

...

2 Commits

Author SHA1 Message Date
f41d7f169d fix: assets
Some checks failed
Build / lint (push) Successful in 5m26s
Lint / lint (push) Failing after 5m10s
2025-06-02 17:52:11 +09:00
20c780e025 fix: assets 2025-06-02 17:35:37 +09:00
5 changed files with 14 additions and 16 deletions

View File

@@ -3,3 +3,10 @@ target = "x86_64-unknown-uefi"
[target.x86_64-unknown-uefi] [target.x86_64-unknown-uefi]
runner = "bootuefi" runner = "bootuefi"
[unstable]
build-std = ["core", "compiler_builtins"]
build-std-features = ["compiler-builtins-mem"]
[toolchain]
channel = "nightly"

View File

@@ -2,6 +2,7 @@
name = "uefi-video" name = "uefi-video"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
test = false
[dependencies] [dependencies]
embedded-graphics-core = "0.4.0" embedded-graphics-core = "0.4.0"

View File

@@ -1,4 +1,5 @@
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
#[allow(dead_code)]
pub enum MediaType { pub enum MediaType {
VideoGIF, VideoGIF,
ImagePNG, ImagePNG,

View File

@@ -1,34 +1,22 @@
use alloc::sync::Arc;
use buffer::Buffer; use buffer::Buffer;
use spin::Mutex;
use uefi::{ use uefi::{
Result, Result,
boot::{self, ScopedProtocol}, boot::{self},
proto::console::gop::GraphicsOutput, proto::console::gop::GraphicsOutput,
}; };
use crate::{ use crate::{
codec::{ codec::{image::ImageData, transform::crop::CropTransformer, video::VideoData},
image::ImageData,
transform::{Transformer, crop::CropTransformer},
video::VideoData,
},
util::time::Microseconds, util::time::Microseconds,
}; };
pub mod buffer; pub mod buffer;
pub struct GraphicLoader { pub struct GraphicLoader {}
gop: Arc<Mutex<Option<ScopedProtocol<GraphicsOutput>>>>,
resolution: Arc<Mutex<Option<(usize, usize)>>>,
}
impl GraphicLoader { impl GraphicLoader {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self {}
gop: Arc::new(Mutex::new(None)),
resolution: Arc::new(Mutex::new(None)),
}
} }
pub fn render(&self, data: &ImageData) -> Result { pub fn render(&self, data: &ImageData) -> Result {

View File

@@ -12,6 +12,7 @@ pub struct Buffer {
pixels: Vec<BltPixel>, pixels: Vec<BltPixel>,
} }
#[allow(dead_code)]
impl Buffer { impl Buffer {
pub fn new(width: usize, height: usize) -> Self { pub fn new(width: usize, height: usize) -> Self {
Buffer { Buffer {