Commit 3c1b0268 authored by Vladimir Kazakov's avatar Vladimir Kazakov Committed by Josh Holmer
Browse files
parent 179bd9d1
......@@ -44,4 +44,4 @@ jobs:
- cargo doc --verbose
- rustup component add clippy
- cargo clippy --version
- cargo clippy -- -D warnings -A clippy::absurd_extreme_comparisons -A clippy::bool_comparison -A clippy::cast_lossless -A clippy::cast_ptr_alignment -A clippy::collapsible_if -A clippy::cyclomatic_complexity -A clippy::deprecated_cfg_attr -A clippy::erasing_op -A clippy::extra_unused_lifetimes -A clippy::get_unwrap -A clippy::identity_op -A clippy::if_same_then_else -A clippy::len_zero -A clippy::manual_memcpy -A clippy::needless_bool -A clippy::needless_range_loop -A clippy::neg_multiply -A clippy::new_without_default -A clippy::new_without_default_derive -A clippy::nonminimal_bool -A clippy::precedence -A clippy::ptr_arg -A clippy::single_match -A clippy::too_many_arguments -A clippy::trivially_copy_pass_by_ref -A clippy::type_complexity -A clippy::unreadable_literal -A clippy::unused_io_amount -A clippy::useless_let_if_seq -A clippy::verbose_bit_mask -A clippy::while_let_loop --verbose
- cargo clippy -- -D warnings -A clippy::absurd_extreme_comparisons -A clippy::bool_comparison -A clippy::cast_lossless -A clippy::cast_ptr_alignment -A clippy::collapsible_if -A clippy::cyclomatic_complexity -A clippy::erasing_op -A clippy::extra_unused_lifetimes -A clippy::get_unwrap -A clippy::identity_op -A clippy::if_same_then_else -A clippy::len_zero -A clippy::manual_memcpy -A clippy::needless_bool -A clippy::needless_range_loop -A clippy::neg_multiply -A clippy::new_without_default -A clippy::new_without_default_derive -A clippy::nonminimal_bool -A clippy::precedence -A clippy::ptr_arg -A clippy::single_match -A clippy::too_many_arguments -A clippy::trivially_copy_pass_by_ref -A clippy::type_complexity -A clippy::unreadable_literal -A clippy::unused_io_amount -A clippy::useless_let_if_seq -A clippy::verbose_bit_mask -A clippy::while_let_loop --verbose
......@@ -326,7 +326,7 @@ fn clip_max3(x: u8) -> u8 {
// The ctx offset table when TX is TX_CLASS_2D.
// TX col and row indices are clamped to 4
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
static av1_nz_map_ctx_offset: [[[i8; 5]; 5]; TxSize::TX_SIZES_ALL] = [
// TX_4X4
[
......
......@@ -246,7 +246,7 @@ fn filter_narrow4_12(
}
// six taps, 4 outputs
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
fn filter_wide6_4(
p2: i32, p1: i32, p0: i32, q0: i32, q1: i32, q2: i32
) -> [i32; 4] {
......@@ -259,7 +259,7 @@ fn filter_wide6_4(
}
// eight taps, 6 outputs
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
fn filter_wide8_6(
p3: i32, p2: i32, p1: i32, p0: i32, q0: i32, q1: i32, q2: i32, q3: i32
) -> [i32; 6] {
......@@ -283,7 +283,7 @@ fn filter_wide8_12(
}
// fourteen taps, 12 outputs
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
fn filter_wide14_12(
p6: i32, p5: i32, p4: i32, p3: i32, p2: i32, p1: i32, p0: i32, q0: i32,
q1: i32, q2: i32, q3: i32, q4: i32, q5: i32, q6: i32
......
......@@ -259,7 +259,7 @@ impl BlockSize {
(self.width() == other.width() && self.height() == other.height())
}
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
const SUBSIZE_LOOKUP: [[BlockSize; BlockSize::BLOCK_SIZES_ALL];
EXT_PARTITION_TYPES] = [
// PARTITION_NONE
......
......@@ -41,7 +41,7 @@ pub static RAV1E_INTRA_MODES: &'static [PredictionMode] = &[
];
// Intra prediction modes tested at high speed levels
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
pub static RAV1E_INTRA_MODES_MINIMAL: &'static [PredictionMode] = &[
PredictionMode::DC_PRED,
PredictionMode::H_PRED,
......@@ -64,7 +64,7 @@ pub static RAV1E_INTER_COMPOUND_MODES: &'static [PredictionMode] = &[
const sm_weight_log2_scale: u8 = 8;
// Smooth predictor weights
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
static sm_weight_arrays: [u8; 2 * MAX_TX_SIZE] = [
// Unused, because we always offset by bs, which is at least 2.
0, 0,
......
......@@ -41,7 +41,7 @@ const fn q57(v: i32) -> i64 {
(v as i64) << 57
}
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt::skip]
const ATANH_LOG2: &[i64; 32] = &[
0x32B803473F7AD0F4, 0x2F2A71BD4E25E916, 0x2E68B244BB93BA06,
0x2E39FB9198CE62E4, 0x2E2E683F68565C8F, 0x2E2B850BE2077FC1,
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment