-
Notifications
You must be signed in to change notification settings - Fork 143
Remove crop* from VideoDecoderConfig #250
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
VideoDecoderConfig's cropHeight, cropWidth, cropTop and cropLeft are all deprecated, and need to be removed. Remaining references to crop* on VideoFrame and VideoFramePlaneInit will be removed in upcoming PRs dealing with VisibleRegions.
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.
Generally looks good.
We're missing something (not your fault): we don't actually properly use config.displayWidth|Height to set the videoFrame.displayWidth|height in the decoder output algo. To do this, we need to save the active config in a slot, similar to how we did for the encoder. @sandersdan, my read of the issue convo is we prefer config display sizing to override inband sizing if provided. Sound right?
That's correct. |
- Adds a not about enforcing reasonable upper bounds to coded{Width/Height}, and their use as hints in codec selection. - Adds a defaults for VideoDecoderConfig display{Width/Height} - Fixes a typo
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.
Updated, but did not address the point about the active config slot.
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.
Looks good, just a few mistakes that are trivial to fix, and a couple of suggestions for improved clarity. Thanks!
The "Create a VideoFrame" algorithm is referenced by both VideoDecoder and ImageDecoder, and should not live in VideoDecoder.
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.
LGTM % final nits.
Editors call: @aboba LGTM |
SHA: 0cfee37 Reason: push, by @tguilbert-google Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: 0cfee37 Reason: push, by @tguilbert-google Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: 0cfee37 Reason: push, by @tguilbert-google Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
VideoDecoderConfig's cropHeight, cropWidth, cropTop and cropLeft are all deprecated, and need to be removed.
Remaining references to crop* on VideoFrame and VideoFramePlaneInit will be removed in upcoming PRs dealing with VisibleRegions.
This should address issue #94.
Preview | Diff