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

New VTEnc API #31

Merged
merged 12 commits into from
Feb 25, 2022
Merged

New VTEnc API #31

merged 12 commits into from
Feb 25, 2022

Conversation

vteromero
Copy link
Owner

This is a redesign of the VTEnc API.

Main changes:

  • Removes VtencEncoder and VtencDecoder structures, which are replaced with the opaque structure vtenc.
  • Removes vtenc_encoder_init and vtenc_decoder_init functions.
  • Adds vtenc_create and vtenc_destroy functions to create and destroy the handler.
  • Adds vtenc_config function, which allows you to set the encoding parameters after the handler creation. This function also opens the possibility of setting other configuration values in the future.
  • Adds vtenc_encoded_size function to get the size of the encoded output after calling a vtenc_encode* function.
  • Updates signatures of vtenc_encode* and vtenc_decode* functions to take a vtenc handler and return an integer with a result code.

@vteromero vteromero merged commit fa06cd4 into master Feb 25, 2022
@vteromero vteromero deleted the new-api branch February 25, 2022 15:37
@vteromero vteromero added this to the v0.3.0 milestone Mar 1, 2022
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.

None yet

1 participant