Xd
This commit is contained in:
parent
2356cb5406
commit
0edc112241
|
@ -9,8 +9,8 @@ use x11rb::protocol::xproto::CreateGCAux;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let _arg = std::env::args().next().unwrap();
|
let arg = std::env::args().skip(1).next().unwrap();
|
||||||
let input = OpenOptions::new().read(true).open("output.gif").unwrap(); // Grabs image from arguement
|
let input = OpenOptions::new().read(true).open(arg).unwrap(); // Grabs image from arguement
|
||||||
|
|
||||||
let mut de_options = DecodeOptions::new();
|
let mut de_options = DecodeOptions::new();
|
||||||
de_options.set_color_output(gif::ColorOutput::RGBA);
|
de_options.set_color_output(gif::ColorOutput::RGBA);
|
||||||
|
@ -42,7 +42,7 @@ fn main() {
|
||||||
while let Some(frame) = decoder.read_next_frame().unwrap() {
|
while let Some(frame) = decoder.read_next_frame().unwrap() {
|
||||||
v_frames.push_back(frame.clone());
|
v_frames.push_back(frame.clone());
|
||||||
} //Putting gif frames into a vector
|
} //Putting gif frames into a vector
|
||||||
println!("{:?}", v_frames.get(0));
|
//println!("{:?}", v_frames.get(0));
|
||||||
loop {
|
loop {
|
||||||
let popd = &v_frames.pop_front().unwrap();
|
let popd = &v_frames.pop_front().unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue