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

Issue 20962003: ExynosVideoEncodeAccelerator (Closed)

Created:
7 years, 4 months ago by sheu
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org, Jorge Lucangeli Obes
Base URL:
https://chromium.googlesource.com/chromium/src.git@screencast_vea
Visibility:
Public.

Description

ExynosVideoEncodeAccelerator This is the media::VideoEncodeAccelerator implementation for the Exynos platform. BUG=221441 BUG=260210 TEST=build, run on CrOS snow Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217805

Patch Set 1 #

Patch Set 2 : 98e247b0 EXPBUF fix. #

Total comments: 6

Patch Set 3 : 847d2469 media::VideoFrame #

Patch Set 4 : a0857c06 Fixes after debugging. #

Patch Set 5 : 53779052 Added framerate changing. #

Total comments: 25

Patch Set 6 : 36a90e71 Tighter bitrate control. #

Patch Set 7 : 156d3432 Update to match 'final' VEA #

Patch Set 8 : 391c4a03 Comments from old EVEA. #

Patch Set 9 : a496697c Nits, rebase. #

Total comments: 66

Patch Set 10 : 0d6e96d3 Nits. #

Total comments: 22

Patch Set 11 : 197ac76e Comments, sandbox fix, #

Total comments: 5

Patch Set 12 : 66c93654 Tested. #

Total comments: 2

Patch Set 13 : 8b1dcfaa Using RequestEncodingParametersChange() now for bitrate in Initialize(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1798 lines, -2 lines) Patch
A content/common/gpu/media/exynos_video_encode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +303 lines, -0 lines 0 comments Download
A content/common/gpu/media/exynos_video_encode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1476 lines, -0 lines 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -2 lines 0 comments Download
M content/common/sandbox_seccomp_bpf_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Pawel Osciak
https://chromiumcodereview.appspot.com/20962003/diff/3001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/3001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode724 content/common/gpu/media/exynos_video_encode_accelerator.cc:724: GscInputRecord& input_record = gsc_input_buffer_map_[gsc_buffer]; I think you need: input_record.buffer_ref ...
7 years, 4 months ago (2013-08-02 11:29:55 UTC) #1
Pawel Osciak
https://chromiumcodereview.appspot.com/20962003/diff/3001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/3001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode612 content/common/gpu/media/exynos_video_encode_accelerator.cc:612: while (!mfc_free_input_buffers_.empty() && !encoder_input_queue_.empty()) { Instead of: while (!mfc_free_input_buffers_.empty() ...
7 years, 4 months ago (2013-08-02 13:54:45 UTC) #2
sheu
Updated for media::VideoFrame, PTAL. Untested as of yet locally, actually. https://chromiumcodereview.appspot.com/20962003/diff/3001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/3001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode612 ...
7 years, 4 months ago (2013-08-03 02:41:19 UTC) #3
sheu
This thing _works_ now.
7 years, 4 months ago (2013-08-07 08:55:30 UTC) #4
Pawel Osciak
Some comments on ps5, but those are nits, so LGTM. https://chromiumcodereview.appspot.com/20962003/diff/25001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/25001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode248 ...
7 years, 4 months ago (2013-08-09 13:40:02 UTC) #5
Pawel Osciak
Perhaps we could make vea.h a part of this CL and submit this?
7 years, 4 months ago (2013-08-12 06:13:39 UTC) #6
sheu
Updated. fischman@: PTAL https://chromiumcodereview.appspot.com/20962003/diff/25001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/25001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode248 content/common/gpu/media/exynos_video_encode_accelerator.cc:248: if (!CreateMfcOutputBuffers()) On 2013/08/09 13:40:02, posciak ...
7 years, 4 months ago (2013-08-12 20:23:59 UTC) #7
sheu
7 years, 4 months ago (2013-08-12 23:42:40 UTC) #8
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/20962003/diff/50001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/50001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode40 content/common/gpu/media/exynos_video_encode_accelerator.cc:40: return false; \ Most of the VDA stuff returns ...
7 years, 4 months ago (2013-08-13 03:25:17 UTC) #9
sheu
https://chromiumcodereview.appspot.com/20962003/diff/50001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/50001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode40 content/common/gpu/media/exynos_video_encode_accelerator.cc:40: return false; \ On 2013/08/13 03:25:17, Ami Fischman wrote: ...
7 years, 4 months ago (2013-08-13 09:06:25 UTC) #10
hshi1
https://codereview.chromium.org/20962003/diff/68001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://codereview.chromium.org/20962003/diff/68001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode253 content/common/gpu/media/exynos_video_encode_accelerator.cc:253: RequestEncodingParametersChangeTask(initial_bitrate, kInitialFramerate); Where is this "kInitialFramerate" defined?
7 years, 4 months ago (2013-08-13 17:11:19 UTC) #11
Ami GONE FROM CHROMIUM
Mostly comment and code structure comments. https://codereview.chromium.org/20962003/diff/50001/content/common/gpu/media/exynos_video_encode_accelerator.h File content/common/gpu/media/exynos_video_encode_accelerator.h (right): https://codereview.chromium.org/20962003/diff/50001/content/common/gpu/media/exynos_video_encode_accelerator.h#newcode2 content/common/gpu/media/exynos_video_encode_accelerator.h:2: // Use of ...
7 years, 4 months ago (2013-08-13 18:13:18 UTC) #12
sheu
Sandbox fix to go with this. Yay for my image-build scripts that automatically add "--no-sandbox" ...
7 years, 4 months ago (2013-08-14 01:00:41 UTC) #13
sheu
Sandbox change. jln@: PTAL at content/common/sandbox_*.
7 years, 4 months ago (2013-08-14 01:02:16 UTC) #14
hshi1
https://codereview.chromium.org/20962003/diff/65001/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://codereview.chromium.org/20962003/diff/65001/content/common/sandbox_seccomp_bpf_linux.cc#newcode1808 content/common/sandbox_seccomp_bpf_linux.cc:1808: read_whitelist->push_back(kDevMfcEncPath); Did you mean write_whitelist->push_back(kDevMfcEncPath); ?
7 years, 4 months ago (2013-08-14 01:21:34 UTC) #15
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/20962003/diff/65001/content/common/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_seccomp_bpf_linux.cc (right): https://chromiumcodereview.appspot.com/20962003/diff/65001/content/common/sandbox_seccomp_bpf_linux.cc#newcode1798 content/common/sandbox_seccomp_bpf_linux.cc:1798: static const char kDevMfcEncPath[] = "/dev/mfc-enc"; Is there no ...
7 years, 4 months ago (2013-08-14 04:30:17 UTC) #16
sheu
I haven't been able to see connection flake with this build. fischman@: PTAL hshi@: I ...
7 years, 4 months ago (2013-08-14 05:44:43 UTC) #17
hshi1
LGTM thanks! Works on my setup.
7 years, 4 months ago (2013-08-14 18:38:40 UTC) #18
Ami GONE FROM CHROMIUM
LGTM if you can add the DCHECK below back. https://codereview.chromium.org/20962003/diff/86001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://codereview.chromium.org/20962003/diff/86001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode1113 content/common/gpu/media/exynos_video_encode_accelerator.cc:1113: ...
7 years, 4 months ago (2013-08-14 19:12:54 UTC) #19
sheu
https://codereview.chromium.org/20962003/diff/86001/content/common/gpu/media/exynos_video_encode_accelerator.cc File content/common/gpu/media/exynos_video_encode_accelerator.cc (right): https://codereview.chromium.org/20962003/diff/86001/content/common/gpu/media/exynos_video_encode_accelerator.cc#newcode1113 content/common/gpu/media/exynos_video_encode_accelerator.cc:1113: DVLOG(3) << "RequestEncodingParametersChangeTask(): bitrate=" << bitrate On 2013/08/14 19:12:55, ...
7 years, 4 months ago (2013-08-14 19:18:05 UTC) #20
Ami GONE FROM CHROMIUM
On Wed, Aug 14, 2013 at 12:18 PM, <sheu@chromium.org> wrote: > https://codereview.chromium.**org/20962003/diff/86001/** > content/common/gpu/media/**exynos_video_encode_**accelerator.cc<https://codereview.chromium.org/20962003/diff/86001/content/common/gpu/media/exynos_video_encode_accelerator.cc> > ...
7 years, 4 months ago (2013-08-14 19:22:36 UTC) #21
sheu
Done.
7 years, 4 months ago (2013-08-14 20:47:16 UTC) #22
sheu
piman@: just you for content/content_common.gypi
7 years, 4 months ago (2013-08-14 20:48:05 UTC) #23
jln (very slow on Chromium)
content/common/sandbox_seccomp_bpf_linux.cc lgtm
7 years, 4 months ago (2013-08-14 20:48:40 UTC) #24
piman
lgtm
7 years, 4 months ago (2013-08-14 21:50:23 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/20962003/97001
7 years, 4 months ago (2013-08-14 22:16:25 UTC) #26
commit-bot: I haz the power
7 years, 4 months ago (2013-08-15 17:10:56 UTC) #27
Message was sent while issue was closed.
Change committed as 217805

Powered by Google App Engine
This is Rietveld 408576698