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

Issue 2506533002: Use width,height for coded_{width,height} in AVStreamToVideoDecoderConfig (Closed)

Created:
4 years, 1 month ago by wolenetz
Modified:
4 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use width,height for coded_{width,height} in AVStreamToVideoDecoderConfig Anticipating AVStream.codec->coded_{width,height} will be inaccessible in ffmpeg soon, this change uses just the width and height values as hints of the coded size in AVStreamToVideoDecoderConfig (used only in FFmpegDemuxerStream creation and tests). Once AVStream.codec becomes deprecated, coded size fields are not externally populated unless we spin up a temporary ffmpeg decoder to obtain that information. It also drops the metadata logging in OnFindStreamInfoDone for coded_size, since that metadata is no longer different than just width and height, which are already logged. Note that MSE MP4 parser has always just used the width, height for coded size in similar construction of VideoDecoderConfigs in MP4StreamParser. MSE mp2t and WebM stream parsers appear to populate coded size more precisely. Marks VideoDecoderConfig.coded_size() and related histograms.xml entries as deprecated. BUG=591845, 665539 TEST=No media_unittests, ffmpeg_regression_tests regression under LSAN on linux Committed: https://crrev.com/29241f214adfd993990b409c8f42dca858775dc9 Cr-Commit-Position: refs/heads/master@{#432300}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M media/base/video_decoder_config.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 chunk +4 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (16 generated)
wolenetz
Please take a look. Thanks.
4 years, 1 month ago (2016-11-15 03:00:12 UTC) #1
DaleCurtis
https://codereview.chromium.org/2506533002/diff/1/media/ffmpeg/ffmpeg_common.cc File media/ffmpeg/ffmpeg_common.cc (right): https://codereview.chromium.org/2506533002/diff/1/media/ffmpeg/ffmpeg_common.cc#newcode444 media/ffmpeg/ffmpeg_common.cc:444: // Anticipating AVStream.codec.coded_{width,height} will be inaccessible in Mark VideoDecoderConfig ...
4 years, 1 month ago (2016-11-15 19:18:22 UTC) #8
wolenetz
Please take a look at patch set 2; all previous comments are addressed. dalecurtis@: everything ...
4 years, 1 month ago (2016-11-15 20:03:01 UTC) #11
Steven Holte
histograms lgtm
4 years, 1 month ago (2016-11-15 20:08:19 UTC) #16
DaleCurtis
lgtm
4 years, 1 month ago (2016-11-15 20:31:27 UTC) #17
wolenetz
Thanks for reviews.
4 years, 1 month ago (2016-11-15 20:42:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2506533002/20001
4 years, 1 month ago (2016-11-15 20:42:31 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-16 00:08:09 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 00:12:11 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/29241f214adfd993990b409c8f42dca858775dc9
Cr-Commit-Position: refs/heads/master@{#432300}

Powered by Google App Engine
This is Rietveld 408576698