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

Issue 760963003: Adds fake hardware video encoder. (Closed)

Created:
6 years ago by hellner1
Modified:
5 years, 10 months ago
CC:
chromium-reviews, posciak+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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds fake hardware video encoder. Adds a fake video encode accelerator (hardware encoder) implementation that can be used for testing (on devices without hardware encoder or missing implementation) and testing the efficiency of an existing hardware encoder. BUG=440843 Committed: https://crrev.com/a15357a6a83685010421056c16d52e94077569cd Cr-Commit-Position: refs/heads/master@{#312893}

Patch Set 1 #

Patch Set 2 : made the fake video encode accelerator look more like the one in media/cast #

Patch Set 3 : Moved the fake implementation to media/video #

Patch Set 4 : forgot to change include guards #

Patch Set 5 : Rebase #

Total comments: 34

Patch Set 6 : Updates according to comments. #

Total comments: 8

Patch Set 7 : updates according to comments. #

Total comments: 13

Patch Set 8 : Updates according to comments. #

Patch Set 9 : updates according to comments #

Total comments: 11

Patch Set 10 : Updates according to comments. #

Patch Set 11 : rebase #

Patch Set 12 : Update according to comments #

Patch Set 13 : rebase #

Total comments: 14

Patch Set 14 : Rebase #

Patch Set 15 : Fake video encoder wasnt listing supported profiles which prevented it from being used in chromium … #

Patch Set 16 : Updates according to comments #

Total comments: 1

Patch Set 17 : rebase #

Patch Set 18 : rebase #

Patch Set 19 : Fixes + rebase #

Patch Set 20 : Fixes broken unittest #

Patch Set 21 : Rebase #

Patch Set 22 : updated gn-files to match gyp #

Patch Set 23 : Fixes link issue for component build #

Patch Set 24 : Fixed broken unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -294 lines) Patch
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 9 chunks +32 lines, -3 lines 0 comments Download
M media/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M media/cast/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -2 lines 0 comments Download
M media/cast/cast_testing.gypi View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M media/cast/sender/external_video_encoder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +7 lines, -10 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +8 lines, -7 lines 0 comments Download
D media/cast/test/fake_video_encode_accelerator.h View 1 2 1 chunk +0 lines, -79 lines 0 comments Download
D media/cast/test/fake_video_encode_accelerator.cc View 1 2 1 chunk +0 lines, -121 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
A + media/video/fake_video_encode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +30 lines, -24 lines 0 comments Download
A + media/video/fake_video_encode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +63 lines, -44 lines 0 comments Download

Messages

Total messages: 60 (19 generated)
hellner1
"I'm also not clear on the use case here. What would this benchmark?" - Pawel ...
6 years ago (2014-11-27 02:09:15 UTC) #2
Pawel Osciak
On 2014/11/27 02:09:15, hellner1 wrote: > "I'm also not clear on the use case here. ...
6 years ago (2014-11-27 02:25:11 UTC) #3
hellner1
On 2014/11/27 02:25:11, Pawel Osciak wrote: > On 2014/11/27 02:09:15, hellner1 wrote: > > "I'm ...
6 years ago (2014-12-01 23:21:28 UTC) #4
hellner1
+vrk for media/* PTAL
6 years ago (2014-12-01 23:22:08 UTC) #6
hellner1
Sorry, how about vrk for media/media.gyp +hclam for media/cast
6 years ago (2014-12-01 23:29:31 UTC) #8
hellner1
Ping @ everyone but Miguel
6 years ago (2014-12-08 19:30:29 UTC) #9
xhwang
Replace vrk with sandersd as the media/ owner.
6 years ago (2014-12-08 20:17:36 UTC) #11
wuchengli
https://codereview.chromium.org/760963003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/760963003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode1 content/common/gpu/media/video_encode_accelerator_unittest.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years ago (2014-12-09 14:29:25 UTC) #12
hellner1
PTAL https://codereview.chromium.org/760963003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/760963003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode1 content/common/gpu/media/video_encode_accelerator_unittest.cc:1: // Copyright 2013 The Chromium Authors. All rights ...
6 years ago (2014-12-10 22:38:59 UTC) #13
wuchengli
https://codereview.chromium.org/760963003/diff/80001/media/video/fake_video_encode_accelerator.cc File media/video/fake_video_encode_accelerator.cc (right): https://codereview.chromium.org/760963003/diff/80001/media/video/fake_video_encode_accelerator.cc#newcode80 media/video/fake_video_encode_accelerator.cc:80: DoBitstreamBufferReady(id, On 2014/12/10 22:38:59, hellner1 wrote: > On 2014/12/09 ...
6 years ago (2014-12-11 02:14:32 UTC) #14
hellner1
PTAL https://codereview.chromium.org/760963003/diff/80001/media/video/fake_video_encode_accelerator.cc File media/video/fake_video_encode_accelerator.cc (right): https://codereview.chromium.org/760963003/diff/80001/media/video/fake_video_encode_accelerator.cc#newcode80 media/video/fake_video_encode_accelerator.cc:80: DoBitstreamBufferReady(id, On 2014/12/11 02:14:31, wuchengli wrote: > On ...
6 years ago (2014-12-11 19:34:19 UTC) #15
wuchengli
https://codereview.chromium.org/760963003/diff/120001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/760963003/diff/120001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode729 content/common/gpu/media/video_encode_accelerator_unittest.cc:729: scoped_refptr<base::SingleThreadTaskRunner>( do we need this casting? https://codereview.chromium.org/760963003/diff/120001/media/cast/cast_testing.gypi File media/cast/cast_testing.gypi ...
6 years ago (2014-12-12 03:35:50 UTC) #16
hellner1
PTAL https://codereview.chromium.org/760963003/diff/120001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/760963003/diff/120001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode729 content/common/gpu/media/video_encode_accelerator_unittest.cc:729: scoped_refptr<base::SingleThreadTaskRunner>( On 2014/12/12 03:35:50, wuchengli wrote: > do ...
6 years ago (2014-12-12 19:24:41 UTC) #17
wuchengli
https://codereview.chromium.org/760963003/diff/120001/media/video/fake_video_encode_accelerator.cc File media/video/fake_video_encode_accelerator.cc (right): https://codereview.chromium.org/760963003/diff/120001/media/video/fake_video_encode_accelerator.cc#newcode78 media/video/fake_video_encode_accelerator.cc:78: client_->BitstreamBufferReady(id, kMinimumOutputBufferSize, is_key_frame); On 2014/12/12 19:24:41, hellner1 wrote: > ...
6 years ago (2014-12-13 02:10:22 UTC) #18
hellner1
On 2014/12/13 02:10:22, wuchengli wrote: > https://codereview.chromium.org/760963003/diff/120001/media/video/fake_video_encode_accelerator.cc > File media/video/fake_video_encode_accelerator.cc (right): > > https://codereview.chromium.org/760963003/diff/120001/media/video/fake_video_encode_accelerator.cc#newcode78 > ...
6 years ago (2014-12-15 21:04:24 UTC) #19
wuchengli
https://codereview.chromium.org/760963003/diff/160001/media/video/fake_video_encode_accelerator.cc File media/video/fake_video_encode_accelerator.cc (right): https://codereview.chromium.org/760963003/diff/160001/media/video/fake_video_encode_accelerator.cc#newcode83 media/video/fake_video_encode_accelerator.cc:83: EncodeTask(); This should call DoBitstreamBufferReady to have the same ...
6 years ago (2014-12-16 02:21:48 UTC) #20
hellner1
PTAL https://codereview.chromium.org/760963003/diff/160001/media/video/fake_video_encode_accelerator.cc File media/video/fake_video_encode_accelerator.cc (right): https://codereview.chromium.org/760963003/diff/160001/media/video/fake_video_encode_accelerator.cc#newcode83 media/video/fake_video_encode_accelerator.cc:83: EncodeTask(); On 2014/12/16 02:21:48, wuchengli wrote: > This ...
6 years ago (2014-12-16 20:14:08 UTC) #21
wuchengli
LGTM. I'll leave the rest for other people to review. https://codereview.chromium.org/760963003/diff/160001/media/video/fake_video_encode_accelerator.cc File media/video/fake_video_encode_accelerator.cc (right): https://codereview.chromium.org/760963003/diff/160001/media/video/fake_video_encode_accelerator.cc#newcode83 ...
6 years ago (2014-12-17 03:21:22 UTC) #22
hellner1
On 2014/12/17 03:21:22, wuchengli wrote: > LGTM. I'll leave the rest for other people to ...
6 years ago (2014-12-17 18:26:14 UTC) #23
hellner1
-Alpha (on vacation), +mikhal Mikhal, PTAL at media/cast Pawel, ping on content/common/gpu/* sandersd, PTAL at ...
6 years ago (2014-12-17 18:33:05 UTC) #25
hellner1
mikhal -> miu miu, PTAL at media/cast
6 years ago (2014-12-17 18:38:48 UTC) #27
miu
Mostly minor things: https://codereview.chromium.org/760963003/diff/240001/media/cast/sender/video_sender_unittest.cc File media/cast/sender/video_sender_unittest.cc (right): https://codereview.chromium.org/760963003/diff/240001/media/cast/sender/video_sender_unittest.cc#newcode257 media/cast/sender/video_sender_unittest.cc:257: const std::vector<uint32>* stored_bitrates_; Please add a ...
6 years ago (2014-12-20 03:37:58 UTC) #28
hellner1
PTAL https://codereview.chromium.org/760963003/diff/240001/media/cast/sender/video_sender_unittest.cc File media/cast/sender/video_sender_unittest.cc (right): https://codereview.chromium.org/760963003/diff/240001/media/cast/sender/video_sender_unittest.cc#newcode257 media/cast/sender/video_sender_unittest.cc:257: const std::vector<uint32>* stored_bitrates_; On 2014/12/20 03:37:57, miu wrote: ...
5 years, 11 months ago (2015-01-07 16:41:32 UTC) #29
miu
lgtm https://codereview.chromium.org/760963003/diff/300001/media/cast/sender/video_sender_unittest.cc File media/cast/sender/video_sender_unittest.cc (right): https://codereview.chromium.org/760963003/diff/300001/media/cast/sender/video_sender_unittest.cc#newcode137 media/cast/sender/video_sender_unittest.cc:137: : stored_bitrates_(NULL) { nit: nullptr, not NULL
5 years, 11 months ago (2015-01-08 20:00:07 UTC) #30
hellner1
Ping at posciak: - content/common/gpu/media/video_encode_accelerator_unittest.cc sandersd: - media/media.gyp - media/video/fake_video_encode_accelerator.h/cc
5 years, 11 months ago (2015-01-08 21:10:52 UTC) #31
sandersd (OOO until July 31)
I don't know this API like I know the VDA API, but generally lgtm for ...
5 years, 11 months ago (2015-01-10 01:38:36 UTC) #32
hellner1
On 2015/01/10 01:38:36, sandersd wrote: > I don't know this API like I know the ...
5 years, 11 months ago (2015-01-21 20:14:35 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760963003/440001
5 years, 11 months ago (2015-01-22 16:40:05 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/830) linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/52011) Try ...
5 years, 11 months ago (2015-01-22 16:48:01 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760963003/460001
5 years, 11 months ago (2015-01-22 17:18:37 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/35266) Try jobs failed on following ...
5 years, 11 months ago (2015-01-22 17:29:41 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760963003/460001
5 years, 11 months ago (2015-01-22 18:12:42 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/35266)
5 years, 11 months ago (2015-01-22 18:14:09 UTC) #47
hellner1
"Ok. Could we please reuse the existing mock implementation in cast? I think it should ...
5 years, 11 months ago (2015-01-22 19:42:38 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760963003/480001
5 years, 11 months ago (2015-01-22 22:43:10 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/18788) Try jobs failed on following ...
5 years, 11 months ago (2015-01-23 00:28:17 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760963003/480001
5 years, 11 months ago (2015-01-23 06:35:47 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/24973) win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/18797) win_chromium_x64_rel_ng ...
5 years, 11 months ago (2015-01-23 06:36:18 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/760963003/500001
5 years, 11 months ago (2015-01-23 17:22:06 UTC) #58
commit-bot: I haz the power
Committed patchset #24 (id:500001)
5 years, 11 months ago (2015-01-23 19:19:15 UTC) #59
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 19:21:18 UTC) #60
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/a15357a6a83685010421056c16d52e94077569cd
Cr-Commit-Position: refs/heads/master@{#312893}

Powered by Google App Engine
This is Rietveld 408576698