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

Issue 1686363002: Motown: ffmpeg implementations of framework 'parts' (Closed)

Created:
4 years, 10 months ago by dalesat
Modified:
4 years, 9 months ago
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: ffmpeg implementations of framework 'parts' ffmpeg_video_decoder.* is not yet functional R=johngro@google.com Committed: https://chromium.googlesource.com/external/mojo/+/ccde3cc6961adbb482d6aea82ed2f9c07959b9bc

Patch Set 1 #

Patch Set 2 : Sync. #

Patch Set 3 : Eliminated need for ffmpeg dependents to deal with ffmpeg includes. #

Patch Set 4 : Sync with yasm's return. #

Patch Set 5 : Sync. Restore -Wno_constant_conversion for ffmpeg build #

Patch Set 6 : Retype some const unique_ptr<T>& parameters to const T&. #

Total comments: 68

Patch Set 7 : Various changes based on feedback. #

Total comments: 2

Patch Set 8 : Sync with framework_mojo cl #

Patch Set 9 : Sync with framework_mojo. Narrow application of a C warning suppression. #

Patch Set 10 : Referenced issue #692 in TODO comment for removing -Wno-constant-conversion #

Patch Set 11 : Sync. #

Patch Set 12 : Changed the way AVBuffer allocation/deallocation is done in the ffmpeg audio decoder. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2639 lines, -13 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M services/media/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M services/media/framework/parts/decoder.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M services/media/framework/parts/file_reader.h View 2 chunks +3 lines, -3 lines 0 comments Download
M services/media/framework/parts/file_reader.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M services/media/framework/parts/reader.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/media/framework_create/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/media/framework_create/decoder.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M services/media/framework_create/demux.cc View 2 chunks +9 lines, -1 line 0 comments Download
A services/media/framework_ffmpeg/BUILD.gn View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_audio_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +113 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +205 lines, -0 lines 1 comment Download
A services/media/framework_ffmpeg/ffmpeg_decoder.h View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_decoder.cc View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_decoder_base.h View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_decoder_base.cc View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_demux.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_demux.cc View 1 2 3 4 5 6 7 8 1 chunk +262 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_formatting.h View 1 chunk +116 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_formatting.cc View 1 chunk +805 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_init.h View 1 chunk +16 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_init.cc View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_io.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_io.cc View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_type_converters.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_type_converters.cc View 1 2 3 4 5 6 1 chunk +385 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_video_decoder.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A services/media/framework_ffmpeg/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 1 chunk +110 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
dalesat
The trybots are having problems applying this patch. Investigating.
4 years, 10 months ago (2016-02-11 02:07:51 UTC) #3
johngro
Almost done; I'm still finishing up audio_decoder.cc and decoder.cc. I'll have them done first thing ...
4 years, 9 months ago (2016-03-01 01:31:39 UTC) #4
jamesr
https://codereview.chromium.org/1686363002/diff/100001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1686363002/diff/100001/build/config/compiler/BUILD.gn#newcode854 build/config/compiler/BUILD.gn:854: "-Wno-constant-conversion", On 2016/03/01 at 01:31:38, johngro wrote: > Is ...
4 years, 9 months ago (2016-03-01 17:56:43 UTC) #5
johngro
https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc File services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc (right): https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc#newcode18 services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc:18: if (av_sample_fmt_is_planar(av_codec_context->sample_fmt)) { DCHECK(av_codec_context_->channels); There is a non-zero assumption ...
4 years, 9 months ago (2016-03-01 18:05:35 UTC) #7
dalesat
PTAL. I've left the warning change for the moment. I'll work on getting rid of ...
4 years, 9 months ago (2016-03-01 20:43:02 UTC) #8
jamesr
What issues are you having applying the flag more locally? Keeping warnings like this enabled ...
4 years, 9 months ago (2016-03-01 20:47:33 UTC) #9
johngro
https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_demux.cc File services/media/framework_ffmpeg/ffmpeg_demux.cc (right): https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_demux.cc#newcode56 services/media/framework_ffmpeg/ffmpeg_demux.cc:56: av_free_packet(&av_packet); On 2016/03/01 20:43:02, dalesat wrote: > On 2016/03/01 ...
4 years, 9 months ago (2016-03-01 22:07:27 UTC) #10
Sean Klein
I've been added to this CL at the request of dalesat, since I added the ...
4 years, 9 months ago (2016-03-01 22:19:52 UTC) #11
Sean Klein
Okay, I've been looking into this a bit more -- "cflags" / "public_configs" won't really ...
4 years, 9 months ago (2016-03-02 01:18:33 UTC) #12
jamesr
On 2016/03/02 at 01:18:33, smklein wrote: > Okay, I've been looking into this a bit ...
4 years, 9 months ago (2016-03-02 01:19:26 UTC) #13
jamesr
On 2016/03/02 at 01:19:26, jamesr wrote: > On 2016/03/02 at 01:18:33, smklein wrote: > > ...
4 years, 9 months ago (2016-03-02 01:20:33 UTC) #14
Sean Klein
Really? From the gn documentation: public_configs: Configs to be applied on dependents. A list of ...
4 years, 9 months ago (2016-03-02 01:22:35 UTC) #15
jamesr
That's right, and that's the behavior you generally want (my first comment was backwards). You ...
4 years, 9 months ago (2016-03-02 01:23:58 UTC) #16
Sean Klein
I think the issue is that the code triggering the warning is "third_party/ffmpeg/ffmpeg_internal", which is ...
4 years, 9 months ago (2016-03-02 01:31:08 UTC) #17
jamesr
Then we need to DEPS in from something we control (otherwise I'm not sure what ...
4 years, 9 months ago (2016-03-02 02:03:50 UTC) #18
jamesr
Secondary used to work the way you're thinking but was switched to prefer the natural ...
4 years, 9 months ago (2016-03-02 02:19:23 UTC) #19
dalesat
PTAL...build/config/compiler/BUILD.gn changed as discussed. https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_demux.cc File services/media/framework_ffmpeg/ffmpeg_demux.cc (right): https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_demux.cc#newcode56 services/media/framework_ffmpeg/ffmpeg_demux.cc:56: av_free_packet(&av_packet); On 2016/03/01 22:07:26, johngro ...
4 years, 9 months ago (2016-03-02 18:35:36 UTC) #20
jamesr
The //build change looks OK, but could you file a bug (and add a link ...
4 years, 9 months ago (2016-03-02 18:45:30 UTC) #21
dalesat
Done
4 years, 9 months ago (2016-03-02 19:39:01 UTC) #22
dalesat
Ping! LGTM, anyone?
4 years, 9 months ago (2016-03-03 01:30:22 UTC) #23
dalesat
PTAL...all comments addressed. https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc File services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc (right): https://codereview.chromium.org/1686363002/diff/100001/services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc#newcode18 services/media/framework_ffmpeg/ffmpeg_audio_decoder.cc:18: if (av_sample_fmt_is_planar(av_codec_context->sample_fmt)) { On 2016/03/01 18:05:35, ...
4 years, 9 months ago (2016-03-03 20:41:11 UTC) #24
johngro
TL;DR I'm still a bit uneasy, but let's not hold this up any longer. LGTM ...
4 years, 9 months ago (2016-03-03 23:03:16 UTC) #25
dalesat
4 years, 9 months ago (2016-03-03 23:45:10 UTC) #27
Message was sent while issue was closed.
Committed patchset #12 (id:220001) manually as
ccde3cc6961adbb482d6aea82ed2f9c07959b9bc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698