Skip to content

Commit

Permalink
testbench: require rust 1.73
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Dec 6, 2024
1 parent 19973cc commit e70b8c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion testbench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name = "testbench"
description = "testing and benchmarks for the less-avc crate"
version = "0.1.0"
edition = "2021"
rust-version = "1.73"

[dependencies]
less-avc = {path=".."}
less-avc = { path = ".." }
anyhow = "1"
openh264 = "0.4.0"
tempfile = "3.3.0"
Expand Down
7 changes: 1 addition & 6 deletions testbench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,8 @@ impl MyYCbCrImage {
}
}

pub fn div_ceil(a: u32, b: u32) -> u32 {
// See https://stackoverflow.com/a/72442854
(a + b - 1) / b
}

pub fn next_multiple(a: u32, b: u32) -> u32 {
div_ceil(a, b) * b
a.div_ceil(b) * b
}

pub fn generate_image(fmt: &PixFmt, width: u32, height: u32) -> Result<MyYCbCrImage> {
Expand Down

0 comments on commit e70b8c3

Please sign in to comment.