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

Issue 901573004: Use the supplied memory for YUV decoding. (Closed)

Created:
5 years, 10 months ago by Daniel Bratell
Modified:
5 years, 10 months ago
Reviewers:
dshwang, sugoi1, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the supplied memory for YUV decoding. As some kind of optimization the yuv decoder replaced some pointers to point to decoder-internal memory when an API user asked for yuv data. That often worked, but failed if the data needed to outlive the decoder. It was also a violation of the API contract. This replaces that with a buffer copy. It will be slower but will avoid random bitmap errors that also happened randomly on cq try bots. This is a stopgap solution while a better solution is designed, coded and tested. BUG=455235 R=sugoi@chromium.org,dongseong.hwang@intel.com Committed: https://crrev.com/a86ffa06e4415b155a96b9513ed2f18e0d9deaf6 Cr-Commit-Position: refs/heads/master@{#314865}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added optimized copy for well aligned planes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M media/filters/skcanvas_video_renderer.cc View 1 1 chunk +21 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
dshwang
https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc#newcode401 media/filters/skcanvas_video_renderer.cc:401: memcpy(out_line, in_line, bytes_to_copy_per_line); I think skia doesn't alloc planes[plane] ...
5 years, 10 months ago (2015-02-04 15:58:04 UTC) #2
sugoi1
https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc#newcode401 media/filters/skcanvas_video_renderer.cc:401: memcpy(out_line, in_line, bytes_to_copy_per_line); On 2015/02/04 15:58:04, dshwang wrote: > ...
5 years, 10 months ago (2015-02-04 16:01:24 UTC) #4
sugoi1
https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc#newcode379 media/filters/skcanvas_video_renderer.cc:379: sizes[plane].set(size.width(), size.height()); FYI, here, if you want to have ...
5 years, 10 months ago (2015-02-04 18:08:48 UTC) #5
Daniel Bratell
Seems from the discussions that we should use this as a stopgap solution while dshwang ...
5 years, 10 months ago (2015-02-05 13:08:37 UTC) #6
dshwang
nonowner lgtm +dalecurtis as media owner
5 years, 10 months ago (2015-02-05 14:33:41 UTC) #8
sugoi1
Also non owner lgtm https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc File media/filters/skcanvas_video_renderer.cc (right): https://codereview.chromium.org/901573004/diff/1/media/filters/skcanvas_video_renderer.cc#newcode379 media/filters/skcanvas_video_renderer.cc:379: sizes[plane].set(size.width(), size.height()); On 2015/02/05 13:08:37, ...
5 years, 10 months ago (2015-02-05 15:18:18 UTC) #9
DaleCurtis
lgtm
5 years, 10 months ago (2015-02-05 19:12:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/901573004/20001
5 years, 10 months ago (2015-02-05 19:14:46 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-05 20:16:01 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 20:17:16 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a86ffa06e4415b155a96b9513ed2f18e0d9deaf6
Cr-Commit-Position: refs/heads/master@{#314865}

Powered by Google App Engine
This is Rietveld 408576698