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

Issue 1125263005: MJPEG acceleration for V4L2 (Closed)

Created:
5 years, 7 months ago by henryhsu
Modified:
5 years, 4 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, rickyz+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org, jln+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MJPEG acceleration for V4L2 cpu governor: performance jpeg clock: 200 MHz software decode: latency 10.42ms, cpu 18.85% hardware decode: latency 5.67ms, cpu 13.98% hardware decode with output memcpy: latency 12.57ms, cpu 20.62% We are fixing driver to support IOMMU to avoid memcpy overhead. BUG=426383 TEST=run unittest on peach_pi, apprtc website over night. Committed: https://crrev.com/840b38edfdb6bb8c7c82e6f207bf2d7f6f505249 Cr-Commit-Position: refs/heads/master@{#337990}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Add unittest and address review comments #

Total comments: 38

Patch Set 3 : address kcwu's comments #

Total comments: 21

Patch Set 4 : address review comments of patch set 3 #

Total comments: 167

Patch Set 5 : address comments of patch set 4 #

Total comments: 2

Patch Set 6 : rebase #

Total comments: 66

Patch Set 7 : address review comments of patch set 6 #

Total comments: 19

Patch Set 8 : address comments of patch set 7 #

Total comments: 6

Patch Set 9 : #

Total comments: 26

Patch Set 10 : rebase #

Patch Set 11 : #

Total comments: 20

Patch Set 12 : address comments #

Total comments: 4

Patch Set 13 : ioctl return -1 id #

Total comments: 11

Patch Set 14 : check dqbuf.flags #

Total comments: 13

Patch Set 15 : #

Total comments: 8

Patch Set 16 : #

Patch Set 17 : #

Total comments: 1

Patch Set 18 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+873 lines, -2 lines) Patch
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/media/generic_v4l2_device.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/gpu/media/gpu_jpeg_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -1 line 0 comments Download
M content/common/gpu/media/tegra_v4l2_device.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/v4l2_device.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/common/gpu/media/v4l2_jpeg_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +175 lines, -0 lines 0 comments Download
A content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +670 lines, -0 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 1 chunk +4 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: 55 (7 generated)
wuchengli
https://codereview.chromium.org/1125263005/diff/1/content/browser/renderer_host/gpu_jpeg_decoder.cc File content/browser/renderer_host/gpu_jpeg_decoder.cc (right): https://codereview.chromium.org/1125263005/diff/1/content/browser/renderer_host/gpu_jpeg_decoder.cc#newcode26 content/browser/renderer_host/gpu_jpeg_decoder.cc:26: #elif defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC) Can we do this? #if ...
5 years, 7 months ago (2015-05-25 10:29:24 UTC) #2
Pawel Osciak
https://codereview.chromium.org/1125263005/diff/1/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/1/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode456 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:456: // TODO(posciak): Fix this to be non-Exynos specific. On ...
5 years, 7 months ago (2015-05-25 11:05:01 UTC) #4
kcwu
https://codereview.chromium.org/1125263005/diff/1/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/1/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode112 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:112: client_ = client_ptr_factory_->GetWeakPtr(); No need to use weak pointer ...
5 years, 7 months ago (2015-05-26 10:47:23 UTC) #6
henryhsu
Please ignore TIME_ENTER and TIME_LEAVE in v4l2_jpeg_decode_accelerator.cc. These two macros are used for measuring latency ...
5 years, 6 months ago (2015-06-05 03:28:56 UTC) #7
kcwu
https://codereview.chromium.org/1125263005/diff/20001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc File content/common/gpu/media/jpeg_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/1125263005/diff/20001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc#newcode48 content/common/gpu/media/jpeg_decode_accelerator_unittest.cc:48: explicit TestImageFile(base::FilePath::StringType file_name) const ... & https://codereview.chromium.org/1125263005/diff/20001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc#newcode72 content/common/gpu/media/jpeg_decode_accelerator_unittest.cc:72: JpegClient(std::vector<TestImageFile*>* ...
5 years, 6 months ago (2015-06-08 10:04:29 UTC) #8
henryhsu
PTAL https://codereview.chromium.org/1125263005/diff/20001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc File content/common/gpu/media/jpeg_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/1125263005/diff/20001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc#newcode48 content/common/gpu/media/jpeg_decode_accelerator_unittest.cc:48: explicit TestImageFile(base::FilePath::StringType file_name) On 2015/06/08 10:04:28, kcwu wrote: ...
5 years, 6 months ago (2015-06-09 10:20:06 UTC) #9
kcwu
media/test/data/README also needs update for the new jpeg file. https://codereview.chromium.org/1125263005/diff/40001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc File content/common/gpu/media/jpeg_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/1125263005/diff/40001/content/common/gpu/media/jpeg_decode_accelerator_unittest.cc#newcode105 content/common/gpu/media/jpeg_decode_accelerator_unittest.cc:105: ...
5 years, 6 months ago (2015-06-09 12:17:44 UTC) #10
wuchengli
https://codereview.chromium.org/1125263005/diff/40001/content/browser/renderer_host/gpu_jpeg_decoder.cc File content/browser/renderer_host/gpu_jpeg_decoder.cc (right): https://codereview.chromium.org/1125263005/diff/40001/content/browser/renderer_host/gpu_jpeg_decoder.cc#newcode1 content/browser/renderer_host/gpu_jpeg_decoder.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 6 months ago (2015-06-11 11:08:54 UTC) #11
wuchengli
I'll continue the review tomorrow. https://codereview.chromium.org/1125263005/diff/40001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/40001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode32 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:32: IOCTL_OR_ERROR_RETURN_VALUE(type, arg, false) |type| ...
5 years, 6 months ago (2015-06-11 11:19:47 UTC) #12
henryhsu
all done https://codereview.chromium.org/1125263005/diff/40001/content/browser/renderer_host/gpu_jpeg_decoder.cc File content/browser/renderer_host/gpu_jpeg_decoder.cc (right): https://codereview.chromium.org/1125263005/diff/40001/content/browser/renderer_host/gpu_jpeg_decoder.cc#newcode27 content/browser/renderer_host/gpu_jpeg_decoder.cc:27: return true; On 2015/06/11 11:08:54, wuchengli wrote: ...
5 years, 6 months ago (2015-06-12 05:48:00 UTC) #13
kcwu
lgtm nits https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode68 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:68: : reset_buffer_flag_(false), s/false/0/ https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode124 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:124: device_weak_, bitstream_buffer_id, ...
5 years, 6 months ago (2015-06-12 06:59:42 UTC) #14
wuchengli
I haven't finished the review. I'll continue next week. https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode5 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:5: ...
5 years, 6 months ago (2015-06-12 11:07:38 UTC) #15
wuchengli
https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode143 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:143: LOG(ERROR) << "Initialize(): encoder thread failed to start"; s/encoder/decoder/ ...
5 years, 6 months ago (2015-06-15 05:58:37 UTC) #16
wuchengli
https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode43 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:43: V4L2JpegDecodeAccelerator::InputRecord::InputRecord() : at_device(false) { Initialize |address| and |length|. https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode78 ...
5 years, 6 months ago (2015-06-15 07:55:28 UTC) #17
Pawel Osciak
https://chromiumcodereview.appspot.com/1125263005/diff/60001/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc File content/common/gpu/media/gpu_jpeg_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/1125263005/diff/60001/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc#newcode302 content/common/gpu/media/gpu_jpeg_decode_accelerator.cc:302: if (device.get()) { Nit: I think just if (device) ...
5 years, 6 months ago (2015-06-16 07:13:22 UTC) #18
henryhsu
all done. PTAL https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc File content/common/gpu/media/gpu_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc#newcode302 content/common/gpu/media/gpu_jpeg_decode_accelerator.cc:302: if (device.get()) { On 2015/06/16 07:13:21, ...
5 years, 6 months ago (2015-06-16 09:37:25 UTC) #20
henryhsu
https://codereview.chromium.org/1125263005/diff/100001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/100001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode433 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:433: if (!recreate_input_buffers_pending_ && !recreate_output_buffers_pending_) { This check can be ...
5 years, 6 months ago (2015-06-16 09:53:50 UTC) #21
wuchengli
https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode279 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:279: reqbufs.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; On 2015/06/16 09:37:22, henryhsu wrote: > ...
5 years, 6 months ago (2015-06-22 22:40:55 UTC) #22
henryhsu
PTAL. https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/60001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode579 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:579: input_buffer_queued_count_++; On 2015/06/22 22:40:53, wuchengli wrote: > On ...
5 years, 6 months ago (2015-06-23 10:08:17 UTC) #23
wuchengli
https://codereview.chromium.org/1125263005/diff/120001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/120001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode355 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:355: free_input_buffers_.clear(); On 2015/06/23 10:08:17, henryhsu wrote: > On 2015/06/22 ...
5 years, 6 months ago (2015-06-25 08:29:54 UTC) #24
henryhsu
PTAL. https://codereview.chromium.org/1125263005/diff/120001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/120001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode355 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:355: free_input_buffers_.clear(); On 2015/06/25 08:29:53, wuchengli wrote: > On ...
5 years, 6 months ago (2015-06-26 03:39:33 UTC) #25
wuchengli
https://codereview.chromium.org/1125263005/diff/140001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/140001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode35 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:35: : address(nullptr), length(0), at_device(false) { On 2015/06/26 03:39:32, henryhsu ...
5 years, 6 months ago (2015-06-26 23:42:49 UTC) #26
henryhsu
https://codereview.chromium.org/1125263005/diff/140001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/140001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode449 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:449: while (OutputBufferQueuedCount() < InputBufferQueuedCount() && On 2015/06/26 23:42:48, wuchengli ...
5 years, 5 months ago (2015-06-29 03:35:02 UTC) #27
henryhsu
https://codereview.chromium.org/1125263005/diff/160001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/160001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode420 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:420: // Stop enqueue input record when input/output buffers are ...
5 years, 5 months ago (2015-06-29 05:20:52 UTC) #28
wuchengli
https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode461 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:461: while (!free_output_buffers_.empty()) { If we queue as many as ...
5 years, 5 months ago (2015-06-30 02:52:15 UTC) #29
wuchengli
https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode112 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:112: struct v4l2_capability caps; memset to clear it. https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode216 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:216: ...
5 years, 5 months ago (2015-06-30 04:50:04 UTC) #30
wuchengli
https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode15 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:15: PLOG(ERROR) << __func__ << "(): ioctl() failed: " << ...
5 years, 5 months ago (2015-06-30 05:34:38 UTC) #31
henryhsu
all done. https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/180001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode15 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:15: PLOG(ERROR) << __func__ << "(): ioctl() failed: ...
5 years, 5 months ago (2015-06-30 07:36:16 UTC) #32
wuchengli
https://codereview.chromium.org/1125263005/diff/220001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/220001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode149 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:149: DCHECK_EQ(video_frame->format(), media::VideoFrame::I420); NotifyError UNSUPPORTED_JPEG if the format is I420. ...
5 years, 5 months ago (2015-06-30 08:08:56 UTC) #33
kcwu
https://codereview.chromium.org/1125263005/diff/220001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/220001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode84 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:84: while (!input_jobs_.empty()) input_jobs_.pop(); Did git cl format shorten to ...
5 years, 5 months ago (2015-06-30 10:06:10 UTC) #34
henryhsu
all done. https://codereview.chromium.org/1125263005/diff/220001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/220001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode84 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:84: while (!input_jobs_.empty()) input_jobs_.pop(); On 2015/06/30 10:06:09, kcwu ...
5 years, 5 months ago (2015-07-01 06:00:23 UTC) #35
kcwu
https://codereview.chromium.org/1125263005/diff/240001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/240001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode38 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:38: : address(nullptr), length(0), buffer_id(-1), at_device(false) { use JDA::kInvalidBitstreamBufferId for ...
5 years, 5 months ago (2015-07-01 08:25:31 UTC) #36
henryhsu
https://codereview.chromium.org/1125263005/diff/240001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/240001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode38 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:38: : address(nullptr), length(0), buffer_id(-1), at_device(false) { On 2015/07/01 08:25:31, ...
5 years, 5 months ago (2015-07-01 11:32:04 UTC) #37
wuchengli
https://codereview.chromium.org/1125263005/diff/260001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/260001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode454 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:454: if (!input_jobs_.empty() && !free_input_buffers_.empty() && We should still allow ...
5 years, 5 months ago (2015-07-01 11:46:47 UTC) #38
wuchengli
https://codereview.chromium.org/1125263005/diff/260001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/260001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode532 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:532: running_jobs_.pop(); On 2015/07/01 11:32:04, henryhsu wrote: > Maybe we ...
5 years, 5 months ago (2015-07-02 07:19:37 UTC) #39
henryhsu
https://codereview.chromium.org/1125263005/diff/260001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/260001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode454 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:454: if (!input_jobs_.empty() && !free_input_buffers_.empty() && On 2015/07/01 11:46:47, wuchengli ...
5 years, 5 months ago (2015-07-02 12:05:27 UTC) #40
wuchengli
https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode426 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:426: if (InputBufferQueuedCount() > 0 || OutputBufferQueuedCount() > 0) Change ...
5 years, 5 months ago (2015-07-06 09:39:45 UTC) #41
wuchengli
LGTM. Remember to update the code after Pawel gets the reply from v4l2 group.
5 years, 5 months ago (2015-07-07 10:04:36 UTC) #42
henryhsu
piman@chromium.org: Please review changes in Hi piman, Please take a look. Thanks. https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc ...
5 years, 5 months ago (2015-07-07 10:04:47 UTC) #44
piman
https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode113 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:113: weak_factory_.GetWeakPtr(), bitstream_buffer_id, error)); I'm don't think it is generally ...
5 years, 5 months ago (2015-07-08 00:18:07 UTC) #45
henryhsu
PTAL https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/280001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode113 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:113: weak_factory_.GetWeakPtr(), bitstream_buffer_id, error)); On 2015/07/08 00:18:07, piman (Very ...
5 years, 5 months ago (2015-07-08 03:10:31 UTC) #46
wuchengli
https://codereview.chromium.org/1125263005/diff/290010/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/290010/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode295 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:295: PostNotifyError(media::JpegDecodeAccelerator::kInvalidBitstreamBufferId, Do we need to add media::JpegDecodeAccelerator:: given V4L2JDA ...
5 years, 5 months ago (2015-07-08 03:13:37 UTC) #47
henryhsu
https://codereview.chromium.org/1125263005/diff/290010/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/290010/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode295 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:295: PostNotifyError(media::JpegDecodeAccelerator::kInvalidBitstreamBufferId, On 2015/07/08 03:13:37, wuchengli wrote: > Do we ...
5 years, 5 months ago (2015-07-08 06:15:54 UTC) #48
piman
LGTM at a high level, but I mostly only looked at the threading and lifetime, ...
5 years, 5 months ago (2015-07-08 21:19:26 UTC) #49
wuchengli
lgtm https://codereview.chromium.org/1125263005/diff/330001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc File content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc (right): https://codereview.chromium.org/1125263005/diff/330001/content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc#newcode522 content/common/gpu/media/v4l2_jpeg_decode_accelerator.cc:522: // OutputBufferQueueCount() to avoid pop |running_jobs_| twice for ...
5 years, 5 months ago (2015-07-09 03:01:49 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1125263005/350001
5 years, 5 months ago (2015-07-09 03:50:11 UTC) #53
commit-bot: I haz the power
Committed patchset #18 (id:350001)
5 years, 5 months ago (2015-07-09 05:30:00 UTC) #54
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 05:30:46 UTC) #55
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/840b38edfdb6bb8c7c82e6f207bf2d7f6f505249
Cr-Commit-Position: refs/heads/master@{#337990}

Powered by Google App Engine
This is Rietveld 408576698