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

Issue 2744013002: Updates to VCMDecodedFrameCallback, VideoReceiver and a few related classes/tests. (Closed)

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

Description

Updates to VCMDecodedFrameCallback, VideoReceiver and a few related classes/tests. * The _receiveCallback member of VCMDecodedFrameCallback does actually not require locking now that the threading model is slightly clearer. Documentation and checks have been added. * UserReceiveCallback() never returns null and must always be called on the decoder thread. Checks have been added and the two test suites that were failing to set this callback, have been fixed and a new mock class added. (looks like sakal@ may have hit some issues with flaky tests there). * Changed VcmPayloadSink to use move semantics which I suspect was the intention at the time the code was written (when we didn't have move semantics). * Added thread checker to a couple of classes and started adding thread checks for known behavior. There's more to be done there. * Remove the |_decoder| member variable in VideoReceiver. It is not needed and as it could be used, left us open to a race. * TODOs added for places where we can reduce locking. I suspect that we can get away with not needing a lock around _codecDataBase in VideoReceiver once we've got a clear picture of the threading model and ensured that all adhere to it. BUG=webrtc:7328 Review-Url: https://codereview.webrtc.org/2744013002 Cr-Commit-Position: refs/heads/master@{#17226} Committed: https://chromium.googlesource.com/external/webrtc/+/d0a71ba1ae69f73025e7381fa7e5593b3a0f7833

Patch Set 1 #

Patch Set 2 : More comments checks, remove _decoder #

Patch Set 3 : Update checks and docs #

Patch Set 4 : Add mock for receive callback and set it for a few tests that didn't #

Patch Set 5 : Format + assert->DCHECK and require callback in decode #

Total comments: 8

Patch Set 6 : Rebase #

Patch Set 7 : Address comments and replace a few assert calls with RTC_DCHECK #

Total comments: 2

Patch Set 8 : Update DCHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -98 lines) Patch
M webrtc/modules/video_coding/codec_database.cc View 1 2 3 4 8 chunks +7 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/generic_decoder.h View 1 2 3 4 5 6 2 chunks +30 lines, -22 lines 0 comments Download
M webrtc/modules/video_coding/generic_decoder.cc View 1 2 3 4 4 chunks +14 lines, -26 lines 0 comments Download
M webrtc/modules/video_coding/include/mock/mock_vcm_callbacks.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/test/vcm_payload_sink_factory.cc View 1 2 3 4 5 7 chunks +24 lines, -25 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.h View 1 2 3 4 4 chunks +6 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.cc View 1 2 3 4 5 6 7 6 chunks +8 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_robustness_unittest.cc View 1 2 3 4 3 chunks +12 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/video_receiver.cc View 1 2 3 4 5 6 12 chunks +30 lines, -6 lines 0 comments Download
M webrtc/modules/video_coding/video_receiver_unittest.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/video/video_stream_decoder.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (33 generated)
tommi
More comments checks, remove _decoder
3 years, 9 months ago (2017-03-10 20:34:16 UTC) #5
tommi
Update checks and docs
3 years, 9 months ago (2017-03-10 20:45:28 UTC) #10
tommi
Add mock for receive callback and set it for a few tests that didn't
3 years, 9 months ago (2017-03-10 23:13:37 UTC) #15
tommi
Format + assert->DCHECK and require callback in decode
3 years, 9 months ago (2017-03-10 23:32:48 UTC) #20
tommi
3 years, 9 months ago (2017-03-11 10:26:41 UTC) #30
stefan-webrtc
https://codereview.webrtc.org/2744013002/diff/80001/webrtc/modules/video_coding/generic_decoder.h File webrtc/modules/video_coding/generic_decoder.h (right): https://codereview.webrtc.org/2744013002/diff/80001/webrtc/modules/video_coding/generic_decoder.h#newcode59 webrtc/modules/video_coding/generic_decoder.h:59: rtc::CriticalSection lock_; Move this down to the member it ...
3 years, 9 months ago (2017-03-11 12:57:37 UTC) #31
tommi
Rebase
3 years, 9 months ago (2017-03-11 15:11:00 UTC) #32
tommi
Address comments and replace a few assert calls with RTC_DCHECK
3 years, 9 months ago (2017-03-11 15:23:51 UTC) #33
tommi
https://codereview.webrtc.org/2744013002/diff/80001/webrtc/modules/video_coding/generic_decoder.h File webrtc/modules/video_coding/generic_decoder.h (right): https://codereview.webrtc.org/2744013002/diff/80001/webrtc/modules/video_coding/generic_decoder.h#newcode59 webrtc/modules/video_coding/generic_decoder.h:59: rtc::CriticalSection lock_; On 2017/03/11 12:57:37, stefan-webrtc wrote: > Move ...
3 years, 9 months ago (2017-03-11 15:24:03 UTC) #34
tommi
ping .. btw I've already prepared a CL to remove ReceiveCodec: https://codereview.webrtc.org/2741853008/
3 years, 9 months ago (2017-03-13 22:05:54 UTC) #39
stefan-webrtc
lgtm https://codereview.webrtc.org/2744013002/diff/120001/webrtc/modules/video_coding/video_coding_impl.cc File webrtc/modules/video_coding/video_coding_impl.cc (right): https://codereview.webrtc.org/2744013002/diff/120001/webrtc/modules/video_coding/video_coding_impl.cc#newcode103 webrtc/modules/video_coding/video_coding_impl.cc:103: RTC_DCHECK(receiver_time >= 0); GE
3 years, 9 months ago (2017-03-14 09:58:17 UTC) #40
tommi
Update DCHECKs
3 years, 9 months ago (2017-03-14 10:52:01 UTC) #41
tommi
https://codereview.webrtc.org/2744013002/diff/120001/webrtc/modules/video_coding/video_coding_impl.cc File webrtc/modules/video_coding/video_coding_impl.cc (right): https://codereview.webrtc.org/2744013002/diff/120001/webrtc/modules/video_coding/video_coding_impl.cc#newcode103 webrtc/modules/video_coding/video_coding_impl.cc:103: RTC_DCHECK(receiver_time >= 0); On 2017/03/14 09:58:17, stefan-webrtc wrote: > ...
3 years, 9 months ago (2017-03-14 10:52:11 UTC) #42
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/2744013002/140001
3 years, 9 months ago (2017-03-14 10:52:22 UTC) #45
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 11:16:26 UTC) #48
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/external/webrtc/+/d0a71ba1ae69f73025e7381fa...

Powered by Google App Engine
This is Rietveld 408576698