Compare commits
2 Commits
a0c07364d1
...
ab226026c3
| Author | SHA1 | Date | |
|---|---|---|---|
|
ab226026c3
|
|||
|
e973404c82
|
@@ -449,7 +449,7 @@ mod tests {
|
|||||||
&mut vec![0.0; width * height],
|
&mut vec![0.0; width * height],
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
2 as f32,
|
2_f32,
|
||||||
0.1,
|
0.1,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ use itertools::multizip;
|
|||||||
/// Stores data that is located in grids that is used for image generation
|
/// Stores data that is located in grids that is used for image generation
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct ThinGridData {
|
pub struct ThinGridData {
|
||||||
pub width: usize,
|
width: usize,
|
||||||
pub height: usize,
|
height: usize,
|
||||||
pub data: Vec<f32>,
|
data: Vec<f32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ThinGridData {
|
impl ThinGridData {
|
||||||
@@ -42,8 +42,8 @@ impl ThinGridData {
|
|||||||
/// Class for storing data that will be used to create images
|
/// Class for storing data that will be used to create images
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct ImgData {
|
pub struct ImgData {
|
||||||
pub grids: Vec<ThinGridData>,
|
grids: Vec<ThinGridData>,
|
||||||
pub palette: Palette,
|
palette: Palette,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ImgData {
|
impl ImgData {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ fn main() {
|
|||||||
|
|
||||||
// Setup ffmpeg
|
// Setup ffmpeg
|
||||||
let mut ffmpeg = std::process::Command::new("ffmpeg")
|
let mut ffmpeg = std::process::Command::new("ffmpeg")
|
||||||
.args(&[
|
.args([
|
||||||
"-y",
|
"-y",
|
||||||
"-f",
|
"-f",
|
||||||
"rawvideo",
|
"rawvideo",
|
||||||
|
|||||||
Reference in New Issue
Block a user