Skip to content

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

Merged
merged 12 commits into from
May 26, 2021

Conversation

tguilbert-google
Copy link
Member

@tguilbert-google tguilbert-google commented May 19, 2021

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

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.
@sandersdan
Copy link
Contributor

Note: regions proposal is #157, PR is #208.

Copy link
Collaborator

@chcunningham chcunningham left a 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?

@sandersdan
Copy link
Contributor

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
Copy link
Member Author

@tguilbert-google tguilbert-google left a 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.

Copy link
Collaborator

@padenot padenot left a 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.
Copy link
Collaborator

@chcunningham chcunningham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % final nits.

@chcunningham
Copy link
Collaborator

Editors call: @aboba LGTM

@tguilbert-google tguilbert-google merged commit 0cfee37 into w3c:main May 26, 2021
@tguilbert-google tguilbert-google deleted the deprecate_crop branch May 26, 2021 22:22
github-actions bot added a commit that referenced this pull request May 26, 2021
SHA: 0cfee37
Reason: push, by @tguilbert-google

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request May 26, 2021
SHA: 0cfee37
Reason: push, by @tguilbert-google

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request May 26, 2021
SHA: 0cfee37
Reason: push, by @tguilbert-google

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants