-
Notifications
You must be signed in to change notification settings - Fork 65
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 per-frame iterator #46
Comments
Thank you for taking the time to open an issue!
Would
That sounds like it could be useful indeed, not just for frames but for arbitrary slices, to save the overhead of checking the result after every sample. Even more general would be to accept an iterator rather than a slice. I added |
That's what I'm doing right now, copying each sample of the frame into a pre-allocated slice on each iteration. That's a bit annoying and seems inefficient, but it works. I can see the problem with |
Currently there is only the samples iterator for reading files. It would be useful to have a similar iterator that gives a whole frame per iteration (i.e. one sample per channel in a slice) as that's usually the unit of processing.
A similar feature for the writer would also seem useful.
The text was updated successfully, but these errors were encountered: