-
Notifications
You must be signed in to change notification settings - Fork 143
Add refcounting semantics to VideoFrame #167
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs clarification about ownership, and other fixes, but in general is what we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@padenot , similar to the audio issue, I think we at least have agreement on the API shape and its intended meaning. Would you mind approving the merge here and doing follow up issues for any lingering wording/style concern? |
Replaces the ImageBitmap constructor with more generic constructor for CanvasImageSource. VideoFrame is itself a CanvasImageSource. Fixes #158
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @padenot - I'll send a fix for the nit. Otherwise, we've agreed to merge and handle remainder in follow ups.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, all comments addressed
…decs into videoframe_clone_close
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for merging now, thanks!
This one depends on #162, so I'll merge it as soon as that one goes in. |
…eoframe_from_canvasimagesource
Construct VideoFrame from CanvasImageSource (including VideoFrame)
I'll merge back to main manually. |
Making it symmetric w/ AudioFrame (PR #162)
Adds clone/close
Adds [[resource reference]]
Updates constructors accordingly (and fix cruft/obsolete steps).
Removes destroy (replaced by close).
Fixes #129
Notes issues #165 and #166 for follow up.
Preview | Diff