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

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed)

Created:
6 years, 7 months ago by miu
Modified:
6 years, 7 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, fischman+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, mcasas+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, hguihot+watch_chromium.org, miu+watch_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Visibility:
Public.

Description

[Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame Replace the use of struct EncodedAudioFrame and struct EncodedVideoFrame with a unified struct EncodedFrame throughout src/media/cast. This allows for later merging of duplicated code throughout the stack. The new struct drops the unused codec data member and adds a new data member, reference_time. codec is unnecessary because this is known in all contexts where an EncodedFrame is produced/consumed. The new reference_time data member is added because virtually all interfaces that passed around an EncodedXXXFrame were also passing the frame's reference_time alongside. Testing: Updated and ran all cast_unittests, plus manual testing between multiple Cast sender and receiver implementations. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271594

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed hclam@'s first round comments. Fixed chrome unit_tests compiles. #

Total comments: 20

Patch Set 3 : Relationship-->Dependency, and other comments addressed. #

Patch Set 4 : Rebase/resolve, plus added back UNKNOWN_DEPENDENCY in enum. #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+466 lines, -769 lines) Patch
M chrome/browser/media/cast_transport_host_filter.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter_unittest.cc View 1 2 3 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/common/cast_messages.h View 1 2 3 3 chunks +11 lines, -17 lines 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.cc View 1 2 3 1 chunk +4 lines, -10 lines 0 comments Download
M media/cast/audio_receiver/audio_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/audio_receiver/audio_decoder.cc View 4 chunks +4 lines, -15 lines 0 comments Download
M media/cast/audio_receiver/audio_decoder_unittest.cc View 1 2 4 chunks +9 lines, -10 lines 0 comments Download
M media/cast/audio_receiver/audio_receiver.h View 3 chunks +5 lines, -6 lines 0 comments Download
M media/cast/audio_receiver/audio_receiver.cc View 4 chunks +9 lines, -11 lines 0 comments Download
M media/cast/audio_receiver/audio_receiver_unittest.cc View 3 chunks +4 lines, -6 lines 0 comments Download
M media/cast/audio_sender/audio_encoder.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/audio_sender/audio_encoder.cc View 1 2 5 chunks +11 lines, -10 lines 0 comments Download
M media/cast/audio_sender/audio_encoder_unittest.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M media/cast/audio_sender/audio_sender.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M media/cast/audio_sender/audio_sender.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M media/cast/audio_sender/audio_sender_unittest.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M media/cast/cast_receiver.h View 1 chunk +6 lines, -11 lines 0 comments Download
M media/cast/cast_receiver_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/framer/frame_buffer.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M media/cast/framer/frame_buffer.cc View 1 2 2 chunks +16 lines, -31 lines 0 comments Download
M media/cast/framer/frame_buffer_unittest.cc View 1 2 2 chunks +10 lines, -10 lines 0 comments Download
M media/cast/framer/framer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/framer/framer.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M media/cast/framer/framer_unittest.cc View 1 2 21 chunks +50 lines, -15 lines 0 comments Download
D media/cast/test/encode_decode_test.cc View 1 chunk +0 lines, -136 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 4 chunks +3 lines, -6 lines 0 comments Download
M media/cast/transport/cast_transport_config.h View 1 2 3 2 chunks +58 lines, -16 lines 0 comments Download
M media/cast/transport/cast_transport_config.cc View 1 2 3 1 chunk +4 lines, -8 lines 0 comments Download
M media/cast/transport/cast_transport_sender.h View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl.h View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl.cc View 1 2 3 1 chunk +4 lines, -6 lines 0 comments Download
D media/cast/transport/rtp_sender/mock_rtp_sender.h View 1 chunk +0 lines, -35 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h View 1 2 3 2 chunks +1 line, -16 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc View 1 2 3 2 chunks +17 lines, -49 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_sender.h View 1 2 3 1 chunk +1 line, -7 lines 0 comments Download
M media/cast/transport/rtp_sender/rtp_sender.cc View 1 2 3 1 chunk +2 lines, -10 lines 0 comments Download
M media/cast/transport/transport_audio_sender.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M media/cast/transport/transport_audio_sender.cc View 1 2 3 2 chunks +10 lines, -10 lines 0 comments Download
M media/cast/transport/transport_video_sender.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M media/cast/transport/transport_video_sender.cc View 1 2 3 2 chunks +12 lines, -19 lines 0 comments Download
D media/cast/video_receiver/codecs/vp8/vp8_decoder.h View 1 chunk +0 lines, -45 lines 0 comments Download
M media/cast/video_receiver/video_decoder.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/cast/video_receiver/video_decoder.cc View 4 chunks +3 lines, -12 lines 0 comments Download
M media/cast/video_receiver/video_decoder_unittest.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M media/cast/video_receiver/video_receiver.h View 3 chunks +5 lines, -6 lines 0 comments Download
M media/cast/video_receiver/video_receiver.cc View 5 chunks +10 lines, -11 lines 0 comments Download
M media/cast/video_receiver/video_receiver_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M media/cast/video_sender/codecs/vp8/vp8_encoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/video_sender/codecs/vp8/vp8_encoder.cc View 1 2 2 chunks +20 lines, -21 lines 0 comments Download
M media/cast/video_sender/external_video_encoder.cc View 1 2 2 chunks +14 lines, -17 lines 0 comments Download
M media/cast/video_sender/external_video_encoder_unittest.cc View 1 2 6 chunks +18 lines, -18 lines 0 comments Download
M media/cast/video_sender/fake_software_video_encoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/video_sender/fake_software_video_encoder.cc View 1 2 3 4 1 chunk +12 lines, -7 lines 0 comments Download
M media/cast/video_sender/software_video_encoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/video_sender/video_encoder.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl.cc View 1 chunk +8 lines, -9 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl_unittest.cc View 1 2 8 chunks +27 lines, -26 lines 0 comments Download
M media/cast/video_sender/video_sender.h View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M media/cast/video_sender/video_sender.cc View 1 2 3 4 3 chunks +9 lines, -11 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 1 2 3 7 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
miu
hclam: PTAL. This is all pretty simple stuff here. Just take a look at cast_transport_config.h ...
6 years, 7 months ago (2014-05-15 02:46:09 UTC) #1
Alpha Left Google
This is a very big patch. This is the first pass and I'm calling out ...
6 years, 7 months ago (2014-05-15 22:11:22 UTC) #2
miu
hclam: Addressed you first round comments. hubbe: Could you take a look at the changes ...
6 years, 7 months ago (2014-05-16 04:27:25 UTC) #3
hubbe
Mostly good, a few minor issues. Since there is some naming involved, let's make sure ...
6 years, 7 months ago (2014-05-16 17:13:19 UTC) #4
Alpha Left Google
Looking good. Some nits and clarification of comments. https://codereview.chromium.org/288103002/diff/10001/media/cast/transport/cast_transport_config.h File media/cast/transport/cast_transport_config.h (right): https://codereview.chromium.org/288103002/diff/10001/media/cast/transport/cast_transport_config.h#newcode89 media/cast/transport/cast_transport_config.h:89: enum ...
6 years, 7 months ago (2014-05-16 18:35:21 UTC) #5
miu
hclam and hubbe: Ready for another look. Thanks. https://codereview.chromium.org/288103002/diff/10001/media/cast/test/end2end_unittest.cc File media/cast/test/end2end_unittest.cc (right): https://codereview.chromium.org/288103002/diff/10001/media/cast/test/end2end_unittest.cc#newcode322 media/cast/test/end2end_unittest.cc:322: reinterpret_cast<int16*>(audio_frame->mutable_bytes()); ...
6 years, 7 months ago (2014-05-16 21:28:46 UTC) #6
Alpha Left Google
LGTM.
6 years, 7 months ago (2014-05-17 01:00:37 UTC) #7
hubbe
LGTM https://codereview.chromium.org/288103002/diff/10001/media/cast/transport/cast_transport_config.h File media/cast/transport/cast_transport_config.h (right): https://codereview.chromium.org/288103002/diff/10001/media/cast/transport/cast_transport_config.h#newcode91 media/cast/transport/cast_transport_config.h:91: UNKNOWN_RELATIONSHIP, On 2014/05/16 21:28:46, miu wrote: > On ...
6 years, 7 months ago (2014-05-19 17:54:42 UTC) #8
miu
jorgelo: PTAL at chrome/common/cast_messages.h.
6 years, 7 months ago (2014-05-19 19:28:50 UTC) #9
Jorge Lucangeli Obes
cast_messages.h LGTM
6 years, 7 months ago (2014-05-19 23:13:34 UTC) #10
miu
The CQ bit was checked by miu@chromium.org
6 years, 7 months ago (2014-05-20 01:51:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/288103002/110001
6 years, 7 months ago (2014-05-20 01:51:31 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 04:45:36 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 06:40:52 UTC) #14
Message was sent while issue was closed.
Change committed as 271594

Powered by Google App Engine
This is Rietveld 408576698