Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 13 additions & 26 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,24 @@ on:
branches:
- master

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
clippy-rustfmt:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Install stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt

- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --verbose
- name: Check format
run: cargo fmt --check

- name: Install ffmpeg for Ubuntu
run: |
Expand All @@ -37,34 +34,24 @@ jobs:
sudo apt-get install libavutil-dev libavcodec-dev libavformat-dev libclang-dev

- name: Run cargo clippy (y4m)
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --tests --benches -- -D warnings
run: cargo clippy --all-targets

- name: Run cargo clippy (ffmpeg)
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --features ffmpeg --tests --benches -- -D warnings
run: cargo clippy --all-targets --features ffmpeg

build:

strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Install stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Install FFmpeg for Ubuntu
if: matrix.platform == 'ubuntu-latest'
Expand Down
4 changes: 2 additions & 2 deletions av_metrics/src/video/ciede/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ pub(crate) struct FrameRow<'a, T: Pixel> {

type DeltaERowFn<T> = unsafe fn(FrameRow<T>, FrameRow<T>, &mut [f32]);

fn get_delta_e_row_fn<T: Pixel>(bit_depth: usize, xdec: usize, simd: bool) -> DeltaERowFn<T> {
fn get_delta_e_row_fn<T: Pixel>(bit_depth: usize, xdec: usize, _simd: bool) -> DeltaERowFn<T> {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
{
if is_x86_feature_detected!("avx2") && xdec == 1 && simd {
if is_x86_feature_detected!("avx2") && xdec == 1 && _simd {
return match bit_depth {
8 => BD8::delta_e_row_avx2,
10 => BD10::delta_e_row_avx2,
Expand Down
Loading