Lane-tplwin depth-4 arms, the in-batch wall re-run and the shipped rule
Browse files at this commit547e76a63b41ff1c7c4b96525cf0981d46ae3481Parent: d247015- test
- lane-tplwin depth-4 arms, the in-batch wall re-run and the shipped rule
2 changed files +131 -0
- lanes/tplwin.report.md +58 -0
- lanes/tw-suite.log +73 -0
lanes/tplwin.report.mdmodified+58 -0
| @@ -81,3 +81,61 @@ Film B decides it: shortening the window to 4 costs 0.7 points on BOTH columns | ||
| 81 | 81 | of the 2160p film, past the keep rule's bound, for 7.7% of that row's wall, |
| 82 | 82 | while film A moves 0.2 the other way and screen 0.1. **8 stays the preset-0 |
| 83 | 83 | default, so the byte pins do not move.** Logs `lanes/tw-p0d{8,4}.log`. |
| 84 | + | |
| 85 | +### Depth 4 (the arm that ships at presets 3..6) | |
| 86 | + | |
| 87 | +| row | preset 3 d1 | preset 3 **d4** | preset 3 d8 | preset 6 d1 | preset 6 **d4** | preset 6 d8 | | |
| 88 | +|---|---|---|---|---|---|---| | |
| 89 | +| bars 1080p | +43.9 / +21.2 | +43.1 / +20.4 | +44.2 / +21.4 | +67.6 / +39.5 | +68.4 / +40.0 | +69.2 / +40.7 | | |
| 90 | +| bars 2160p | +49.1 / +18.9 | +49.2 / +19.0 | +48.9 / +18.9 | +63.8 / +29.0 | +62.7 / +28.0 | +64.1 / +29.4 | | |
| 91 | +| film A | +22.5 / -3.9 | +22.3 / -4.1 | +22.5 / -3.9 | +27.0 / -0.3 | +27.2 / -0.2 | +27.0 / -0.4 | | |
| 92 | +| film B | +27.6 / +0.1 | +27.3 / -0.3 | +27.7 / +0.1 | +35.9 / +7.2 | +35.2 / +6.6 | +35.6 / +6.9 | | |
| 93 | +| screen | +33.5 / -23.1 | +33.4 / -23.2 | +32.9 / -23.4 | +34.7 / -22.4 | +34.8 / -22.3 | +34.9 / -22.3 | | |
| 94 | + | |
| 95 | +Logs `lanes/tw-p{3,6}d4.log`. The preset-6 depth-1 and depth-4 arms were then | |
| 96 | +re-run SIDE BY SIDE (`lanes/tw-p6d{1,4}b.log`) both to price depth 4's wall | |
| 97 | +in-batch and to check the box: every ladder point came back byte-identical to | |
| 98 | +the first run, so nothing in the BD columns above is run noise. | |
| 99 | + | |
| 100 | +| preset 6, in-batch | depth 1 | depth 4 | ratio delta | | |
| 101 | +|---|---|---|---| | |
| 102 | +| film A wall | 64.6s:15.4s = 4.19 | 66.0s:16.0s = 4.13 | -1.6% | | |
| 103 | +| film B wall | 54.2s:16.4s = 3.30 | 53.6s:17.6s = 3.05 | -7.8% | | |
| 104 | +| screen wall | 39.2s:12.1s = 3.24 | 39.4s:11.9s = 3.31 | +2.2% | | |
| 105 | + | |
| 106 | +Depth 4's cost straddles zero on a box at load 13-15; depth 8's, measured the | |
| 107 | +same way, was +3/+2.9/+6.3% -- all three positive, which is the one wall | |
| 108 | +statement this batch supports. | |
| 109 | + | |
| 110 | +## Shipped | |
| 111 | + | |
| 112 | + speed::TPL_DEPTH = [8, 8, 8, 4, 4, 4, 4, 1, 1, 1, 1] // was [8, 1, ...] | |
| 113 | + | |
| 114 | +The rule, greedy by BD per 1% wall against what each preset already dropped | |
| 115 | +(CfL + angle 0.031, coefficient breakout 0.041 -- the frontier `speed.rs` | |
| 116 | +documents): | |
| 117 | + | |
| 118 | +* preset 0 keeps 8 -- depth 4 costs film B 0.7 on BOTH columns. Pins unmoved. | |
| 119 | +* presets 3..6 take 4 -- best real-content arm at 3 (every row down), film B | |
| 120 | + -0.7/-0.6 at 6, for no wall this box can see: >= 0.1 BD points per 1% wall | |
| 121 | + against a frontier of 0.04, and the cheaper of the two windows that pay. | |
| 122 | +* presets 1..2 take 8 (unmeasured): nearest measured neighbour is preset 0, | |
| 123 | + whose optimum is 8, and the monotone rule forbids anything below preset 3's. | |
| 124 | +* presets 7..10 stay at 1 (unmeasured, per charter). | |
| 125 | + | |
| 126 | +Side effect: lane-deltaq's `EC_AV1_DELTAQ` is no longer inert at presets 1..6 | |
| 127 | +-- there is a map to read again. It still ships OFF, and its witness' fire | |
| 128 | +count is now gated on the window (`speed::at(&TPL_DEPTH) > 1`) rather than on | |
| 129 | +`speed() == 0`. | |
| 130 | + | |
| 131 | +## Invariants | |
| 132 | + | |
| 133 | +* `EC_COMP_MISMATCH=1` at presets 0, 3, 6 over | |
| 134 | + `tile_bytes_do_not_depend_on_the_thread_count --include-ignored` and | |
| 135 | + `the_facade_codes_the_same_bytes_as_encode_sequence`: all six pass, 0 | |
| 136 | + mismatch lines (`lanes/tw-inv2.log`). The FIRST attempt used `--exact` with | |
| 137 | + a bare test name and matched 0 tests -- a green "ok. 0 passed" that proved | |
| 138 | + nothing (`lanes/tw-inv.log`, kept as the record of that miss). | |
| 139 | +* `every_speed_preset_decodes_sample_exact_through_both_decoders --ignored` | |
| 140 | + under `EC_COMP_MISMATCH=1`: pass, 0 lines. | |
| 141 | +* `cargo check --workspace --all-targets`: 0 errors, 0 ec-av1 warnings. |
lanes/tw-suite.logmodified+73 -0
| @@ -43,3 +43,76 @@ test decode::tests::a_frame_with_no_mode_info_grid_is_refused ... ok | ||
| 43 | 43 | test decode::tests::is_uni_comp_ref_matches_forward_backward_sides ... ok |
| 44 | 44 | test decode::tests::narrowed_publish_surface_keeps_neighbour_semantics ... ok |
| 45 | 45 | test decode::tests::padded_level_buffers_cover_every_neighbour_read_at_every_transform_size ... ok |
| 46 | +test decode::tests::deblock_simd_kernel_matches_the_scalar_filter ... ok | |
| 47 | +test decode::tests::record_compound_ctx_stamps_ref1_for_the_next_block_to_read ... ok | |
| 48 | +test decode::tests::scan_8x4_and_4x8_are_not_transposed_against_each_other ... ok | |
| 49 | +test decode::tests::the_rect4_scans_are_transposed_pairs ... ok | |
| 50 | +test decode::tx4x8_table_tests::the_32_position_eob_tables_are_well_formed ... ok | |
| 51 | +test decode::tx4x8_table_tests::the_rect_4x8_scans_are_each_other_transposed ... ok | |
| 52 | +test decode::tx4x8_table_tests::the_rect_class1_scans_match_libaom ... ok | |
| 53 | +test decode::tx4x8_table_tests::the_sub8_rect_reach_tables_are_shape_specific ... ok | |
| 54 | +test decode::tests::a_gop_round_trips_bit_exact_against_the_encoder_reconstruction ... ok | |
| 55 | +test decode::tests::a_key_frames_tile_needs_the_headers_own_tx_select_bit ... ok | |
| 56 | +test encode::tests::a_block_the_frame_edge_cuts_is_scored_over_its_inside_only ... ok | |
| 57 | +test encode::tests::a_flat_picture_costs_almost_nothing ... ok | |
| 58 | +test encode::tests::a_frame_of_real_video_decodes_to_what_the_encoder_reconstructed ... ok | |
| 59 | +test decode::tests::cdef_simd_kernel_matches_the_scalar_filter ... ok | |
| 60 | +test encode::tests::a_mode_the_encoder_cannot_predict_is_refused ... ok | |
| 61 | +test decode::tests::an_odd_size_gop_round_trips_bit_exact_against_the_encoder_reconstruction ... ok | |
| 62 | +test decode::tests::real_yuv_round_trips_bit_exact_against_the_encoder_reconstruction ... ok | |
| 63 | +test decode::tests::ffmpeg_and_this_decoder_agree_on_a_gop ... ok | |
| 64 | +test decode::tests::a_filter_intra_key_frame_decodes_pixel_exact_through_ffmpeg ... ok | |
| 65 | +test decode::tests::ffmpeg_and_this_decoder_agree_on_a_key_frame ... ok | |
| 66 | +test decode::tests::every_intra_mode_round_trips_bit_exact_against_the_encoder_reconstruction ... ok | |
| 67 | +test encode::tests::a_640x360_half_straddle_sequence_round_trips_through_ffmpeg ... ok | |
| 68 | +test encode::tests::a_640x360_half_straddle_round_trips_through_ffmpeg_across_three_frames ... ok | |
| 69 | +test encode::tests::bd_rate_film_long_gop ... ignored, the long-GOP native BD arm: ~7 minutes per film row, needs ffmpeg | |
| 70 | +test encode::tests::bd_rate_screen_native ... ignored, the native-resolution BD arm: minutes per row, needs ffmpeg | |
| 71 | +test encode::tests::bd_rate_vs_libaom_and_rav1e ... ignored, the encoder BD-rate baseline: minutes per clip, needs ffmpeg | |
| 72 | +test encode::tests::calibration_sweep_base_q_idx ... ignored, a calibration probe, not a gate | |
| 73 | +test decode::tests::leaf8_straddle_sizes_round_trip_bit_exact_against_the_encoder_reconstruction ... ok | |
| 74 | +test decode::tests::odd_sizes_round_trip_bit_exact_against_the_encoder_reconstruction ... ok | |
| 75 | +test encode::tests::a_frame_round_trips_at_its_own_size ... ok | |
| 76 | +test encode::tests::every_rect_shape_reaches_what_libaom_says_over_the_whole_superblock ... ok | |
| 77 | +test encode::tests::a_nearestmv_block_with_one_nonzero_coefficient_decodes_clean ... ok | |
| 78 | +test encode::tests::a_repeated_pattern_key_frame_codes_intrabc_blocks_ffmpeg_decodes_exactly ... ok | |
| 79 | +test encode::tests::every_mode_decodes_to_what_the_encoder_predicted ... ok | |
| 80 | +test encode::tests::a_picture_off_the_block_grid_encodes_and_a_malformed_one_is_refused ... ok | |
| 81 | +test encode::tests::odd_dimensions_are_refused ... ok | |
| 82 | +test encode::tests::of_tu_follows_the_block_row_including_under_vert_ab ... ok | |
| 83 | +test encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit ... ok | |
| 84 | +test encode::tests::key_frame_and_inter_frame_both_encode_at_half_straddle_size ... ok | |
| 85 | +test encode::tests::a_smooth_gradient_key_frame_codes_whole_superblocks_and_decodes_exactly ... ok | |
| 86 | +test encode::tests::pricer_error_census_on_clips ... ignored, reads the real library, needs ffmpeg | |
| 87 | +test encode::tests::probe_directional ... ignored, a sweep, not a gate | |
| 88 | +test encode::tests::probe_intrabc_key_frame ... ignored, needs the real-library manifest and ffmpeg | |
| 89 | +test encode::tests::probe_ladder ... ignored, a sweep, not a gate | |
| 90 | +test encode::tests::probe_lambda ... ignored, a sweep, not a gate | |
| 91 | +test encode::tests::probe_parity_point ... ignored, diagnostic: needs ffmpeg and a clip | |
| 92 | +test encode::tests::probe_screen_detect ... ignored, reads the real library | |
| 93 | +test encode::tests::probe_screen_library ... ignored, reads the real library | |
| 94 | +test encode::tests::probe_split ... ignored, a sweep, not a gate | |
| 95 | +test encode::tests::prune_k_quality_sweep ... ignored, needs real clips and ffmpeg; prints numbers for the lane report to judge | |
| 96 | +test encode::tests::prune_k_quality_sweep_inter ... ignored, needs real clips and ffmpeg; prints numbers for the lane report to judge | |
| 97 | +test encode::tests::reach_matches_libaom_has_top_right_and_has_bottom_left ... ok | |
| 98 | +test encode::tests::a_single_axis_straddle_round_trips_through_ffmpeg ... ok | |
| 99 | +test encode::tests::pricer_error_census_by_block_class ... ok | |
| 100 | +test encode::tests::rect_reach_tables_are_indexed_with_a_32_mi_row_stride ... ok | |
| 101 | +test encode::tests::sequence_bench_sanity ... ignored, a perf probe, not a gate | |
| 102 | +test encode::tests::low_motion_makes_an_inter_frame_smaller_than_the_key_frame ... ok | |
| 103 | +test encode::tests::stage_timing_breakdown ... ignored, a perf probe, not a gate | |
| 104 | +test encode::tests::stage_timing_breakdown_inter ... ignored, a perf probe, not a gate | |
| 105 | +test encode::tests::every_frame_of_a_sequence_decodes_to_what_the_encoder_reconstructed ... ok | |
| 106 | +test encode::tests::every_frame_of_a_sequence_decodes_through_our_own_decoder ... ok | |
| 107 | +test encode::tests::the_encoded_picture_is_the_one_that_went_in ... ok | |
| 108 | +test encode::tests::predicted_coeff_bits_track_the_tile_the_writer_wrote ... ok | |
| 109 | +test encode::tests::the_filter_search_picks_real_filters ... ok | |
| 110 | +test encode::tests::sequence_round_trips_at_a_non_multiple_size ... ok | |
| 111 | +test encode::tests::an_854x480_picture_round_trips_through_its_padding ... ok | |
| 112 | +test encode::tests::fidelity_and_rate_move_with_the_quantizer ... ok | |
| 113 | +test encode::tests::a_screen_content_picture_codes_palette_blocks_ffmpeg_decodes_exactly ... ok | |
| 114 | +test encode::tests::tpl_factors_are_flat_on_a_uniform_repeat_and_fall_where_the_window_leans ... ok | |
| 115 | +test encode::tests::tpl_intra_denominator_histogram ... ignored, needs ffmpeg and the film fixtures | |
| 116 | +test encode::tests::vert_ab_partition_flips_below_left_for_the_top_right_8x8 ... ok | |
| 117 | +test encoder::tests::a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders ... ignored, 1080p encode: minutes, run it with --ignored | |
| 118 | +test encode::tests::ffmpeg_decodes_exactly_what_the_encoder_reconstructed ... ok |