fix: assets
Some checks failed
Build / lint (push) Successful in 5m26s
Lint / lint (push) Failing after 5m10s

This commit is contained in:
2025-06-02 17:52:11 +09:00
parent 20c780e025
commit f41d7f169d
4 changed files with 13 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

@@ -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 {