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

Issue 222563002: Remove redundant I420-to-YV12 conversion in MediaStreamVideoTrack. (Closed)

Created:
6 years, 8 months ago by hshi1
Modified:
6 years, 8 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, wjia+watch_chromium.org, Peng, yzshen1
Visibility:
Public.

Description

Remove redundant I420-to-YV12 conversion in MediaStreamVideoTrack. The I420 and YV12 formats both are almost identical except for the order of U and V planes in memory. They are effectively the same for renderers that access U and V plane data via MediaFrame::data(size_t plane). BUG=341452 BUG=355763 TEST=trybot R=danakj@chromium.org, dmichael@chromium.org, fischman@chromium.org, perkj@chromium.org, piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261497

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use VideoResourceUpdater to allocate video frame in renderer pixeltest. #

Patch Set 3 : No need to call SetPixels. Instead set pixels before calling updater. #

Patch Set 4 : Make updater a member. #

Patch Set 5 : Use the correct stride and row_bytes to fill test pattern. #

Patch Set 6 : Rebased at ToT 261185. #

Total comments: 4

Patch Set 7 : Comments by fischman. #

Patch Set 8 : Fix a failing assert in PPAPI test. #

Patch Set 9 : Allow I420 as acceptable default YUV format in ppapi tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -112 lines) Patch
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 7 chunks +89 lines, -57 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 3 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 2 chunks +1 line, -29 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/skcanvas_video_renderer.cc View 1 2 3 4 5 6 8 chunks +17 lines, -19 lines 0 comments Download
M media/tools/player_x11/gl_video_renderer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/tools/player_x11/x11_video_renderer.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download
M ppapi/tests/test_media_stream_video_track.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
hshi1
PTAL - I propose that we treat I420 the same as YV12 everywhere that accesses ...
6 years, 8 months ago (2014-04-02 17:32:09 UTC) #1
danakj
https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc#newcode64 cc/resources/video_resource_updater.cc:64: case media::VideoFrame::I420: Won't you need to make some changes ...
6 years, 8 months ago (2014-04-02 17:37:56 UTC) #2
hshi1
https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc#newcode64 cc/resources/video_resource_updater.cc:64: case media::VideoFrame::I420: On 2014/04/02 17:37:57, danakj wrote: > Won't ...
6 years, 8 months ago (2014-04-02 17:47:33 UTC) #3
hshi1
https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc#newcode64 cc/resources/video_resource_updater.cc:64: case media::VideoFrame::I420: On 2014/04/02 17:37:57, danakj wrote: > Can ...
6 years, 8 months ago (2014-04-02 17:51:16 UTC) #4
danakj
https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc File cc/resources/video_resource_updater.cc (right): https://codereview.chromium.org/222563002/diff/1/cc/resources/video_resource_updater.cc#newcode64 cc/resources/video_resource_updater.cc:64: case media::VideoFrame::I420: On 2014/04/02 17:47:34, hshi1 wrote: > On ...
6 years, 8 months ago (2014-04-02 17:51:59 UTC) #5
hshi1
On 2014/04/02 17:51:59, danakj wrote: > Ahh, okay. Gotcha now. The pixel test I pointed ...
6 years, 8 months ago (2014-04-02 18:00:16 UTC) #6
danakj
On Wed, Apr 2, 2014 at 2:00 PM, <hshi@chromium.org> wrote: > On 2014/04/02 17:51:59, danakj ...
6 years, 8 months ago (2014-04-02 18:16:15 UTC) #7
piman
LGTM % Dana's comments.
6 years, 8 months ago (2014-04-02 19:56:30 UTC) #8
hshi1
danakj: I uploaded patch set #2 that uses the VideoResourceUpdater to create YUV resources. Unfortunately ...
6 years, 8 months ago (2014-04-02 20:13:03 UTC) #9
hshi1
On 2014/04/02 20:13:03, hshi1 wrote: > danakj: I uploaded patch set #2 that uses the ...
6 years, 8 months ago (2014-04-02 20:24:41 UTC) #10
hshi1
PTAL patch set #5. The tests are passing now. Previously they were failing because (1) ...
6 years, 8 months ago (2014-04-02 21:12:09 UTC) #11
hshi1
+fischman for the changes under media/ - thanks!
6 years, 8 months ago (2014-04-02 21:15:59 UTC) #12
danakj
Thanks, cc LGTM
6 years, 8 months ago (2014-04-02 21:22:11 UTC) #13
Ami GONE FROM CHROMIUM
LGTM % nits https://codereview.chromium.org/222563002/diff/80009/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/222563002/diff/80009/cc/output/renderer_pixeltest.cc#newcode543 cc/output/renderer_pixeltest.cc:543: media::VideoFrame::I420, nit: right now this is ...
6 years, 8 months ago (2014-04-02 22:03:58 UTC) #14
hshi1
https://codereview.chromium.org/222563002/diff/80009/cc/output/renderer_pixeltest.cc File cc/output/renderer_pixeltest.cc (right): https://codereview.chromium.org/222563002/diff/80009/cc/output/renderer_pixeltest.cc#newcode543 cc/output/renderer_pixeltest.cc:543: media::VideoFrame::I420, On 2014/04/02 22:03:58, Ami Fischman wrote: > nit: ...
6 years, 8 months ago (2014-04-02 22:17:05 UTC) #15
Ami GONE FROM CHROMIUM
PS#7 still LGTM.
6 years, 8 months ago (2014-04-02 22:21:51 UTC) #16
hshi1
The CQ bit was checked by hshi@chromium.org
6 years, 8 months ago (2014-04-02 22:23:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/222563002/110001
6 years, 8 months ago (2014-04-02 22:25:52 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 00:45:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-03 00:45:50 UTC) #20
hshi1
sorry, +yzshen PTAL (OWNERS of ppapi/test) penghuang@ confirmed in email that ppapi MediaStreamVideoTrack supports I420 ...
6 years, 8 months ago (2014-04-03 01:00:54 UTC) #21
perkj_chrome
On 2014/04/03 01:00:54, hshi1 wrote: > sorry, +yzshen PTAL (OWNERS of ppapi/test) > > penghuang@ ...
6 years, 8 months ago (2014-04-03 07:12:47 UTC) #22
hshi1
+dmichael PTAL ppapi/ thanks! (I initially added yzshen@ but he's OOO).
6 years, 8 months ago (2014-04-03 17:02:28 UTC) #23
dmichael (off chromium)
ppapi lgtm
6 years, 8 months ago (2014-04-03 17:08:06 UTC) #24
hshi1
The CQ bit was checked by hshi@chromium.org
6 years, 8 months ago (2014-04-03 17:09:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/222563002/130001
6 years, 8 months ago (2014-04-03 17:09:18 UTC) #26
hshi1
6 years, 8 months ago (2014-04-03 19:11:08 UTC) #27
Message was sent while issue was closed.
Committed patchset #9 manually as r261497 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698