removing unused video_thumbnail code to be used later
This commit is contained in:
parent
6f545c3bf8
commit
97b949a704
1 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,9 @@ mod slide_model {
|
||||||
VideoThumbnailRole,
|
VideoThumbnailRole,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use crate::video_thumbnail;
|
||||||
|
// use image::{ImageBuffer, Rgba};
|
||||||
|
use std::path::PathBuf;
|
||||||
impl qobject::SlideyMod {
|
impl qobject::SlideyMod {
|
||||||
// #[qinvokable]
|
// #[qinvokable]
|
||||||
// pub fn add(self: Pin<&mut Self>) {
|
// pub fn add(self: Pin<&mut Self>) {
|
||||||
|
@ -163,6 +166,14 @@ mod slide_model {
|
||||||
index: i32,
|
index: i32,
|
||||||
) -> QString {
|
) -> QString {
|
||||||
let video = video.to_string();
|
let video = video.to_string();
|
||||||
|
let mut path = PathBuf::from(video);
|
||||||
|
println!("{:?}", path);
|
||||||
|
// let mut image_iter = video_thumbnail::ImageIter::new(path)?;
|
||||||
|
// image_iter.seek(2.0);
|
||||||
|
|
||||||
|
// if let Some(image) = image_iter.next() {
|
||||||
|
// image.save("image.jpg");
|
||||||
|
// }
|
||||||
|
|
||||||
QString::default()
|
QString::default()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue