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

Add option parsing for rav1e and SVT-AV1. #2126

Merged
merged 3 commits into from
Apr 22, 2024
Merged

Conversation

vrabaud
Copy link
Collaborator

@vrabaud vrabaud commented Apr 19, 2024

This fixes #2108

Documenting the options seems tedious: rav1e has like 15 (cf usr/include/rav1e/rav1e.h), SVT-AV1, a lot more: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Source/Lib/Encoder/Globals/EbEncSettings.c?ref_type=heads#L1925)

@vrabaud vrabaud requested a review from y-guyon April 19, 2024 12:39
avifCodecSpecificOption * entry = &codec->csOptions->entries[i];
if (rav1e_config_parse(rav1eConfig, entry->key, entry->value) < 0) {
avifDiagnosticsPrintf(codec->diag, "Invalid value for %s: %s.", entry->key, entry->value);
return AVIF_RESULT_INVALID_CODEC_SPECIFIC_OPTION;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No goto cleanup necessary? Same for svt.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@vrabaud vrabaud merged commit ca071c4 into AOMediaCodec:main Apr 22, 2024
11 checks passed
@vrabaud vrabaud deleted the options branch April 22, 2024 12:25
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.

[Function Request] avifenc supports svt and rav1e encoder options key-value
2 participants