dav1d test
This commit is contained in:
parent
ee65344e15
commit
c152f57167
2 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rust_opengl_helloworld"
|
name = "rust_opengl"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ codegen-units = 1
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gl = "0.14.0"
|
gl = "0.14.0"
|
||||||
glfw = { version = "0.57.0", features = ["wayland"] }
|
glfw = { version = "0.57.0", features = ["wayland"] }
|
||||||
|
image = { version = "0.25.2", default-features = false, features = ["rayon", "avif-native"] }
|
||||||
#jxl-oxide = { version = "0.8.1" }
|
#jxl-oxide = { version = "0.8.1" }
|
||||||
rav1d = { version = "1.0.0", default-features = false, features = ["bitdepth_8", "bitdepth_16"] }
|
|
||||||
#bytemuck = "1"
|
#bytemuck = "1"
|
||||||
#ogl33 = { version = "0.2.0", features = ["debug_error_checks"]}
|
#ogl33 = { version = "0.2.0", features = ["debug_error_checks"]}
|
||||||
#beryllium = "0.13.3"
|
#beryllium = "0.13.3"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use std::convert::TryInto;
|
use std::convert::TryInto;
|
||||||
// use jxl_oxide::JxlImage;
|
// use jxl_oxide::JxlImage;
|
||||||
use rav1d::include::dav1d;
|
use image::ImageReader;
|
||||||
use rav1d;
|
|
||||||
use glfw;
|
use glfw;
|
||||||
use glfw::Context;
|
use glfw::Context;
|
||||||
use gl;
|
use gl;
|
||||||
|
@ -11,6 +10,8 @@ const HEIGHT: u32 = 320;
|
||||||
const TITLE: &str = "Hello From OpenGL World!";
|
const TITLE: &str = "Hello From OpenGL World!";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
let img = ImageReader::open("combined.avif").unwrap().decode();
|
||||||
|
println!("{:?}", img);
|
||||||
// let image = JxlImage::builder().open("combined.jxl").expect("Failed to read image header");
|
// let image = JxlImage::builder().open("combined.jxl").expect("Failed to read image header");
|
||||||
// println!("{:?}", image.image_header()); // Prints the image header
|
// println!("{:?}", image.image_header()); // Prints the image header
|
||||||
//let image = dav1d::rav1d_open("combined.avif");
|
//let image = dav1d::rav1d_open("combined.avif");
|
||||||
|
|
Loading…
Reference in a new issue