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

Issue 1709863002: Add Cast PLI support on sender side. (Closed)

Created:
4 years, 10 months ago by xjz
Modified:
4 years, 9 months ago
Reviewers:
Irfan, miu, dcheng
CC:
avayvod+watch_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jasonroberts+watch_google.com, mcasas+watch_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Cast PLI support on sender side. Main changes when receive a PLI message: 1. Request encoding a Key frame (for now keep the same resolution and bitrate). 2. Clear sending remaining frames before sending out the key frame. BUG=589934 Committed: https://crrev.com/b9733f71a04374f7ec237ed01be627a9b47950dc Cr-Commit-Position: refs/heads/master@{#381546}

Patch Set 1 : #

Total comments: 30

Patch Set 2 : Separate Pli message from Cast message. #

Total comments: 16

Patch Set 3 : Addressed comments. #

Total comments: 6

Patch Set 4 : Rebased and addressed comments. #

Total comments: 19

Patch Set 5 : Addressed dcheng's comments. #

Patch Set 6 : Rebase #

Total comments: 4

Patch Set 7 : Address dcheng's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+542 lines, -239 lines) Patch
M chrome/browser/media/cast_transport_host_filter.h View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter.cc View 1 2 3 4 5 6 5 chunks +31 lines, -16 lines 0 comments Download
M chrome/common/cast_messages.h View 1 2 3 4 5 3 chunks +16 lines, -3 lines 0 comments Download
M chrome/renderer/media/cast_ipc_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/media/cast_ipc_dispatcher.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.h View 1 2 3 4 5 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.cc View 1 2 3 4 5 5 chunks +29 lines, -8 lines 0 comments Download
M media/cast/net/cast_transport_sender.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl.h View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl.cc View 1 2 3 4 5 5 chunks +15 lines, -4 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl_unittest.cc View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M media/cast/net/mock_cast_transport_sender.h View 1 2 3 4 5 2 chunks +11 lines, -8 lines 0 comments Download
M media/cast/net/rtcp/rtcp_builder.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/net/rtcp/rtcp_builder.cc View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M media/cast/net/rtcp/rtcp_builder_unittest.cc View 1 2 3 4 5 12 chunks +22 lines, -19 lines 0 comments Download
M media/cast/net/rtcp/rtcp_defines.h View 1 2 3 4 5 4 chunks +10 lines, -1 line 0 comments Download
M media/cast/net/rtcp/rtcp_defines.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M media/cast/net/rtcp/rtcp_unittest.cc View 1 2 3 4 5 11 chunks +26 lines, -7 lines 0 comments Download
M media/cast/net/rtcp/rtcp_utility.h View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M media/cast/net/rtcp/rtcp_utility.cc View 1 2 3 4 5 5 chunks +32 lines, -3 lines 0 comments Download
M media/cast/net/rtcp/rtcp_utility_unittest.cc View 1 2 3 17 chunks +96 lines, -74 lines 0 comments Download
M media/cast/net/rtcp/sender_rtcp_session.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M media/cast/net/rtcp/sender_rtcp_session.cc View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M media/cast/net/rtcp/test_rtcp_packet_builder.h View 1 2 3 1 chunk +12 lines, -11 lines 0 comments Download
M media/cast/net/rtcp/test_rtcp_packet_builder.cc View 1 2 3 8 chunks +33 lines, -27 lines 0 comments Download
M media/cast/net/rtp/cast_message_builder_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/cast/receiver/frame_receiver.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/receiver/frame_receiver.cc View 1 2 3 4 5 4 chunks +7 lines, -4 lines 0 comments Download
M media/cast/receiver/frame_receiver_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M media/cast/sender/audio_sender.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M media/cast/sender/frame_sender.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M media/cast/sender/frame_sender.cc View 1 2 3 4 5 3 chunks +18 lines, -1 line 0 comments Download
M media/cast/sender/video_sender.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M media/cast/sender/video_sender.cc View 1 2 3 4 3 chunks +25 lines, -4 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 1 2 3 12 chunks +49 lines, -12 lines 0 comments Download
M media/cast/test/cast_benchmarks.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
xjz
PTAL. Add cast PLI message support and some unit tests.
4 years, 9 months ago (2016-02-25 21:28:07 UTC) #5
miu
https://codereview.chromium.org/1709863002/diff/40001/media/cast/net/rtcp/receiver_rtcp_session.cc File media/cast/net/rtcp/receiver_rtcp_session.cc (right): https://codereview.chromium.org/1709863002/diff/40001/media/cast/net/rtcp/receiver_rtcp_session.cc#newcode101 media/cast/net/rtcp/receiver_rtcp_session.cc:101: const RtcpCastMessage* cast_message, Instead of including |picture_loss_indicator| in |cast_message|, ...
4 years, 9 months ago (2016-02-26 23:36:07 UTC) #6
xjz
PTAL https://codereview.chromium.org/1709863002/diff/40001/media/cast/net/rtcp/receiver_rtcp_session.cc File media/cast/net/rtcp/receiver_rtcp_session.cc (right): https://codereview.chromium.org/1709863002/diff/40001/media/cast/net/rtcp/receiver_rtcp_session.cc#newcode101 media/cast/net/rtcp/receiver_rtcp_session.cc:101: const RtcpCastMessage* cast_message, On 2016/02/26 23:36:06, miu wrote: ...
4 years, 9 months ago (2016-02-27 05:53:32 UTC) #7
Irfan
https://codereview.chromium.org/1709863002/diff/60001/media/cast/net/rtcp/rtcp_utility_unittest.cc File media/cast/net/rtcp/rtcp_utility_unittest.cc (right): https://codereview.chromium.org/1709863002/diff/60001/media/cast/net/rtcp/rtcp_utility_unittest.cc#newcode348 media/cast/net/rtcp/rtcp_utility_unittest.cc:348: RtcpParser parser1(kSourceSsrc, kSenderSsrc); I find kSourceSssrc and kSenderSsrc unclear. ...
4 years, 9 months ago (2016-02-29 16:01:24 UTC) #8
xjz
PTAL https://codereview.chromium.org/1709863002/diff/60001/media/cast/net/rtcp/rtcp_utility_unittest.cc File media/cast/net/rtcp/rtcp_utility_unittest.cc (right): https://codereview.chromium.org/1709863002/diff/60001/media/cast/net/rtcp/rtcp_utility_unittest.cc#newcode348 media/cast/net/rtcp/rtcp_utility_unittest.cc:348: RtcpParser parser1(kSourceSsrc, kSenderSsrc); On 2016/02/29 16:01:23, Irfan wrote: ...
4 years, 9 months ago (2016-02-29 19:48:59 UTC) #9
miu
https://codereview.chromium.org/1709863002/diff/80001/media/cast/sender/video_sender.cc File media/cast/sender/video_sender.cc (right): https://codereview.chromium.org/1709863002/diff/80001/media/cast/sender/video_sender.cc#newcode44 media/cast/sender/video_sender.cc:44: // This is the minimum duration in milliseconds that ...
4 years, 9 months ago (2016-02-29 23:00:45 UTC) #10
xjz
PTAL https://codereview.chromium.org/1709863002/diff/80001/media/cast/sender/video_sender.cc File media/cast/sender/video_sender.cc (right): https://codereview.chromium.org/1709863002/diff/80001/media/cast/sender/video_sender.cc#newcode44 media/cast/sender/video_sender.cc:44: // This is the minimum duration in milliseconds ...
4 years, 9 months ago (2016-03-01 01:14:28 UTC) #12
miu
lgtm
4 years, 9 months ago (2016-03-01 09:50:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1709863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1709863002/120001
4 years, 9 months ago (2016-03-01 17:35:15 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/151946)
4 years, 9 months ago (2016-03-01 17:46:23 UTC) #17
xjz
dcheng: PTAL. Need Owner's approval on chrome/common/cast_messages.h.
4 years, 9 months ago (2016-03-01 19:00:55 UTC) #19
dcheng
https://codereview.chromium.org/1709863002/diff/120001/chrome/common/cast_messages.h File chrome/common/cast_messages.h (right): https://codereview.chromium.org/1709863002/diff/120001/chrome/common/cast_messages.h#newcode153 chrome/common/cast_messages.h:153: IPC_MESSAGE_CONTROL2(CastMsg_Pli, int32_t /* channel_id */, uint32_t /* ssrc */) ...
4 years, 9 months ago (2016-03-01 23:44:13 UTC) #20
xjz
PTAL https://codereview.chromium.org/1709863002/diff/120001/chrome/common/cast_messages.h File chrome/common/cast_messages.h (right): https://codereview.chromium.org/1709863002/diff/120001/chrome/common/cast_messages.h#newcode153 chrome/common/cast_messages.h:153: IPC_MESSAGE_CONTROL2(CastMsg_Pli, int32_t /* channel_id */, uint32_t /* ssrc ...
4 years, 9 months ago (2016-03-02 04:24:17 UTC) #21
dcheng
https://codereview.chromium.org/1709863002/diff/120001/chrome/renderer/media/cast_transport_sender_ipc.cc File chrome/renderer/media/cast_transport_sender_ipc.cc (right): https://codereview.chromium.org/1709863002/diff/120001/chrome/renderer/media/cast_transport_sender_ipc.cc#newcode125 chrome/renderer/media/cast_transport_sender_ipc.cc:125: params.pli_message.reset( On 2016/03/02 at 04:24:17, xjz wrote: > On ...
4 years, 9 months ago (2016-03-02 07:41:24 UTC) #22
xjz
On 2016/03/02 07:41:24, dcheng wrote: > https://codereview.chromium.org/1709863002/diff/120001/chrome/renderer/media/cast_transport_sender_ipc.cc > File chrome/renderer/media/cast_transport_sender_ipc.cc (right): > > https://codereview.chromium.org/1709863002/diff/120001/chrome/renderer/media/cast_transport_sender_ipc.cc#newcode125 > ...
4 years, 9 months ago (2016-03-02 18:35:08 UTC) #23
xjz
On 2016/03/02 18:35:08, xjz wrote: > On 2016/03/02 07:41:24, dcheng wrote: > > > https://codereview.chromium.org/1709863002/diff/120001/chrome/renderer/media/cast_transport_sender_ipc.cc ...
4 years, 9 months ago (2016-03-02 22:05:17 UTC) #24
xjz
PTAL dcheng: The previous two concerns are not applicable after the refactor in another CL. ...
4 years, 9 months ago (2016-03-16 00:25:50 UTC) #26
dcheng
lgtm https://codereview.chromium.org/1709863002/diff/180001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1709863002/diff/180001/chrome/browser/media/cast_transport_host_filter.cc#newcode305 chrome/browser/media/cast_transport_host_filter.cc:305: const ::media::cast::RtcpPliMessage& pli_message) { Nit: no :: for ...
4 years, 9 months ago (2016-03-16 01:39:24 UTC) #27
xjz
Addressed comments. https://codereview.chromium.org/1709863002/diff/180001/chrome/browser/media/cast_transport_host_filter.cc File chrome/browser/media/cast_transport_host_filter.cc (right): https://codereview.chromium.org/1709863002/diff/180001/chrome/browser/media/cast_transport_host_filter.cc#newcode305 chrome/browser/media/cast_transport_host_filter.cc:305: const ::media::cast::RtcpPliMessage& pli_message) { On 2016/03/16 01:39:24, ...
4 years, 9 months ago (2016-03-16 17:12:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1709863002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1709863002/200001
4 years, 9 months ago (2016-03-16 20:31:04 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 9 months ago (2016-03-16 21:17:36 UTC) #33
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 21:18:43 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b9733f71a04374f7ec237ed01be627a9b47950dc
Cr-Commit-Position: refs/heads/master@{#381546}

Powered by Google App Engine
This is Rietveld 408576698