Repository navigation
Remove crop* from VideoDecoderConfig - #250
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.
chcunningham
left a comment
There was a problem hiding this comment.
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
tguilbert-google
left a comment
There was a problem hiding this comment.
Updated, but did not address the point about the active config slot.
padenot
left a comment
There was a problem hiding this comment.
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.
chcunningham
left a comment
There was a problem hiding this comment.
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