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

Improve encoder parameter configuration #196

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

raccoonback
Copy link
Contributor

Motivation:
Hello,

Currently, configuring Encoder.Parameters requires the following two steps:

  1. Create an Encoder.Parameters object.
  2. Use setter methods like quality, lgwin, or mode to configure it.
    This approach can be unnecessarily complex and may lack clarity.

Modification:

In this PR, I propose adding static methods to configure Encoder.Parameters without explicitly creating an object.
This makes the configuration process more intuitive and concise.

Result:
I believe this change will enhance code usability.
I would appreciate your review!

Thanks.

@raccoonback raccoonback force-pushed the improve-encoder-parameters branch from 9d2300a to 6f3419f Compare December 30, 2024 10:17
@raccoonback raccoonback force-pushed the improve-encoder-parameters branch from 6f3419f to ed6e24d Compare December 30, 2024 10:45
@hyperxpro hyperxpro merged commit 7c3f557 into hyperxpro:main Dec 30, 2024
27 checks passed
@hyperxpro
Copy link
Owner

Thanks a lot! :)

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