-
Notifications
You must be signed in to change notification settings - Fork 78
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
VideoFrame
should provide its color format
#317
Comments
True. Actual format is a higher level information, VideoFrame is not capable to store that info. I'm not seeing a compatible way to do that while still keeping VideoInfo pixel_type in a parallel way. You must probably stuff the format info into a frame property as well. |
Why would
What do you mean by compatible and parallel? Where would be the problem if |
Unfornately there are cases where the same VideoFrame is changing its pixel_type format. Cases which I remember of:
The other cases:
Other notices:
With these remarks, it probably will break nothing and can be kept |
(This discussion should've been in the PR.) I complied with every point.
These functions themselves weren't the best places to change this behavior. I did it in the
Only for those not in the codebase, if my approach to change plugins was sufficient:
|
A
VideoFrame
should bring with it the necessary data to handle it. You can already query its width (advancement- and validity-wise) as well as height. You should also be able to query the information what exactly the bytes describe, i.e., the color format.Often, you also have access to the
IClip
to get the color format from. But when retrieving aVideoFrame
withenv->propGetFrame()
, there is no defined relationship to anIClip
.Not being able to get the associated color format when getting a frame out of a frame prop is a problem for my Rust crate.
The text was updated successfully, but these errors were encountered: