Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Issue 2936393002: Add cropping to VIEEncoder to match simulcast streams resolution (Closed)

Created:
3 years, 6 months ago by ilnik
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, the sun, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add cropping to VIEEncoder to match simulcast streams resolution Detect when simulcaststreamfactory adjust resolution and remeber cropping parameters in VIEEncoder. Expose EncoderStreamFactory in webrtcvideoengine2. BUG=webrtc:7375, webrtc:6958 Review-Url: https://codereview.webrtc.org/2936393002 Cr-Commit-Position: refs/heads/master@{#18632} Committed: https://chromium.googlesource.com/external/webrtc/+/6b826ef66dbdfd1688d0b64b751c7c1ec8fb85d5

Patch Set 1 #

Total comments: 12

Patch Set 2 : Implement Sprang@ comments #

Total comments: 2

Patch Set 3 : Implement Sprang@ comments #

Total comments: 2

Patch Set 4 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -93 lines) Patch
M webrtc/media/engine/webrtcvideoengine.h View 1 chunk +22 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine.cc View 2 chunks +51 lines, -63 lines 0 comments Download
M webrtc/video/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/full_stack_tests.cc View 11 chunks +41 lines, -11 lines 0 comments Download
M webrtc/video/video_quality_test.h View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/video/video_quality_test.cc View 1 14 chunks +54 lines, -16 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 3 chunks +40 lines, -2 lines 0 comments Download
M webrtc/video/vie_encoder_unittest.cc View 1 2 2 chunks +68 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
ilnik
3 years, 6 months ago (2017-06-15 13:06:26 UTC) #7
ilnik
+magjed for changes to webrtcvideoengine.
3 years, 6 months ago (2017-06-15 13:11:05 UTC) #9
magjed_webrtc
Has anything changed in webrtcvideoengine, or have you just moved code? In that case, why?
3 years, 6 months ago (2017-06-15 19:32:10 UTC) #10
ilnik
On 2017/06/15 19:32:10, magjed_webrtc wrote: > Has anything changed in webrtcvideoengine, or have you just ...
3 years, 6 months ago (2017-06-15 19:59:16 UTC) #11
sprang_webrtc
https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/video_quality_test.cc File webrtc/video/video_quality_test.cc (right): https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/video_quality_test.cc#newcode222 webrtc/video/video_quality_test.cc:222: void SetSource(test::VideoCapturer* video_capturer, bool respectSinkWants) { nit: no camelcase ...
3 years, 6 months ago (2017-06-16 08:57:23 UTC) #12
magjed_webrtc
lgtm, assuming the code in webrtcvideoengine.cc hasn't changed.
3 years, 6 months ago (2017-06-16 09:36:28 UTC) #13
ilnik
https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/video_quality_test.cc File webrtc/video/video_quality_test.cc (right): https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/video_quality_test.cc#newcode222 webrtc/video/video_quality_test.cc:222: void SetSource(test::VideoCapturer* video_capturer, bool respectSinkWants) { On 2017/06/16 08:57:23, ...
3 years, 6 months ago (2017-06-16 11:22:49 UTC) #14
sprang_webrtc
https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/vie_encoder.cc#newcode587 webrtc/video/vie_encoder.cc:587: crop_height_ = last_frame_info_->height - highest_stream_height; On 2017/06/16 11:22:49, ilnik ...
3 years, 6 months ago (2017-06-16 11:58:47 UTC) #15
ilnik
https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2936393002/diff/1/webrtc/video/vie_encoder.cc#newcode587 webrtc/video/vie_encoder.cc:587: crop_height_ = last_frame_info_->height - highest_stream_height; On 2017/06/16 11:58:47, sprang_webrtc ...
3 years, 6 months ago (2017-06-16 12:53:30 UTC) #16
sprang_webrtc
lgtm https://codereview.webrtc.org/2936393002/diff/40001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2936393002/diff/40001/webrtc/video/vie_encoder.cc#newcode796 webrtc/video/vie_encoder.cc:796: // happen after SinkWants signaled correctly from ReconfigreEncoder. ...
3 years, 6 months ago (2017-06-16 12:58:25 UTC) #17
ilnik
https://codereview.webrtc.org/2936393002/diff/40001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2936393002/diff/40001/webrtc/video/vie_encoder.cc#newcode796 webrtc/video/vie_encoder.cc:796: // happen after SinkWants signaled correctly from ReconfigreEncoder. On ...
3 years, 6 months ago (2017-06-16 13:02:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2936393002/60001
3 years, 6 months ago (2017-06-16 13:02:34 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/external/webrtc/+/6b826ef66dbdfd1688d0b64b751c7c1ec8fb85d5
3 years, 6 months ago (2017-06-16 13:53:55 UTC) #24
kjellander_webrtc
3 years, 6 months ago (2017-06-25 19:31:47 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.webrtc.org/2960573002/ by kjellander@webrtc.org.

The reason for reverting is: Makes webrtc_perf_tests fail+timeout on Mac:
https://build.chromium.org/p/client.webrtc.perf/builders/Mac%2010.11/builds/2896

[ RUN      ] FullStackTest.SimulcastFullHdOveruse
- Uh, I'm-I'm not quite dead, sir.
- Uh, I-I think uh, I could pull through, sir.
../../webrtc/video/video_quality_test.cc:419: Failure
Expected: (frames_processed) > (last_frames_processed), actual: 591 vs 591
Analyzer stalled while waiting for test to finish..

Powered by Google App Engine
This is Rietveld 408576698