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

Issue 1678433002: Motown: Remove LPCM optimizations, fix prepare, add flush, add ActiveMultistreamSink model/stage (Closed)

Created:
4 years, 10 months ago by dalesat
Modified:
4 years, 10 months ago
Reviewers:
jamesr, jeffbrown, johngro
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Motown: Remove LPCM optimizations, fix prepare, add flush, add ActiveMultistreamSink model/stage - Removed LPCM optimizations - Converted LpcmReformatter from LPCM transport to Packet transport - Added ActiveMultistreamSink model and hosting stage for system mixer use (needs debugging) - Moved graph building from Engine to new Graph class - Established new graph-building threading model (not thread-safe) - Fixed Prepare logic - Added Unprepare - Disallowing disconnection of prepared inputs/outputs - Added Flush - Now using InputRef and OutputRef internally - Renamed: Engine::Part -> PartRef Engine::Input -> InputRef Engine::Output -> OutputRef StageInput -> Input StageOutput -> Output Allocator -> PayloadAllocator - Many instances of uint32_t and uint64_t replaced with size_t R=johngro@google.com Committed: https://chromium.googlesource.com/external/mojo/+/ad2cbf2dc0ac0ef7a21d02ac361388ce301693c2

Patch Set 1 #

Total comments: 36

Patch Set 2 : Fixed engine unprepare and refactored. Updates based on feedback. Sync. #

Patch Set 3 : A couple of missed fixes. #

Total comments: 9

Patch Set 4 : Changes based on feedback. #

Patch Set 5 : Sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2437 lines, -2848 lines) Patch
M services/media/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M services/media/framework/BUILD.gn View 2 chunks +21 lines, -22 lines 0 comments Download
D services/media/framework/allocator.h View 1 chunk +0 lines, -31 lines 0 comments Download
D services/media/framework/allocator.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M services/media/framework/conversion_pipeline_builder.h View 2 chunks +7 lines, -6 lines 0 comments Download
M services/media/framework/conversion_pipeline_builder.cc View 13 chunks +54 lines, -47 lines 0 comments Download
M services/media/framework/engine.h View 1 4 chunks +38 lines, -313 lines 0 comments Download
M services/media/framework/engine.cc View 1 2 3 5 chunks +92 lines, -329 lines 0 comments Download
M services/media/framework/formatting.h View 2 chunks +13 lines, -5 lines 0 comments Download
M services/media/framework/formatting.cc View 10 chunks +25 lines, -13 lines 0 comments Download
A services/media/framework/graph.h View 1 2 1 chunk +205 lines, -0 lines 0 comments Download
A services/media/framework/graph.cc View 1 2 3 1 chunk +219 lines, -0 lines 0 comments Download
M services/media/framework/lpcm_util.h View 2 chunks +5 lines, -5 lines 0 comments Download
M services/media/framework/lpcm_util.cc View 5 chunks +17 lines, -17 lines 0 comments Download
M services/media/framework/metadata.h View 2 chunks +3 lines, -7 lines 0 comments Download
M services/media/framework/metadata.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A services/media/framework/models/active_multistream_sink.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M services/media/framework/models/active_sink.h View 1 chunk +9 lines, -15 lines 0 comments Download
M services/media/framework/models/active_source.h View 1 chunk +6 lines, -9 lines 0 comments Download
D services/media/framework/models/lpcm_frame_buffer.h View 1 chunk +0 lines, -83 lines 0 comments Download
D services/media/framework/models/lpcm_frame_buffer.cc View 1 chunk +0 lines, -19 lines 0 comments Download
D services/media/framework/models/lpcm_transform.h View 1 chunk +0 lines, -39 lines 0 comments Download
D services/media/framework/models/multistream_packet_source.h View 1 chunk +0 lines, -35 lines 0 comments Download
A + services/media/framework/models/multistream_source.h View 2 chunks +8 lines, -11 lines 0 comments Download
D services/media/framework/models/packet_transform.h View 1 chunk +0 lines, -38 lines 0 comments Download
A services/media/framework/models/part.h View 1 chunk +23 lines, -0 lines 0 comments Download
A + services/media/framework/models/transform.h View 2 chunks +8 lines, -11 lines 0 comments Download
M services/media/framework/packet.h View 5 chunks +6 lines, -7 lines 0 comments Download
M services/media/framework/packet.cc View 6 chunks +9 lines, -9 lines 0 comments Download
M services/media/framework/parts/decoder.h View 1 chunk +7 lines, -11 lines 0 comments Download
M services/media/framework/parts/demux.h View 4 chunks +9 lines, -19 lines 0 comments Download
M services/media/framework/parts/file_reader.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/framework/parts/lpcm_reformatter.h View 1 chunk +4 lines, -8 lines 0 comments Download
M services/media/framework/parts/lpcm_reformatter.cc View 3 chunks +71 lines, -120 lines 0 comments Download
M services/media/framework/parts/null_sink.h View 1 chunk +5 lines, -9 lines 0 comments Download
M services/media/framework/parts/null_sink.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M services/media/framework/parts/reader.h View 1 chunk +1 line, -5 lines 0 comments Download
M services/media/framework/parts/reader.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + services/media/framework/payload_allocator.h View 1 chunk +8 lines, -9 lines 0 comments Download
A + services/media/framework/payload_allocator.cc View 2 chunks +8 lines, -8 lines 0 comments Download
D services/media/framework/ptr.h View 1 chunk +0 lines, -64 lines 0 comments Download
A services/media/framework/refs.h View 1 2 3 1 chunk +162 lines, -0 lines 0 comments Download
A services/media/framework/refs.cc View 1 chunk +97 lines, -0 lines 0 comments Download
A services/media/framework/safe_clone.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A services/media/framework/stages/active_multistream_sink_stage.h View 1 1 chunk +84 lines, -0 lines 0 comments Download
A services/media/framework/stages/active_multistream_sink_stage.cc View 1 2 3 1 chunk +165 lines, -0 lines 0 comments Download
M services/media/framework/stages/active_sink_stage.h View 1 2 chunks +22 lines, -12 lines 0 comments Download
M services/media/framework/stages/active_sink_stage.cc View 1 2 3 3 chunks +34 lines, -14 lines 0 comments Download
M services/media/framework/stages/active_source_stage.h View 1 2 chunks +27 lines, -12 lines 0 comments Download
M services/media/framework/stages/active_source_stage.cc View 1 2 3 3 chunks +57 lines, -17 lines 0 comments Download
D services/media/framework/stages/distributor_stage.h View 1 chunk +0 lines, -47 lines 0 comments Download
D services/media/framework/stages/distributor_stage.cc View 1 chunk +0 lines, -91 lines 0 comments Download
A services/media/framework/stages/input.h View 1 chunk +73 lines, -0 lines 0 comments Download
A services/media/framework/stages/input.cc View 1 chunk +48 lines, -0 lines 0 comments Download
D services/media/framework/stages/lpcm_stage_input.h View 1 chunk +0 lines, -102 lines 0 comments Download
D services/media/framework/stages/lpcm_stage_input.cc View 1 chunk +0 lines, -211 lines 0 comments Download
D services/media/framework/stages/lpcm_stage_output.h View 1 chunk +0 lines, -120 lines 0 comments Download
D services/media/framework/stages/lpcm_stage_output.cc View 1 chunk +0 lines, -85 lines 0 comments Download
D services/media/framework/stages/lpcm_transform_stage.h View 1 chunk +0 lines, -43 lines 0 comments Download
D services/media/framework/stages/lpcm_transform_stage.cc View 1 chunk +0 lines, -68 lines 0 comments Download
A services/media/framework/stages/multistream_source_stage.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A services/media/framework/stages/multistream_source_stage.cc View 1 2 3 1 chunk +124 lines, -0 lines 0 comments Download
A services/media/framework/stages/output.h View 1 chunk +68 lines, -0 lines 0 comments Download
A services/media/framework/stages/output.cc View 1 chunk +94 lines, -0 lines 0 comments Download
D services/media/framework/stages/packet_transform_stage.h View 1 chunk +0 lines, -45 lines 0 comments Download
D services/media/framework/stages/packet_transform_stage.cc View 1 chunk +0 lines, -73 lines 0 comments Download
M services/media/framework/stages/stage.h View 1 4 chunks +54 lines, -22 lines 0 comments Download
M services/media/framework/stages/stage.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
D services/media/framework/stages/stage_input.h View 1 chunk +0 lines, -83 lines 0 comments Download
D services/media/framework/stages/stage_input.cc View 1 chunk +0 lines, -73 lines 0 comments Download
D services/media/framework/stages/stage_output.h View 1 chunk +0 lines, -81 lines 0 comments Download
D services/media/framework/stages/stage_output.cc View 1 chunk +0 lines, -122 lines 0 comments Download
A services/media/framework/stages/transform_stage.h View 1 1 chunk +60 lines, -0 lines 0 comments Download
A services/media/framework/stages/transform_stage.cc View 1 1 chunk +104 lines, -0 lines 0 comments Download
M services/media/framework/stream_type.h View 1 21 chunks +79 lines, -99 lines 0 comments Download
M services/media/framework/stream_type.cc View 1 14 chunks +30 lines, -38 lines 0 comments Download
M services/media/framework_create/decoder.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/framework_create/demux.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
dalesat
On 2016/02/05 20:52:02, dalesat wrote: > mailto:dalesat@chromium.org changed reviewers: > + mailto:jamesr@chromium.org, mailto:jeffbrown@google.com, mailto:johngro@google.com Took ...
4 years, 10 months ago (2016-02-05 20:56:58 UTC) #3
jamesr
Fill out this form: https://chromium-access.appspot.com/request
4 years, 10 months ago (2016-02-05 20:59:57 UTC) #4
jamesr
http://www.chromium.org/getting-involved/become-a-committer#TOC-Try-job-access
4 years, 10 months ago (2016-02-05 21:00:11 UTC) #5
johngro
https://codereview.chromium.org/1678433002/diff/1/services/media/framework/engine.cc File services/media/framework/engine.cc (right): https://codereview.chromium.org/1678433002/diff/1/services/media/framework/engine.cc#newcode37 services/media/framework/engine.cc:37: [this, &output, &backlog](size_t input_index) { I don't think that ...
4 years, 10 months ago (2016-02-08 22:33:37 UTC) #6
dalesat
https://codereview.chromium.org/1678433002/diff/1/services/media/framework/engine.cc File services/media/framework/engine.cc (right): https://codereview.chromium.org/1678433002/diff/1/services/media/framework/engine.cc#newcode37 services/media/framework/engine.cc:37: [this, &output, &backlog](size_t input_index) { On 2016/02/08 22:33:36, johngro ...
4 years, 10 months ago (2016-02-09 00:34:11 UTC) #7
johngro
https://codereview.chromium.org/1678433002/diff/1/services/media/framework/engine.cc File services/media/framework/engine.cc (right): https://codereview.chromium.org/1678433002/diff/1/services/media/framework/engine.cc#newcode141 services/media/framework/engine.cc:141: packets_produced_ = false; On 2016/02/09 00:34:11, dalesat wrote: > ...
4 years, 10 months ago (2016-02-09 21:00:36 UTC) #8
jamesr
https://codereview.chromium.org/1678433002/diff/40001/services/media/framework/stages/multistream_source_stage.cc File services/media/framework/stages/multistream_source_stage.cc (right): https://codereview.chromium.org/1678433002/diff/40001/services/media/framework/stages/multistream_source_stage.cc#newcode26 services/media/framework/stages/multistream_source_stage.cc:26: return *(static_cast<Input*>(nullptr)); On 2016/02/09 at 21:00:36, johngro wrote: > ...
4 years, 10 months ago (2016-02-09 21:15:56 UTC) #9
dalesat
https://codereview.chromium.org/1678433002/diff/1/services/media/framework/stages/active_multistream_sink_stage.cc File services/media/framework/stages/active_multistream_sink_stage.cc (right): https://codereview.chromium.org/1678433002/diff/1/services/media/framework/stages/active_multistream_sink_stage.cc#newcode27 services/media/framework/stages/active_multistream_sink_stage.cc:27: DCHECK_LT(index, inputs_.size()); On 2016/02/09 21:00:36, johngro wrote: > On ...
4 years, 10 months ago (2016-02-10 21:37:25 UTC) #10
johngro
LGTM pending the trybots going green
4 years, 10 months ago (2016-02-10 21:46:39 UTC) #11
dalesat
4 years, 10 months ago (2016-02-11 01:01:13 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
ad2cbf2dc0ac0ef7a21d02ac361388ce301693c2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698