Skip to content
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

Specify how media is centered, cropped, and scaled. Fixes #305 #1023

Merged
merged 4 commits into from Mar 2, 2017

Conversation

fluffy
Copy link
Contributor

@fluffy fluffy commented Feb 11, 2017

No description provided.

@stefhak
Copy link
Contributor

stefhak commented Feb 11, 2017

LGTM. AFAICR this is what we agreed in Lisbon.

@aboba
Copy link
Contributor

aboba commented Feb 16, 2017

LGTM.

webrtc.html Outdated
the desired size, then finally cropped to the destination
size. The video remains centered while scaling and cropping. For
example, if the source video was 1280 by 720, and the max size
that could be send was 640 by 480, the video would be scaled
Copy link
Member

Choose a reason for hiding this comment

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

sent

webrtc.html Outdated
@@ -4971,6 +4971,23 @@ <h2 id="sec.cert-mgmt">Certificate Management</h2>
encoded and transmitted to a remote peer. When <code>setParameters</code>
is called on an <code><a>RTCRtpSender</a></code> object, the encoding is
changed appropriately.</p>

<p>When sending media, the sender may need to rescale or
resample the media to meet various constraints including the
Copy link
Member

Choose a reason for hiding this comment

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

Maybe s/constraints/requirements/ to avoid confusion with mediacapture constraints?

@stefhak
Copy link
Contributor

stefhak commented Feb 23, 2017

@fluffy can you take a look at the comments?

@fluffy
Copy link
Contributor Author

fluffy commented Mar 1, 2017

Agree with Jan-ivar, made all his suggested changes. Thanks

webrtc.html Outdated
down by 1.5 and 160 columns of pixels on both the right and left
sides of the source video would be cropped off. This algorithm
is designed to minimize occurrence of images with with letter
box or or pillow boxing. The media MUST never be upscaled to
Copy link
Contributor

Choose a reason for hiding this comment

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

MUST NOT is better than "MUST never".

webrtc.html Outdated
sides of the source video would be cropped off. This algorithm
is designed to minimize occurrence of images with with letter
box or or pillow boxing. The media MUST never be upscaled to
create fake samples data that was did not actually occur in the
Copy link
Contributor

Choose a reason for hiding this comment

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

Grammar, better: "to create fake data that did not occur in the input source."

@fluffy
Copy link
Contributor Author

fluffy commented Mar 1, 2017

Made the changes suggested by HTA. Thanks

@aboba
Copy link
Contributor

aboba commented Mar 1, 2017

Based on discussion at the virtual interim, I believe this PR is ready to merge.

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.

None yet

5 participants