Skip to content

Commit

Permalink
layout tests pass now, so let's run them
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaeroxe committed Jul 15, 2024
1 parent e7db7ab commit 0276b72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions xcoder/xcoder-quadra/src/encoder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::XcoderPixelFormat;

use super::{fps_to_rational, XcoderHardware, XcoderHardwareFrame};
use super::{alloc_zeroed, fps_to_rational, XcoderHardware, XcoderHardwareFrame};
use av_traits::{EncodedFrameType, EncodedVideoFrame, RawVideoFrame, VideoEncoder, VideoEncoderOutput};
use scopeguard::{guard, ScopeGuard};
use snafu::Snafu;
Expand Down Expand Up @@ -233,7 +233,6 @@ impl<F> XcoderEncoder<F> {
config.width as _,
config.height as _,
if config.bit_depth > 8 { 2 } else { 1 }, // bit depth factor
0, // is nv12
frame_data_strides.as_mut_ptr(),
frame_data_heights.as_mut_ptr(),
);
Expand Down
3 changes: 0 additions & 3 deletions xcoder/xcoder-quadra/xcoder-quadra-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ fn main() {
.allowlist_type("ni_.+")
.allowlist_var("NI_.+")
.allowlist_var("GC620_.+")
// bindgen 0.60.0 broke layout tests: https://github.com/rust-lang/rust-bindgen/issues/2218
// 0.60.1 claims to have fixed the issue, but does not.
.layout_tests(false)
.clang_arg(format!("-I{}", source_path.to_str().unwrap()))
.generate()
.expect("unable to generate bindings");
Expand Down

0 comments on commit 0276b72

Please sign in to comment.