Skip to content

Commit

Permalink
Document when the function may panic
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Sep 24, 2023
1 parent a3cfcb7 commit 885ab24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ impl BlockSize {
})
}

/// # Panics
///
/// Will panic if the subsampling is not possible
#[inline]
pub fn largest_chroma_tx_size(self, xdec: usize, ydec: usize) -> TxSize {
let plane_bsize = self
Expand Down

0 comments on commit 885ab24

Please sign in to comment.