Skip to content

Allow adding additional box decoders in get_boxes#3

Closed
anayw2001 wants to merge 1 commit into
video-commander:mainfrom
anayw2001:main
Closed

Allow adding additional box decoders in get_boxes#3
anayw2001 wants to merge 1 commit into
video-commander:mainfrom
anayw2001:main

Conversation

@anayw2001

@anayw2001 anayw2001 commented Jan 17, 2026

Copy link
Copy Markdown

This PR allows for adding custom box decoders, since I couldn't find a way to use the user-defined registry, and it seems like the default registry already comes with a lot of useful parsers.

alfg added a commit that referenced this pull request Jul 4, 2026
The extension point already existed (get_boxes_with_registry +
Registry::with_decoder) but was invisible enough that PR #3 was opened
to add what was already there. No new functionality:

- add a worked doc example on get_boxes_with_registry showing the
  intended pattern: extend the default registry with a custom decoder
  (default_registry().with_decoder(...)) rather than replace it
- re-export default_registry at the crate root
- add an integration test proving a custom decoder fires through
  get_boxes_with_registry alongside the built-in decoders

Supersedes PR #3.
@alfg

alfg commented Jul 4, 2026

Copy link
Copy Markdown
Member

Thank you @anayw2001. I've added this as part of #7.

@alfg alfg closed this Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants