Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Use builder pattern and enable stream selection #33

Closed
wants to merge 9 commits into from

Conversation

EvysGarden
Copy link

@EvysGarden EvysGarden commented Jan 6, 2024

I've added a builder and removed all decoder::new... functions. The builder has a function DocoderBuilder::reader_stream_index(selector: SelectorFn) which can be used to select a stream as requested in #31 .

Example

let mut decoder = DecoderBuilder::new(&source, None)?
    .resize(Resize::Fit(400, 400))
    .reader_stream_index(|_| 6)
    .build?;

What needs to be done

  • Add documentation

@gerwin3
Copy link
Contributor

gerwin3 commented Mar 18, 2024

closing since this will be part of #37

@gerwin3 gerwin3 closed this Mar 18, 2024
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