Skip to content

Move torchcodec/decoders/_core into torchcodec/_core #609

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

Merged
merged 7 commits into from
Apr 2, 2025

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Apr 1, 2025

The _core folder currently contains all the C++ code, the metadata and the custom ops. Part of it will also be relevant for encoding (typically FFmpeg utils, and potentially sample format conversion). As a result, this PR moves the _core folder away from decoders/.

Public APIs and import remain unchanged

There will be 2 follow-ups:

  • the test/ structure should be updated
  • the "VideoDecoder" C++ class and file names should be renamed into just "Decoder", since they are now relevant for both video and audio.

Heads up @dvrogozh that this PR will likely create merge conflicts with #606, but they should be straightforward to resolve.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 1, 2025
@NicolasHug NicolasHug marked this pull request as ready for review April 1, 2025 16:03
Copy link
Contributor

@dvrogozh dvrogozh left a comment

Choose a reason for hiding this comment

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

Thank you for heads up, @NicolasHug. Rebase of #606 should not be a problem.

@NicolasHug NicolasHug merged commit 0eb7eb0 into pytorch:main Apr 2, 2025
46 checks passed
@NicolasHug NicolasHug mentioned this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants