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

Issue 648613003: Add support for color formats negotiation. (Closed)

Created:
6 years, 2 months ago by changbin
Modified:
6 years, 2 months ago
Reviewers:
mcasas, xhwang, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add support for color formats negotiation. The color format parameter is hard coded for AndroidVideoEncodeAccelerator, we'd better add negotiation with the codec for supported color formats. BUG=423602 Committed: https://crrev.com/3b7fe737be7b85badc8829bca2e3806c0f7a2a5f Cr-Commit-Position: refs/heads/master@{#300651}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Update per mcasas's comments. #

Total comments: 7

Patch Set 3 : Update #

Patch Set 4 : update. #

Total comments: 2

Patch Set 5 : Remove COLOR_FORMAT_UNKNOWN. #

Total comments: 2

Patch Set 6 : Update per Pawel's comment, ptal. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -12 lines) Patch
M content/common/gpu/media/android_video_encode_accelerator.cc View 1 2 3 4 5 4 chunks +28 lines, -12 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M media/base/android/media_codec_bridge.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M media/base/android/media_codec_bridge.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
changbin
Hi, please take a look. thanks!
6 years, 2 months ago (2014-10-10 06:40:59 UTC) #2
mcasas
Drive-by. https://codereview.chromium.org/648613003/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/648613003/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc#newcode32 content/common/gpu/media/android_video_encode_accelerator.cc:32: enum ColorFormat { Please consider calling this PixelFormat. ...
6 years, 2 months ago (2014-10-10 08:16:17 UTC) #4
changbin
@msasas, thanks for your review. Patch is updated, ptal. https://codereview.chromium.org/648613003/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/648613003/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc#newcode32 content/common/gpu/media/android_video_encode_accelerator.cc:32: ...
6 years, 2 months ago (2014-10-10 08:55:51 UTC) #5
changbin
Hi all, any review comments for this patch? Thanks!
6 years, 2 months ago (2014-10-13 01:38:13 UTC) #6
xhwang
Generally looking pretty good. I only have a few comments. Can you file a bug ...
6 years, 2 months ago (2014-10-13 17:37:35 UTC) #7
changbin
xhwang@, thanks a lot for your review. ptal again:) https://codereview.chromium.org/648613003/diff/110001/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/648613003/diff/110001/content/common/gpu/media/android_video_encode_accelerator.cc#newcode77 content/common/gpu/media/android_video_encode_accelerator.cc:77: ...
6 years, 2 months ago (2014-10-15 02:17:10 UTC) #8
xhwang
lgtm % one more comment. Please make sure you get Pawel's review before landing. https://codereview.chromium.org/648613003/diff/210001/content/common/gpu/media/android_video_encode_accelerator.cc ...
6 years, 2 months ago (2014-10-15 04:15:46 UTC) #9
changbin
Thanks a lot for your review, xhwang@! Hi Pawel, could you owner review this change? ...
6 years, 2 months ago (2014-10-15 07:00:37 UTC) #10
Pawel Osciak
https://chromiumcodereview.appspot.com/648613003/diff/230001/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/648613003/diff/230001/content/common/gpu/media/android_video_encode_accelerator.cc#newcode82 content/common/gpu/media/android_video_encode_accelerator.cc:82: : COLOR_FORMAT_YUV420_PLANAR; Perhaps: if (formats.count(COLOR_FORMAT_YUV420_SEMIPLANAR) > 0 *pixel_format = ...
6 years, 2 months ago (2014-10-20 08:10:25 UTC) #11
changbin
Pawel@, thanks for your comments. ptal again. https://codereview.chromium.org/648613003/diff/230001/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/648613003/diff/230001/content/common/gpu/media/android_video_encode_accelerator.cc#newcode82 content/common/gpu/media/android_video_encode_accelerator.cc:82: : COLOR_FORMAT_YUV420_PLANAR; ...
6 years, 2 months ago (2014-10-20 14:45:48 UTC) #12
changbin
On 2014/10/20 08:10:25, Pawel Osciak wrote: > https://chromiumcodereview.appspot.com/648613003/diff/230001/content/common/gpu/media/android_video_encode_accelerator.cc > File content/common/gpu/media/android_video_encode_accelerator.cc (right): > > https://chromiumcodereview.appspot.com/648613003/diff/230001/content/common/gpu/media/android_video_encode_accelerator.cc#newcode82 ...
6 years, 2 months ago (2014-10-22 04:13:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648613003/250001
6 years, 2 months ago (2014-10-22 07:53:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648613003/250001
6 years, 2 months ago (2014-10-22 07:55:33 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:250001)
6 years, 2 months ago (2014-10-22 08:43:00 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 08:43:53 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3b7fe737be7b85badc8829bca2e3806c0f7a2a5f
Cr-Commit-Position: refs/heads/master@{#300651}

Powered by Google App Engine
This is Rietveld 408576698