Thread-local hit counters take line comments, not doc comments
Browse files at this commit7895d2a4d83749eb42d5621edd370c031df59359Parent: 94033af- style
- thread-local hit counters take line comments, not doc comments
1 changed file +104 -104
- crates/ec-av1/src/decode.rs +104 -104
crates/ec-av1/src/decode.rsmodified+104 -104
| @@ -51,11 +51,11 @@ const PARTITION_VERT_B: usize = 7; | |||
| 51 | const SB_MI: u32 = 16; | 51 | const SB_MI: u32 = 16; |
| 52 | const BLOCK_MI: u32 = 8; | 52 | const BLOCK_MI: u32 = 8; |
| 53 | 53 | ||
| 54 | -/// How many `use_filter_intra` symbols this decoder has read as `1`, across | 54 | +// How many `use_filter_intra` symbols this decoder has read as `1`, across |
| 55 | -/// every call in the process -- the cheap counter [`filter_intra_hits`] gate | 55 | +// every call on the current thread -- the cheap counter [`filter_intra_hits`] gate |
| 56 | -/// tests read (before/after, not the absolute value) to prove a stream | 56 | +// tests read (before/after, not the absolute value) to prove a stream |
| 57 | -/// actually exercised the filter-intra predictor rather than silently | 57 | +// actually exercised the filter-intra predictor rather than silently |
| 58 | -/// skipping it. | 58 | +// skipping it. |
| 59 | thread_local! { | 59 | thread_local! { |
| 60 | static FILTER_INTRA_HITS: std::cell::Cell<usize> = | 60 | static FILTER_INTRA_HITS: std::cell::Cell<usize> = |
| 61 | const { std::cell::Cell::new(0) }; | 61 | const { std::cell::Cell::new(0) }; |
| @@ -66,10 +66,10 @@ pub(crate) fn filter_intra_hits() -> usize { | |||
| 66 | FILTER_INTRA_HITS.with(|c| c.get()) | 66 | FILTER_INTRA_HITS.with(|c| c.get()) |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | -/// How many 4-pixel deblocking edge groups [`edge_params`] has actually | 69 | +// How many 4-pixel deblocking edge groups [`edge_params`] has actually |
| 70 | -/// selected for filtering, across every call in the process -- the same | 70 | +// selected for filtering, across every call on the current thread -- the same |
| 71 | -/// before/after counter pattern as [`FILTER_INTRA_HITS`], proving a stream | 71 | +// before/after counter pattern as [`FILTER_INTRA_HITS`], proving a stream |
| 72 | -/// exercised `apply_deblock` rather than every edge landing on level 0. | 72 | +// exercised `apply_deblock` rather than every edge landing on level 0. |
| 73 | thread_local! { | 73 | thread_local! { |
| 74 | static DEBLOCK_HITS: std::cell::Cell<usize> = | 74 | static DEBLOCK_HITS: std::cell::Cell<usize> = |
| 75 | const { std::cell::Cell::new(0) }; | 75 | const { std::cell::Cell::new(0) }; |
| @@ -85,12 +85,12 @@ pub(crate) fn deblock_hits() -> usize { | |||
| 85 | DEBLOCK_HITS.with(|c| c.get()) | 85 | DEBLOCK_HITS.with(|c| c.get()) |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | -/// How many [`read_tx_size`] reads resolved a `tx_depth` strictly less than | 88 | +// How many [`read_tx_size`] reads resolved a `tx_depth` strictly less than |
| 89 | -/// the block's own side, across every call in the process -- the same | 89 | +// the block's own side, across every call on the current thread -- the same |
| 90 | -/// before/after counter pattern as [`FILTER_INTRA_HITS`], proving a stream | 90 | +// before/after counter pattern as [`FILTER_INTRA_HITS`], proving a stream |
| 91 | -/// actually exercised a *split* transform under `TxMode::Select` rather than | 91 | +// actually exercised a *split* transform under `TxMode::Select` rather than |
| 92 | -/// every block coincidentally resolving `depth=0` (indistinguishable from | 92 | +// every block coincidentally resolving `depth=0` (indistinguishable from |
| 93 | -/// `TxMode::Largest` pixel-wise). | 93 | +// `TxMode::Largest` pixel-wise). |
| 94 | thread_local! { | 94 | thread_local! { |
| 95 | static TX_DEPTH_HITS: std::cell::Cell<usize> = | 95 | static TX_DEPTH_HITS: std::cell::Cell<usize> = |
| 96 | const { std::cell::Cell::new(0) }; | 96 | const { std::cell::Cell::new(0) }; |
| @@ -101,21 +101,21 @@ pub(crate) fn tx_depth_hits() -> usize { | |||
| 101 | TX_DEPTH_HITS.with(|c| c.get()) | 101 | TX_DEPTH_HITS.with(|c| c.get()) |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | -/// How many [`read_coeffs`] reads resolved a `tx_type` outside `TX_CLASS_2D` | 104 | +// How many [`read_coeffs`] reads resolved a `tx_type` outside `TX_CLASS_2D` |
| 105 | -/// (`V_DCT`/`H_DCT`, spec 5.11.39's `TxClass::Horiz`/`Vert`), across every | 105 | +// (`V_DCT`/`H_DCT`, spec 5.11.39's `TxClass::Horiz`/`Vert`), across every |
| 106 | -/// call in the process -- the same before/after counter pattern as | 106 | +// call in the process -- the same before/after counter pattern as |
| 107 | -/// [`TX_DEPTH_HITS`], proving a stream actually exercised the class-split | 107 | +// [`TX_DEPTH_HITS`], proving a stream actually exercised the class-split |
| 108 | -/// `eob_pt`/1D-neighbour context path rather than every block coincidentally | 108 | +// `eob_pt`/1D-neighbour context path rather than every block coincidentally |
| 109 | -/// landing on `DCT_DCT`. | 109 | +// landing on `DCT_DCT`. |
| 110 | thread_local! { | 110 | thread_local! { |
| 111 | static TX_CLASS1_HITS: std::cell::Cell<usize> = | 111 | static TX_CLASS1_HITS: std::cell::Cell<usize> = |
| 112 | const { std::cell::Cell::new(0) }; | 112 | const { std::cell::Cell::new(0) }; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | -/// How many `uv_mode` reads resolved to a directional chroma mode (neither | 115 | +// How many `uv_mode` reads resolved to a directional chroma mode (neither |
| 116 | -/// `DC_PRED` nor `UV_CFL_PRED`), across every call in the process -- the same | 116 | +// `DC_PRED` nor `UV_CFL_PRED`), across every call on the current thread -- the same |
| 117 | -/// before/after counter pattern as [`FILTER_INTRA_HITS`], proving a stream | 117 | +// before/after counter pattern as [`FILTER_INTRA_HITS`], proving a stream |
| 118 | -/// actually exercised chroma's own directional predictor. | 118 | +// actually exercised chroma's own directional predictor. |
| 119 | thread_local! { | 119 | thread_local! { |
| 120 | static DIRECTIONAL_UV_HITS: std::cell::Cell<usize> = | 120 | static DIRECTIONAL_UV_HITS: std::cell::Cell<usize> = |
| 121 | const { std::cell::Cell::new(0) }; | 121 | const { std::cell::Cell::new(0) }; |
| @@ -126,21 +126,21 @@ pub(crate) fn directional_uv_hits() -> usize { | |||
| 126 | DIRECTIONAL_UV_HITS.with(|c| c.get()) | 126 | DIRECTIONAL_UV_HITS.with(|c| c.get()) |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | -/// How many `angle_delta`/`angle_delta_uv` symbols this decoder has read as | 129 | +// How many `angle_delta`/`angle_delta_uv` symbols this decoder has read as |
| 130 | -/// something other than [`ANGLE_DELTA_ZERO`], across every call in the | 130 | +// something other than [`ANGLE_DELTA_ZERO`], across every call in the |
| 131 | -/// process -- the same before/after counter pattern as [`FILTER_INTRA_HITS`], | 131 | +// process -- the same before/after counter pattern as [`FILTER_INTRA_HITS`], |
| 132 | -/// proving a stream actually exercised a nonzero angle delta. | 132 | +// proving a stream actually exercised a nonzero angle delta. |
| 133 | thread_local! { | 133 | thread_local! { |
| 134 | static ANGLE_DELTA_HITS: std::cell::Cell<usize> = | 134 | static ANGLE_DELTA_HITS: std::cell::Cell<usize> = |
| 135 | const { std::cell::Cell::new(0) }; | 135 | const { std::cell::Cell::new(0) }; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | -/// How many [`read_single_ref`] reads resolved to a reference other than | 138 | +// How many [`read_single_ref`] reads resolved to a reference other than |
| 139 | -/// `LAST_FRAME`, across every call in the process -- the same before/after | 139 | +// `LAST_FRAME`, across every call on the current thread -- the same before/after |
| 140 | -/// counter pattern as [`FILTER_INTRA_HITS`], proving a stream actually | 140 | +// counter pattern as [`FILTER_INTRA_HITS`], proving a stream actually |
| 141 | -/// exercised a non-`LAST_FRAME` reference (`GOLDEN_FRAME`, this decoder's | 141 | +// exercised a non-`LAST_FRAME` reference (`GOLDEN_FRAME`, this decoder's |
| 142 | -/// only other supported one so far) rather than every block coincidentally | 142 | +// only other supported one so far) rather than every block coincidentally |
| 143 | -/// resolving `LAST_FRAME`. | 143 | +// resolving `LAST_FRAME`. |
| 144 | thread_local! { | 144 | thread_local! { |
| 145 | static NON_LAST_REF_HITS: std::cell::Cell<usize> = | 145 | static NON_LAST_REF_HITS: std::cell::Cell<usize> = |
| 146 | const { std::cell::Cell::new(0) }; | 146 | const { std::cell::Cell::new(0) }; |
| @@ -151,12 +151,12 @@ pub(crate) fn non_last_ref_hits() -> usize { | |||
| 151 | NON_LAST_REF_HITS.with(|c| c.get()) | 151 | NON_LAST_REF_HITS.with(|c| c.get()) |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | -/// Per-reference [`NON_LAST_REF_HITS`] breakdown (lane-av1refs): one counter | 154 | +// Per-reference [`NON_LAST_REF_HITS`] breakdown (lane-av1refs): one counter |
| 155 | -/// per `MV_REFERENCE_FRAME` past `LAST_FRAME`, so a gate targeting one | 155 | +// per `MV_REFERENCE_FRAME` past `LAST_FRAME`, so a gate targeting one |
| 156 | -/// specific reference (`LAST2`/`LAST3`/`GOLDEN`/`BWDREF`/`ALTREF2`/`ALTREF`) | 156 | +// specific reference (`LAST2`/`LAST3`/`GOLDEN`/`BWDREF`/`ALTREF2`/`ALTREF`) |
| 157 | -/// can prove THAT reference fired rather than any non-`LAST_FRAME` one -- | 157 | +// can prove THAT reference fired rather than any non-`LAST_FRAME` one -- |
| 158 | -/// `NON_LAST_REF_HITS` alone cannot tell a `LAST2_FRAME` gate from a | 158 | +// `NON_LAST_REF_HITS` alone cannot tell a `LAST2_FRAME` gate from a |
| 159 | -/// `GOLDEN_FRAME` draw it did not ask for. | 159 | +// `GOLDEN_FRAME` draw it did not ask for. |
| 160 | thread_local! { | 160 | thread_local! { |
| 161 | static LAST2_HITS: std::cell::Cell<usize> = | 161 | static LAST2_HITS: std::cell::Cell<usize> = |
| 162 | const { std::cell::Cell::new(0) }; | 162 | const { std::cell::Cell::new(0) }; |
| @@ -182,11 +182,11 @@ thread_local! { | |||
| 182 | const { std::cell::Cell::new(0) }; | 182 | const { std::cell::Cell::new(0) }; |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | -/// How many [`read_comp_mode`] reads resolved `COMPOUND_REFERENCE` (lane-av1comp) | 185 | +// How many [`read_comp_mode`] reads resolved `COMPOUND_REFERENCE` (lane-av1comp) |
| 186 | -/// -- proves a `reference_select` stream actually reached a block that picked | 186 | +// -- proves a `reference_select` stream actually reached a block that picked |
| 187 | -/// compound, not just that the header bit was set. Every such block is | 187 | +// compound, not just that the header bit was set. Every such block is |
| 188 | -/// refused after this fires ([`decode_inter_block`]/[`decode_inter_block8`]), | 188 | +// refused after this fires ([`decode_inter_block`]/[`decode_inter_block8`]), |
| 189 | -/// so this only ever counts attempted reads, never a completed decode. | 189 | +// so this only ever counts attempted reads, never a completed decode. |
| 190 | thread_local! { | 190 | thread_local! { |
| 191 | static COMP_MODE_HITS: std::cell::Cell<usize> = | 191 | static COMP_MODE_HITS: std::cell::Cell<usize> = |
| 192 | const { std::cell::Cell::new(0) }; | 192 | const { std::cell::Cell::new(0) }; |
| @@ -197,9 +197,9 @@ pub(crate) fn comp_mode_hits() -> usize { | |||
| 197 | COMP_MODE_HITS.with(|c| c.get()) | 197 | COMP_MODE_HITS.with(|c| c.get()) |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | -/// How many blocks decoded `skip_mode == 1` (lane-av1comp round 14) -- | 200 | +// How many blocks decoded `skip_mode == 1` (lane-av1comp round 14) -- |
| 201 | -/// proves a real `skip_mode_present` stream actually reached a block that | 201 | +// proves a real `skip_mode_present` stream actually reached a block that |
| 202 | -/// picked it, not just that the frame header bit was set. | 202 | +// picked it, not just that the frame header bit was set. |
| 203 | thread_local! { | 203 | thread_local! { |
| 204 | static SKIP_MODE_HITS: std::cell::Cell<usize> = | 204 | static SKIP_MODE_HITS: std::cell::Cell<usize> = |
| 205 | const { std::cell::Cell::new(0) }; | 205 | const { std::cell::Cell::new(0) }; |
| @@ -210,10 +210,10 @@ pub(crate) fn skip_mode_hits() -> usize { | |||
| 210 | SKIP_MODE_HITS.with(|c| c.get()) | 210 | SKIP_MODE_HITS.with(|c| c.get()) |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | -/// lane-motionmode: how many blocks actually decoded `obmc_selected == true` | 213 | +// lane-motionmode: how many blocks actually decoded `obmc_selected == true` |
| 214 | -/// (as opposed to just reaching an eligible `read_motion_mode` symbol read) | 214 | +// (as opposed to just reaching an eligible `read_motion_mode` symbol read) |
| 215 | -/// -- the gate's own proof that a real aomenc `--enable-obmc=1` stream | 215 | +// -- the gate's own proof that a real aomenc `--enable-obmc=1` stream |
| 216 | -/// reached [`obmc_blend`], not just the header bit. | 216 | +// reached [`obmc_blend`], not just the header bit. |
| 217 | thread_local! { | 217 | thread_local! { |
| 218 | static OBMC_HITS: std::cell::Cell<usize> = | 218 | static OBMC_HITS: std::cell::Cell<usize> = |
| 219 | const { std::cell::Cell::new(0) }; | 219 | const { std::cell::Cell::new(0) }; |
| @@ -224,20 +224,20 @@ pub(crate) fn obmc_hits() -> usize { | |||
| 224 | OBMC_HITS.with(|c| c.get()) | 224 | OBMC_HITS.with(|c| c.get()) |
| 225 | } | 225 | } |
| 226 | 226 | ||
| 227 | -/// lane-motionmode round 3: same proof as [`OBMC_HITS`], narrowed to | 227 | +// lane-motionmode round 3: same proof as [`OBMC_HITS`], narrowed to |
| 228 | -/// `decode_inter_block8`'s own 8x8-leaf `read_motion_mode` -- a subset of | 228 | +// `decode_inter_block8`'s own 8x8-leaf `read_motion_mode` -- a subset of |
| 229 | -/// [`OBMC_HITS`] (both fire together on an 8x8 hit), lets the gate tell an | 229 | +// [`OBMC_HITS`] (both fire together on an 8x8 hit), lets the gate tell an |
| 230 | -/// 8x8-leaf OBMC block apart from a 16x16+ one. | 230 | +// 8x8-leaf OBMC block apart from a 16x16+ one. |
| 231 | thread_local! { | 231 | thread_local! { |
| 232 | static OBMC_HITS_8: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; | 232 | static OBMC_HITS_8: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; |
| 233 | } | 233 | } |
| 234 | 234 | ||
| 235 | -/// lane-warp round 1: how many blocks resolved `motion_mode_allowed` to | 235 | +// lane-warp round 1: how many blocks resolved `motion_mode_allowed` to |
| 236 | -/// `WARPED_CAUSAL`-eligible (3-symbol read, `num_proj_ref >= 1` under | 236 | +// `WARPED_CAUSAL`-eligible (3-symbol read, `num_proj_ref >= 1` under |
| 237 | -/// `allow_warped_motion`) AND the symbol actually decoded to `WARPED_CAUSAL` | 237 | +// `allow_warped_motion`) AND the symbol actually decoded to `WARPED_CAUSAL` |
| 238 | -/// -- the gate's proof that a fixture really exercises the alphabet this | 238 | +// -- the gate's proof that a fixture really exercises the alphabet this |
| 239 | -/// round changed, even though the block itself still refuses (warp | 239 | +// round changed, even though the block itself still refuses (warp |
| 240 | -/// estimation/filter not ported). | 240 | +// estimation/filter not ported). |
| 241 | thread_local! { | 241 | thread_local! { |
| 242 | static WARP_SELECTED_HITS: std::cell::Cell<usize> = | 242 | static WARP_SELECTED_HITS: std::cell::Cell<usize> = |
| 243 | const { std::cell::Cell::new(0) }; | 243 | const { std::cell::Cell::new(0) }; |
| @@ -248,9 +248,9 @@ pub(crate) fn warp_selected_hits() -> usize { | |||
| 248 | WARP_SELECTED_HITS.with(|c| c.get()) | 248 | WARP_SELECTED_HITS.with(|c| c.get()) |
| 249 | } | 249 | } |
| 250 | 250 | ||
| 251 | -/// How many blocks decoded `interintra == 1` with the non-wedge blended | 251 | +// How many blocks decoded `interintra == 1` with the non-wedge blended |
| 252 | -/// prediction applied (lane-interintra r1) -- the gate's proof that a | 252 | +// prediction applied (lane-interintra r1) -- the gate's proof that a |
| 253 | -/// stream actually exercised interintra. | 253 | +// stream actually exercised interintra. |
| 254 | thread_local! { | 254 | thread_local! { |
| 255 | static INTERINTRA_HITS: std::cell::Cell<usize> = | 255 | static INTERINTRA_HITS: std::cell::Cell<usize> = |
| 256 | const { std::cell::Cell::new(0) }; | 256 | const { std::cell::Cell::new(0) }; |
| @@ -261,11 +261,11 @@ pub(crate) fn interintra_hits() -> usize { | |||
| 261 | INTERINTRA_HITS.with(|c| c.get()) | 261 | INTERINTRA_HITS.with(|c| c.get()) |
| 262 | } | 262 | } |
| 263 | 263 | ||
| 264 | -/// How many blocks decoded `comp_group_idx == 1` (masked COMPOUND_REFERENCE, | 264 | +// How many blocks decoded `comp_group_idx == 1` (masked COMPOUND_REFERENCE, |
| 265 | -/// wedge or diffwtd) and had `compound_type`/`wedge_idx`/`wedge_sign`/ | 265 | +// wedge or diffwtd) and had `compound_type`/`wedge_idx`/`wedge_sign`/ |
| 266 | -/// `mask_type` consumed entropy-exact -- lane-maskcomp r1's proof that a | 266 | +// `mask_type` consumed entropy-exact -- lane-maskcomp r1's proof that a |
| 267 | -/// gate fixture actually exercises this alphabet, even though the block | 267 | +// gate fixture actually exercises this alphabet, even though the block |
| 268 | -/// still refuses (the mask blend itself is unported). | 268 | +// still refuses (the mask blend itself is unported). |
| 269 | thread_local! { | 269 | thread_local! { |
| 270 | static MASKED_COMPOUND_HITS: std::cell::Cell<usize> = | 270 | static MASKED_COMPOUND_HITS: std::cell::Cell<usize> = |
| 271 | const { std::cell::Cell::new(0) }; | 271 | const { std::cell::Cell::new(0) }; |
| @@ -276,10 +276,10 @@ pub(crate) fn masked_compound_hits() -> usize { | |||
| 276 | MASKED_COMPOUND_HITS.with(|c| c.get()) | 276 | MASKED_COMPOUND_HITS.with(|c| c.get()) |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | -/// How many blocks decoded a real `COMPOUND_WEDGE` block (`comp_group_idx == | 279 | +// How many blocks decoded a real `COMPOUND_WEDGE` block (`comp_group_idx == |
| 280 | -/// 1`, `compound_type == 0`) -- lane-wedge r3's proof a gate fixture | 280 | +// 1`, `compound_type == 0`) -- lane-wedge r3's proof a gate fixture |
| 281 | -/// actually exercised the wedge blend, not just the DIFFWTD half of | 281 | +// actually exercised the wedge blend, not just the DIFFWTD half of |
| 282 | -/// `MASKED_COMPOUND_HITS`. | 282 | +// `MASKED_COMPOUND_HITS`. |
| 283 | thread_local! { | 283 | thread_local! { |
| 284 | static WEDGE_HITS: std::cell::Cell<usize> = | 284 | static WEDGE_HITS: std::cell::Cell<usize> = |
| 285 | const { std::cell::Cell::new(0) }; | 285 | const { std::cell::Cell::new(0) }; |
| @@ -290,10 +290,10 @@ pub(crate) fn wedge_hits() -> usize { | |||
| 290 | WEDGE_HITS.with(|c| c.get()) | 290 | WEDGE_HITS.with(|c| c.get()) |
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | -/// How many blocks decoded a real wedge-INTERINTRA block | 293 | +// How many blocks decoded a real wedge-INTERINTRA block |
| 294 | -/// (`interintra == 1 && use_wedge_interintra == 1`) -- lane-wii r2's proof | 294 | +// (`interintra == 1 && use_wedge_interintra == 1`) -- lane-wii r2's proof |
| 295 | -/// a gate fixture exercised the wedge blend (fixed sign 0), not just the | 295 | +// a gate fixture exercised the wedge blend (fixed sign 0), not just the |
| 296 | -/// smooth arm counted by `INTERINTRA_HITS`. | 296 | +// smooth arm counted by `INTERINTRA_HITS`. |
| 297 | thread_local! { | 297 | thread_local! { |
| 298 | static WII_HITS: std::cell::Cell<usize> = | 298 | static WII_HITS: std::cell::Cell<usize> = |
| 299 | const { std::cell::Cell::new(0) }; | 299 | const { std::cell::Cell::new(0) }; |
| @@ -309,13 +309,13 @@ pub(crate) fn obmc_hits_8() -> usize { | |||
| 309 | OBMC_HITS_8.with(|c| c.get()) | 309 | OBMC_HITS_8.with(|c| c.get()) |
| 310 | } | 310 | } |
| 311 | 311 | ||
| 312 | -/// lane-rectgate r1: how many 32x32 quadrants actually decoded a | 312 | +// lane-rectgate r1: how many 32x32 quadrants actually decoded a |
| 313 | -/// `PARTITION_HORZ_B` split (the one extended/ab partition this decoder's | 313 | +// `PARTITION_HORZ_B` split (the one extended/ab partition this decoder's |
| 314 | -/// inter-frame tile loop decodes -- `PARTITION_HORZ`/`VERT`/`HORZ_A`/`VERT_A`/ | 314 | +// inter-frame tile loop decodes -- `PARTITION_HORZ`/`VERT`/`HORZ_A`/`VERT_A`/ |
| 315 | -/// `VERT_B` all still fall into the generic "a partition type this encoder | 315 | +// `VERT_B` all still fall into the generic "a partition type this encoder |
| 316 | -/// never writes" refusal below) -- the gate's proof that a free-partition | 316 | +// never writes" refusal below) -- the gate's proof that a free-partition |
| 317 | -/// aomenc stream actually exercised a non-`NONE`/`SPLIT` partition rather than | 317 | +// aomenc stream actually exercised a non-`NONE`/`SPLIT` partition rather than |
| 318 | -/// coincidentally never selecting one. | 318 | +// coincidentally never selecting one. |
| 319 | thread_local! { | 319 | thread_local! { |
| 320 | static EXTENDED_PARTITION_HITS: std::cell::Cell<usize> = | 320 | static EXTENDED_PARTITION_HITS: std::cell::Cell<usize> = |
| 321 | const { std::cell::Cell::new(0) }; | 321 | const { std::cell::Cell::new(0) }; |
| @@ -326,10 +326,10 @@ pub(crate) fn extended_partition_hits() -> usize { | |||
| 326 | EXTENDED_PARTITION_HITS.with(|c| c.get()) | 326 | EXTENDED_PARTITION_HITS.with(|c| c.get()) |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | -/// lane-partitions r1: how many 32x32 quadrants decoded a real | 329 | +// lane-partitions r1: how many 32x32 quadrants decoded a real |
| 330 | -/// `PARTITION_HORZ`/`PARTITION_VERT` (two true rectangular strips, unlike | 330 | +// `PARTITION_HORZ`/`PARTITION_VERT` (two true rectangular strips, unlike |
| 331 | -/// `PARTITION_HORZ_B`'s square-context stand-in) -- the free-partition | 331 | +// `PARTITION_HORZ_B`'s square-context stand-in) -- the free-partition |
| 332 | -/// gate's proof this round's arms actually fired. | 332 | +// gate's proof this round's arms actually fired. |
| 333 | thread_local! { | 333 | thread_local! { |
| 334 | static RECT_PARTITION_HITS: std::cell::Cell<usize> = | 334 | static RECT_PARTITION_HITS: std::cell::Cell<usize> = |
| 335 | const { std::cell::Cell::new(0) }; | 335 | const { std::cell::Cell::new(0) }; |
| @@ -340,10 +340,10 @@ pub(crate) fn rect_partition_hits() -> usize { | |||
| 340 | RECT_PARTITION_HITS.with(|c| c.get()) | 340 | RECT_PARTITION_HITS.with(|c| c.get()) |
| 341 | } | 341 | } |
| 342 | 342 | ||
| 343 | -/// lane-rectwire r2: how many `PARTITION_HORZ`/`VERT` strips actually decoded | 343 | +// lane-rectwire r2: how many `PARTITION_HORZ`/`VERT` strips actually decoded |
| 344 | -/// real (non-skip) coefficients through [`read_coeffs_rect`] -- proves the | 344 | +// real (non-skip) coefficients through [`read_coeffs_rect`] -- proves the |
| 345 | -/// rect coefficient reader itself fired, not just the strip-level partition | 345 | +// rect coefficient reader itself fired, not just the strip-level partition |
| 346 | -/// symbol [`RECT_PARTITION_HITS`] already counts. | 346 | +// symbol [`RECT_PARTITION_HITS`] already counts. |
| 347 | thread_local! { | 347 | thread_local! { |
| 348 | static RECT_COEFF_HITS: std::cell::Cell<usize> = | 348 | static RECT_COEFF_HITS: std::cell::Cell<usize> = |
| 349 | const { std::cell::Cell::new(0) }; | 349 | const { std::cell::Cell::new(0) }; |
| @@ -354,10 +354,10 @@ pub(crate) fn rect_coeff_hits() -> usize { | |||
| 354 | RECT_COEFF_HITS.with(|c| c.get()) | 354 | RECT_COEFF_HITS.with(|c| c.get()) |
| 355 | } | 355 | } |
| 356 | 356 | ||
| 357 | -/// lane-partab r1: how many 32x32 quadrants decoded an AB partition | 357 | +// lane-partab r1: how many 32x32 quadrants decoded an AB partition |
| 358 | -/// (PARTITION_HORZ_A / VERT_A / VERT_B -- two 16x16 squares plus one | 358 | +// (PARTITION_HORZ_A / VERT_A / VERT_B -- two 16x16 squares plus one |
| 359 | -/// 16x32/32x16 strip). Like [`RECT_PARTITION_HITS`], this is the | 359 | +// 16x32/32x16 strip). Like [`RECT_PARTITION_HITS`], this is the |
| 360 | -/// free-partition gate's proof this round's arms actually fired. | 360 | +// free-partition gate's proof this round's arms actually fired. |
| 361 | thread_local! { | 361 | thread_local! { |
| 362 | static PARTAB_HITS: std::cell::Cell<usize> = | 362 | static PARTAB_HITS: std::cell::Cell<usize> = |
| 363 | const { std::cell::Cell::new(0) }; | 363 | const { std::cell::Cell::new(0) }; |
| @@ -368,12 +368,12 @@ pub(crate) fn partab_hits() -> usize { | |||
| 368 | PARTAB_HITS.with(|c| c.get()) | 368 | PARTAB_HITS.with(|c| c.get()) |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | -/// How many [`read_inter_compound_mode`] reads actually happened | 371 | +// How many [`read_inter_compound_mode`] reads actually happened |
| 372 | -/// (lane-av1comp) -- proves a `COMPOUND_REFERENCE` block reached its own | 372 | +// (lane-av1comp) -- proves a `COMPOUND_REFERENCE` block reached its own |
| 373 | -/// `compound_mode` symbol (past `comp_mode`/`comp_ref` and the compound | 373 | +// `compound_mode` symbol (past `comp_mode`/`comp_ref` and the compound |
| 374 | -/// mvstack build), not just that `comp_mode` fired. Still refused right | 374 | +// mvstack build), not just that `comp_mode` fired. Still refused right |
| 375 | -/// after (no MV assignment or MC wired), so this only counts attempted | 375 | +// after (no MV assignment or MC wired), so this only counts attempted |
| 376 | -/// reads. | 376 | +// reads. |
| 377 | thread_local! { | 377 | thread_local! { |
| 378 | static COMPOUND_MODE_HITS: std::cell::Cell<usize> = | 378 | static COMPOUND_MODE_HITS: std::cell::Cell<usize> = |
| 379 | const { std::cell::Cell::new(0) }; | 379 | const { std::cell::Cell::new(0) }; |