S5: drop unused decode probe getters and inter-shape constant; narrow glob re-exports to pub(crate)
Browse files at this commit4682d3c5692ea235d251d392c367826b5189bd42Parent: 78f34363 changed files +2 -40
- crates/ec-av1/src/decode/inter_shapes.rs +0 -10
- crates/ec-av1/src/decode/key_tile.rs +0 -12
- crates/ec-av1/src/decode/mod.rs +2 -18
crates/ec-av1/src/decode/inter_shapes.rsmodified+0 -10
| @@ -266,20 +266,10 @@ pub(crate) const INTER_BLOCK_SHAPES: [(usize, usize, usize); 18] = [ | |||
| 266 | (128, 64, 128), | 266 | (128, 64, 128), |
| 267 | ]; | 267 | ]; |
| 268 | 268 | ||
| 269 | -/// Bit 31 of [`inter_block_shape_mask`]: a `(side, write_w, write_h)` triple | ||
| 270 | -/// outside [`INTER_BLOCK_SHAPES`]. | ||
| 271 | -pub const INTER_BLOCK_SHAPE_UNLISTED: u32 = 1 << 31; | ||
| 272 | - | ||
| 273 | thread_local! { | 269 | thread_local! { |
| 274 | pub(super) static INTER_BLOCK_SHAPE_MASK: std::cell::Cell<u32> = const { std::cell::Cell::new(0) }; | 270 | pub(super) static INTER_BLOCK_SHAPE_MASK: std::cell::Cell<u32> = const { std::cell::Cell::new(0) }; |
| 275 | } | 271 | } |
| 276 | 272 | ||
| 277 | -/// Which of [`INTER_BLOCK_SHAPES`] this THREAD has decoded (thread-local, so a | ||
| 278 | -/// gate reading it sees only the streams it decoded itself). | ||
| 279 | -pub fn inter_block_shape_mask() -> u32 { | ||
| 280 | - INTER_BLOCK_SHAPE_MASK.with(std::cell::Cell::get) | ||
| 281 | -} | ||
| 282 | - | ||
| 283 | /// The luma coefficient/`tx_type` table set of a whole-block rectangular | 273 | /// The luma coefficient/`tx_type` table set of a whole-block rectangular |
| 284 | /// INTER transform unit (lane-inter4 r3). `av1_get_ext_tx_set_type` splits | 274 | /// INTER transform unit (lane-inter4 r3). `av1_get_ext_tx_set_type` splits |
| 285 | /// the two shapes: a 32x16/16x32 unit has `tx_size_sqr_up == TX_32X32`, so | 275 | /// the two shapes: a 32x16/16x32 unit has `tx_size_sqr_up == TX_32X32`, so |
crates/ec-av1/src/decode/key_tile.rsmodified+0 -12
| @@ -183,18 +183,6 @@ thread_local! { | |||
| 183 | pub(crate) static MU_CHUNK_INTRA_IN_INTER_UNITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; | 183 | pub(crate) static MU_CHUNK_INTRA_IN_INTER_UNITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | -/// Current value of [`MU_CHUNK_COMPOUND_UNITS`], for a gate's before/after | ||
| 187 | -/// delta. | ||
| 188 | -pub fn mu_chunk_compound_units() -> usize { | ||
| 189 | - MU_CHUNK_COMPOUND_UNITS.with(std::cell::Cell::get) | ||
| 190 | -} | ||
| 191 | - | ||
| 192 | -/// Current value of [`MU_CHUNK_INTRA_IN_INTER_UNITS`], for a gate's | ||
| 193 | -/// before/after delta. | ||
| 194 | -pub fn mu_chunk_intra_in_inter_units() -> usize { | ||
| 195 | - MU_CHUNK_INTRA_IN_INTER_UNITS.with(std::cell::Cell::get) | ||
| 196 | -} | ||
| 197 | - | ||
| 198 | thread_local! { | 186 | thread_local! { |
| 199 | /// lane-av1h5: chunk-major chroma WALKS run for a 128-root plane block -- | 187 | /// lane-av1h5: chunk-major chroma WALKS run for a 128-root plane block -- |
| 200 | /// one per 64x64 mu chunk. libaom codes exactly 4 per unsplit 128x128 root | 188 | /// one per 64x64 mu chunk. libaom codes exactly 4 per unsplit 128x128 root |
crates/ec-av1/src/decode/mod.rsmodified+2 -18
| @@ -79,7 +79,7 @@ mod cdef; | |||
| 79 | use cdef::*; | 79 | use cdef::*; |
| 80 | 80 | ||
| 81 | mod inter_shapes; | 81 | mod inter_shapes; |
| 82 | -pub use inter_shapes::*; | 82 | +pub(crate) use inter_shapes::*; |
| 83 | 83 | ||
| 84 | mod deblock; | 84 | mod deblock; |
| 85 | pub(crate) use deblock::*; | 85 | pub(crate) use deblock::*; |
| @@ -91,7 +91,7 @@ mod replay; | |||
| 91 | pub(crate) use replay::*; | 91 | pub(crate) use replay::*; |
| 92 | 92 | ||
| 93 | mod key_tile; | 93 | mod key_tile; |
| 94 | -pub use key_tile::*; | 94 | +pub(crate) use key_tile::*; |
| 95 | 95 | ||
| 96 | mod inter_ctx; | 96 | mod inter_ctx; |
| 97 | pub(crate) use inter_ctx::*; | 97 | pub(crate) use inter_ctx::*; |
| @@ -2276,11 +2276,6 @@ thread_local! { | |||
| 2276 | static UV_LEFT_SS_Y_READS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; | 2276 | static UV_LEFT_SS_Y_READS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; |
| 2277 | } | 2277 | } |
| 2278 | 2278 | ||
| 2279 | -/// Current value of [`UV_LEFT_SS_Y_READS`]. | ||
| 2280 | -pub fn uv_left_ss_y_reads() -> usize { | ||
| 2281 | - UV_LEFT_SS_Y_READS.with(|c| c.get()) | ||
| 2282 | -} | ||
| 2283 | - | ||
| 2284 | // lane-av1leftwit: the per-tile epoch `uv_owner` cells are stamped with. | 2279 | // lane-av1leftwit: the per-tile epoch `uv_owner` cells are stamped with. |
| 2285 | // Bumped in `Neighbours::start_tile`; never read by decode logic. | 2280 | // Bumped in `Neighbours::start_tile`; never read by decode logic. |
| 2286 | thread_local! { | 2281 | thread_local! { |
| @@ -2458,17 +2453,6 @@ thread_local! { | |||
| 2458 | static CDEF_MIXED_SKIP_UNITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; | 2453 | static CDEF_MIXED_SKIP_UNITS: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; |
| 2459 | } | 2454 | } |
| 2460 | 2455 | ||
| 2461 | -/// Current value of `CDEF_MIXED_SKIP_UNITS`. | ||
| 2462 | -pub fn cdef_mixed_skip_units() -> usize { | ||
| 2463 | - CDEF_MIXED_SKIP_UNITS.with(|c| c.get()) | ||
| 2464 | -} | ||
| 2465 | - | ||
| 2466 | -/// How many 8x8 CDEF units [`apply_cdef`] visited whose skip band no coded | ||
| 2467 | -/// block wrote this frame -- a writer gap, always a defect (lane-cdefstrip r1). | ||
| 2468 | -pub fn cdef_unwritten_skip_units() -> usize { | ||
| 2469 | - CDEF_UNWRITTEN_SKIP_UNITS.with(|c| c.get()) | ||
| 2470 | -} | ||
| 2471 | - | ||
| 2472 | // Which plane the in-flight INTRA reconstruction is writing (0=Y, 1=U, 2=V). | 2456 | // Which plane the in-flight INTRA reconstruction is writing (0=Y, 1=U, 2=V). |
| 2473 | // lane-av1cmpaudit: aomdec's `EC_PREDOUT8`/`EC_PREDND` print `plane=`, and | 2457 | // lane-av1cmpaudit: aomdec's `EC_PREDOUT8`/`EC_PREDND` print `plane=`, and |
| 2474 | // without the same field on our side an `EC_PREDOUT8` vs `OUR_PRED` diff of a | 2458 | // without the same field on our side an `EC_PREDOUT8` vs `OUR_PRED` diff of a |