Commit 0c03f7d3 authored by Vladimir Kazakov's avatar Vladimir Kazakov Committed by Luca Barbato
parent 0f56dfea
......@@ -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::range_plus_one -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::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
......@@ -1911,7 +1911,7 @@ impl ContextWriter {
let ctx = self.bc.partition_plane_context(&bo, bsize);
assert!(ctx < PARTITION_CONTEXTS);
let partition_cdf = if bsize <= BlockSize::BLOCK_8X8 {
&mut self.fc.partition_cdf[ctx][..PARTITION_TYPES+1]
&mut self.fc.partition_cdf[ctx][..=PARTITION_TYPES]
} else {
&mut self.fc.partition_cdf[ctx]
};
......@@ -2393,7 +2393,7 @@ impl ContextWriter {
);
row_match |= found_match;
for idx in 2..MVREF_ROW_COLS+1 {
for idx in 2..=MVREF_ROW_COLS {
let row_offset = -2 * idx as isize + 1 + row_adj as isize;
let col_offset = -2 * idx as isize + 1 + col_adj as isize;
......@@ -2904,7 +2904,7 @@ impl ContextWriter {
av1_tx_ind[tx_set as usize][tx_type as usize] as u32,
&mut self.fc.inter_tx_cdf[tx_set_index as usize]
[square_tx_size as usize]
[..num_tx_set[tx_set as usize] + 1]
[..=num_tx_set[tx_set as usize]]
);
} else {
let intra_dir = y_mode;
......@@ -2918,7 +2918,7 @@ impl ContextWriter {
av1_tx_ind[tx_set as usize][tx_type as usize] as u32,
&mut self.fc.intra_tx_cdf[tx_set_index as usize]
[square_tx_size as usize][intra_dir as usize]
[..num_tx_set[tx_set as usize] + 1]
[..=num_tx_set[tx_set as usize]]
);
}
}
......
......@@ -1440,7 +1440,7 @@ impl<W: io::Write> UncompressedHeader for BitWriter<W, BigEndian> {
// global motion
if !fi.intra_only {
for i in LAST_FRAME..ALTREF_FRAME + 1 {
for i in LAST_FRAME..=ALTREF_FRAME {
let mode = fi.globalmv_transformation_type[i];
self.write_bit(mode != GlobalMVMode::IDENTITY)?;
if mode != GlobalMVMode::IDENTITY {
......
......@@ -82,7 +82,7 @@ fn sgrproj_box_ab(af: &mut[i32; 64+2],
let n2e = n*n*eps as i32;
let s = ((1 << SGRPROJ_MTABLE_BITS) + n2e/2) / n2e;
let xn = cmp::min(r+1, crop_w as isize - stripe_x);
for row in -1..1+stripe_h {
for row in -1..=stripe_h {
let mut a:i32 = 0;
let mut b:i32 = 0;
......@@ -110,7 +110,7 @@ fn sgrproj_box_ab(af: &mut[i32; 64+2],
a += c*c;
b += c;
}
for _xi in xn..r+1 {
for _xi in xn..=r {
let c = src_plane.p(crop_w - 1, ly) as i32;
a += c*c;
b += c;
......
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