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

Feature/use avio context #14

Merged
merged 14 commits into from
Sep 29, 2024
Merged

Feature/use avio context #14

merged 14 commits into from
Sep 29, 2024

Conversation

ChristianFeldmann
Copy link
Owner

No description provided.

AVIOInputContext(std::shared_ptr<IFFmpegLibraries> ffmpegLibraries);
virtual ~AVIOInputContext() = default;

virtual std::optional<int> readData(uint8_t *buf, int buf_size) = 0;
Copy link
Owner Author

Choose a reason for hiding this comment

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

We could have gone for a more "C++" way of doing this but that would have involved more buffer allocations and possibly a lower overall performance so we will stick to the FFmpeg C like interface of a destination buffer pointer and a size.

@ChristianFeldmann ChristianFeldmann marked this pull request as ready for review September 29, 2024 09:02
@ChristianFeldmann ChristianFeldmann merged commit c270331 into main Sep 29, 2024
32 checks passed
@ChristianFeldmann ChristianFeldmann deleted the feature/useAVIOContext branch September 29, 2024 09:18
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.

1 participant