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

Issue 178133005: Audit/fix use of media::VideoFrame::coded_size() (Closed)

Created:
6 years, 10 months ago by sheu
Modified:
6 years, 6 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, pwestin+watch_google.com, mikhal+watch_chromium.org, fischman+watch_chromium.org, jasonroberts+watch_google.com, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, hguihot+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Audit/fix use of media::VideoFrame::coded_size() Add comments to media::VideoFrame about the meaning and use of coded_size(), visible_rect(), and natural_size(), and audit Chrome codebase to make sure uses of VideoFrame are consistent with this. This is in regards mostly to making sure that odd-width/height subsampled YUV format are handled correctly. BUG=344719 TEST=local build, run on CrOS snow, desktop Linux Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259814

Patch Set 1 : c144dba5 Initial. #

Patch Set 2 : 5c04e7a7 DCHECK fix. #

Total comments: 16

Patch Set 3 : 6f577dde Comments. #

Total comments: 1

Patch Set 4 : fc39d405 AVDA bit. #

Patch Set 5 : d4e1a5bd Uhh yeah. #

Total comments: 1

Patch Set 6 : e6f9affb danakj@ comments. #

Total comments: 10

Patch Set 7 : 5c698210 Comments. #

Patch Set 8 : 0e183cef9 Rebase. #

Patch Set 9 : dd917c40 Rebase. #

Patch Set 10 : b7828c1a Rebase. #

Patch Set 11 : e0048b6f make Android happy. #

Patch Set 12 : 2121885f Rebase. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -116 lines) Patch
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -32 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 4 5 6 7 8 5 chunks +23 lines, -23 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +89 lines, -38 lines 1 comment Download
M media/base/video_frame_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -15 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/skcanvas_video_renderer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
sheu
fischman@: PTAL. Most important are the changes on media/base/video_frame.*, in which we start checking for ...
6 years, 10 months ago (2014-02-24 22:29:40 UTC) #1
sheu
6 years, 10 months ago (2014-02-24 22:29:58 UTC) #2
sheu
fischman@: PTAL, thanks!
6 years, 10 months ago (2014-02-26 22:16:55 UTC) #3
Ami GONE FROM CHROMIUM
Sorry for delayed review; vacation+catchup got in the way. https://chromiumcodereview.appspot.com/178133005/diff/70001/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/178133005/diff/70001/content/common/gpu/media/android_video_encode_accelerator.cc#newcode212 content/common/gpu/media/android_video_encode_accelerator.cc:212: ...
6 years, 10 months ago (2014-02-27 01:20:11 UTC) #4
sheu
https://chromiumcodereview.appspot.com/178133005/diff/70001/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/178133005/diff/70001/content/common/gpu/media/android_video_encode_accelerator.cc#newcode212 content/common/gpu/media/android_video_encode_accelerator.cc:212: frame->coded_size().width() == frame->visible_rect().right(), On 2014/02/27 01:20:12, Ami Fischman wrote: ...
6 years, 9 months ago (2014-02-28 00:40:19 UTC) #5
Ami GONE FROM CHROMIUM
LGTM % AVDA comment. If you disagree then lets discuss before you land. https://chromiumcodereview.appspot.com/178133005/diff/70001/media/base/video_frame.cc File ...
6 years, 9 months ago (2014-02-28 00:48:13 UTC) #6
sheu
I was hoping to preserve odd-height support for AVEA. Not going to hold up a ...
6 years, 9 months ago (2014-02-28 01:13:07 UTC) #7
danakj
https://codereview.chromium.org/178133005/diff/170001/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (left): https://codereview.chromium.org/178133005/diff/170001/cc/resources/video_resource_updater.cc#oldcode95 cc/resources/video_resource_updater.cc:95: if (output_resource_format == kYUVResourceFormat) { Can you keep this ...
6 years, 9 months ago (2014-02-28 16:55:33 UTC) #8
sheu
danakj@: updated, PTAL. fischman@: I left some things out of the patchset you LGTMed :-(. ...
6 years, 9 months ago (2014-02-28 22:25:10 UTC) #9
danakj
cc LGTM https://chromiumcodereview.appspot.com/178133005/diff/190001/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://chromiumcodereview.appspot.com/178133005/diff/190001/cc/resources/video_resource_updater.cc#newcode93 cc/resources/video_resource_updater.cc:93: size_t plane) { prefer keep this as ...
6 years, 9 months ago (2014-02-28 22:28:24 UTC) #10
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/178133005/diff/190001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/178133005/diff/190001/media/base/video_frame.cc#newcode102 media/base/video_frame.cc:102: RoundUp(visible_rect.bottom(), 2)) Subtle! So it's ok for coded size ...
6 years, 9 months ago (2014-02-28 23:17:31 UTC) #11
sheu
Updated for fischman@. https://chromiumcodereview.appspot.com/178133005/diff/190001/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://chromiumcodereview.appspot.com/178133005/diff/190001/cc/resources/video_resource_updater.cc#newcode93 cc/resources/video_resource_updater.cc:93: size_t plane) { On 2014/02/28 22:28:25, ...
6 years, 9 months ago (2014-03-01 01:56:57 UTC) #12
Ami GONE FROM CHROMIUM
LGTM On Fri, Feb 28, 2014 at 5:56 PM, <sheu@chromium.org> wrote: > Updated for fischman@. ...
6 years, 9 months ago (2014-03-01 02:04:31 UTC) #13
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-01 02:08:36 UTC) #14
sheu
The CQ bit was unchecked by sheu@chromium.org
6 years, 9 months ago (2014-03-01 02:08:39 UTC) #15
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-21 00:46:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/280001
6 years, 9 months ago (2014-03-21 00:47:54 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 00:54:58 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-21 00:54:58 UTC) #19
miu
On 2014/03/21 00:54:58, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 9 months ago (2014-03-21 04:01:09 UTC) #20
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-21 07:26:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/280001
6 years, 9 months ago (2014-03-21 07:27:06 UTC) #22
sheu
The CQ bit was unchecked by sheu@chromium.org
6 years, 9 months ago (2014-03-21 07:27:28 UTC) #23
sheu
Found the bug. Fixed in: https://chromiumcodereview.appspot.com/208653009/ will retry this after that lands.
6 years, 9 months ago (2014-03-22 00:50:08 UTC) #24
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-24 04:10:10 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/280001
6 years, 9 months ago (2014-03-24 04:10:18 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 04:10:33 UTC) #27
commit-bot: I haz the power
Failed to apply patch for media/cast/video_sender/external_video_encoder.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-24 04:10:34 UTC) #28
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-24 23:17:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/300001
6 years, 9 months ago (2014-03-24 23:17:56 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 10:07:02 UTC) #31
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 9 months ago (2014-03-25 10:07:03 UTC) #32
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-25 18:21:36 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/300001
6 years, 9 months ago (2014-03-25 18:23:01 UTC) #34
Sergey Berezin
The CQ bit was unchecked by sergeyberezin@chromium.org
6 years, 9 months ago (2014-03-26 19:02:08 UTC) #35
Sergey Berezin
On 2014/03/25 18:23:01, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 9 months ago (2014-03-26 19:03:25 UTC) #36
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-27 00:11:09 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/520001
6 years, 9 months ago (2014-03-27 00:15:08 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 07:36:26 UTC) #39
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-27 07:36:27 UTC) #40
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 9 months ago (2014-03-27 07:37:03 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/178133005/520001
6 years, 9 months ago (2014-03-27 07:39:15 UTC) #42
commit-bot: I haz the power
Change committed as 259814
6 years, 9 months ago (2014-03-27 07:44:56 UTC) #43
Sergey Ulanov
https://codereview.chromium.org/178133005/diff/520001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/178133005/diff/520001/media/base/video_frame.cc#newcode113 media/base/video_frame.cc:113: RoundUp(visible_rect.bottom(), 2)) if visible_rect=coded_size this essentially requires that the ...
6 years, 6 months ago (2014-06-07 02:42:06 UTC) #44
Ami GONE FROM CHROMIUM
What codec can generate odd sized encoded streams? To unsubscribe from this group and stop ...
6 years, 6 months ago (2014-06-07 04:24:23 UTC) #45
Sergey Ulanov
6 years, 6 months ago (2014-06-09 19:08:46 UTC) #46
Message was sent while issue was closed.
On 2014/06/07 04:24:23, Ami GONE FROM CHROMIUM wrote:
> What codec can generate odd sized encoded streams?

VPX can. There is a bug for it here: crbug.com/379127. Looks like Dale already
fixed it.

Powered by Google App Engine
This is Rietveld 408576698