Skip to content

Commit

Permalink
Bench
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Nov 6, 2024
1 parent 9561a3c commit 8366401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/benches/rdp/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
use image::{EncodableLayout, GenericImageView, ImageReader};
use std::cmp::min;
use std::io::{self, Write};
use yuvutils_rs::{rdp_rgb_to_yuv444, YuvChromaSubsample, YuvPlanarImageMut};
use yuvutils_rs::{rdp_rgb_to_yuv444, rdp_rgba_to_yuv444, YuvChromaSubsample, YuvPlanarImageMut};

const ALPHA: u8 = 255;

Expand Down Expand Up @@ -305,7 +305,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
b.iter(|| {
let mut plane =
YuvPlanarImageMut::alloc(dimensions.0, dimensions.1, YuvChromaSubsample::Yuv444);
rdp_rgb_to_yuv444(&mut plane, src_bytes, dimensions.0 * 4).unwrap();
rdp_rgba_to_yuv444(&mut plane, src_bytes, dimensions.0 * 4).unwrap();
})
});

Expand Down

0 comments on commit 8366401

Please sign in to comment.