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

Issue 1902183002: Motown: Change media type (stream type) representation (Closed)

Created:
4 years, 8 months ago by dalesat
Modified:
4 years, 8 months ago
Reviewers:
kulakowski, jeffbrown
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Motown: Change media type (stream type) representation The old representation had a scheme enum value that combined both medium (audio/video/etc) and encoding. Additional information was provided via scheme-dependent 'details'. The new representation has a medium enum value and an encoding string. Additional information is provided via medium-dependent 'details' and opaque encoding parameters. This CL also abandons base64 encoding in favor of array<uint8> for opaque values. There is also no attempt to represent multiplexed types, and a lot of wildcard values have been eliminated. The CL is large but shallow. There are two media (stream) type representations in the code (mojo and framework), conversions between the two and between framework and ffmpeg representations, plus some formatting code (for two representations) used for debugging. R=kulakowski@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/2a2f7f99c994f8ffd8d18057ce977c844b51b69c

Patch Set 1 #

Total comments: 11

Patch Set 2 : Reverted _mojo_for_test_only files. #

Patch Set 3 : Changes per review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1527 lines, -2474 lines) Patch
M examples/audio_play_test/play_tone.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M examples/audio_play_test/play_wav.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M mojo/dart/packages/mojo_services/lib/mojo/media/media_types.mojom.dart View 39 chunks +461 lines, -897 lines 0 comments Download
M mojo/services/media/common/interfaces/media_types.mojom View 4 chunks +65 lines, -152 lines 0 comments Download
M services/media/audio/audio_track_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M services/media/audio/audio_track_impl.cc View 5 chunks +29 lines, -25 lines 0 comments Download
M services/media/audio/platform/generic/mixer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/audio/platform/generic/mixer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M services/media/audio/platform/generic/mixers/linear_sampler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/audio/platform/generic/mixers/linear_sampler.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M services/media/audio/platform/generic/mixers/point_sampler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/audio/platform/generic/mixers/point_sampler.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M services/media/audio/platform/generic/output_formatter.h View 2 chunks +4 lines, -4 lines 0 comments Download
M services/media/audio/platform/generic/output_formatter.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M services/media/audio/platform/linux/alsa_output.h View 3 chunks +2 lines, -3 lines 0 comments Download
M services/media/audio/platform/linux/alsa_output.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M services/media/audio/platform/linux/alsa_output_desktop.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M services/media/audio/platform/linux/alsa_output_tinyalsa.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M services/media/factory_service/media_demux_impl.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M services/media/factory_service/media_player_impl.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M services/media/factory_service/media_sink_impl.cc View 1 chunk +6 lines, -13 lines 0 comments Download
M services/media/factory_service/media_source_impl.cc View 6 chunks +10 lines, -7 lines 0 comments Download
M services/media/framework/conversion_pipeline_builder.cc View 11 chunks +57 lines, -81 lines 0 comments Download
M services/media/framework/formatting.h View 2 chunks +18 lines, -6 lines 0 comments Download
M services/media/framework/formatting.cc View 4 chunks +34 lines, -121 lines 0 comments Download
M services/media/framework/lpcm_util.h View 1 chunk +1 line, -1 line 0 comments Download
M services/media/framework/lpcm_util.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M services/media/framework/parts/lpcm_reformatter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/framework/parts/lpcm_reformatter.cc View 6 chunks +43 lines, -37 lines 0 comments Download
M services/media/framework/stream_type.h View 11 chunks +168 lines, -248 lines 0 comments Download
M services/media/framework/stream_type.cc View 1 2 4 chunks +154 lines, -166 lines 0 comments Download
M services/media/framework_ffmpeg/av_codec_context.cc View 7 chunks +97 lines, -96 lines 0 comments Download
M services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M services/media/framework_mojo/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M services/media/framework_mojo/mojo_formatting.h View 2 chunks +10 lines, -12 lines 0 comments Download
M services/media/framework_mojo/mojo_formatting.cc View 13 chunks +82 lines, -156 lines 0 comments Download
M services/media/framework_mojo/mojo_type_conversions.h View 3 chunks +12 lines, -24 lines 0 comments Download
M services/media/framework_mojo/mojo_type_conversions.cc View 1 2 14 chunks +193 lines, -343 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
dalesat
Please take a look. This changes the media/stream type representation in preparation for video support. ...
4 years, 8 months ago (2016-04-19 18:38:10 UTC) #3
kulakowski
Tentative lg2m. I also think there's a loooot of abort()ing. But I don't think that's ...
4 years, 8 months ago (2016-04-19 19:18:23 UTC) #4
dalesat
PTAL https://codereview.chromium.org/1902183002/diff/1/mojo/services/media/common/interfaces/media_types.mojom File mojo/services/media/common/interfaces/media_types.mojom (right): https://codereview.chromium.org/1902183002/diff/1/mojo/services/media/common/interfaces/media_types.mojom#newcode10 mojo/services/media/common/interfaces/media_types.mojom:10: const string kAudioEncodingLpcm = "lpcm"; On 2016/04/19 19:18:22, ...
4 years, 8 months ago (2016-04-19 19:47:03 UTC) #5
kulakowski
lgtm https://codereview.chromium.org/1902183002/diff/1/mojo/services/media/common/interfaces/media_types.mojom File mojo/services/media/common/interfaces/media_types.mojom (right): https://codereview.chromium.org/1902183002/diff/1/mojo/services/media/common/interfaces/media_types.mojom#newcode10 mojo/services/media/common/interfaces/media_types.mojom:10: const string kAudioEncodingLpcm = "lpcm"; On 2016/04/19 19:47:03, ...
4 years, 8 months ago (2016-04-20 17:42:37 UTC) #6
dalesat
4 years, 8 months ago (2016-04-20 18:07:20 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
2a2f7f99c994f8ffd8d18057ce977c844b51b69c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698