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

Support for reading movies with frame headers #40

Closed
wants to merge 3 commits into from

Conversation

sg-s
Copy link
Contributor

@sg-s sg-s commented Jan 15, 2024

what

this PR supports reading movies with frame headers, which means that it can now read multi-plane and multi-color movies

technical discussion

the goal of this repo has always been to act and behave like the IDPS API as much as possible. with the IDPS API, you can read multi-color or -plane movies directly. the way these movies are organized is that frames from subsequent channels/planes are simply stored one after the other, and you can simply read them like a normal movie. of course, this is not very useful, because you're mixing up channels/planes.

the IDPS API provides a deinterleave function, which is not part of this PR. the goal of this PR is to simply match what the IDPS API does with multi-color or mulit-plane movies

checklist

  • read multi-plane movies
  • read multi-color movies
  • documentation updates

testing

  • added test for multi-plane movie
  • added test for multi-color movie

@sg-s sg-s requested a review from a team as a code owner January 15, 2024 18:55
@sg-s sg-s linked an issue Jan 15, 2024 that may be closed by this pull request
@sg-s sg-s self-assigned this Jan 15, 2024
Copy link
Contributor

@nosheen-adil nosheen-adil left a comment

Choose a reason for hiding this comment

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

Looks good to me, found one small issue with a suggested fix.

While testing this I discovered a bug. The api does not support dropped frames. If I try to the read the last frame of a movie with dropped frames, I get an error, because the api is not correctly accounting for the actual number of frames stored on disk. I'll create a follow up issue for this.

isx/__init__.py Outdated Show resolved Hide resolved
@nosheen-adil
Copy link
Contributor

Issue created for the dropped frames issue here: #42

@sg-s
Copy link
Contributor Author

sg-s commented Jan 16, 2024

@nosheen-adil thank you!

While testing this I discovered a bug. The api does not support dropped frames.

that is huge, FYI @Zachary-Ip

@sg-s sg-s removed their assignment Feb 1, 2024
@sg-s sg-s closed this Apr 16, 2024
@nosheen-adil nosheen-adil deleted the 39-support-for-multicolor-movies branch October 9, 2024 14:40
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.

Support for multicolor movies
3 participants