-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MixPresentationGenerator
: Infer num_tags
instead of requiring use…
…r input to match. - b/397462369 This signal is pretty useless: - When it matches the number of `tags`, then encoding would succeed. - When it did not match the number of `tags`, then encoding would fail. - Therefore, it is redundant with the number of `tags`, we can simply infer the correct value. - N.b.: "zero" vs. "absent" tags case are distinguished via `include_mix_presentation_tags` (`CopiesMixPresentationTagsWithZeroTags` vs `IgnoresTagsWhenSetIncludeMixPresentationTagsIsFalse`). - Motivation (b/388577499): - In the future, the encoder may start inserting custom tags automatically. - Avoid complicating behavior (what would `num_tags` represent at the proto layer, if the encoder adds implicit ones). - Dropping the field means we can simply ignore and not care about the answer to this question - all we care is that the generated OBU has the final correct value. - Tests: - Add coverage that a poorly set `num_tags` is now ignored. - Backfill test coverage when there are more than 255 tags (spec max). PiperOrigin-RevId: 728647443
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters