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

Issue 2344123002: ImageCapture: Implement TakePhoto() for Linux/CrOs (Closed)

Created:
4 years, 3 months ago by xianglu
Modified:
4 years, 3 months ago
Reviewers:
mcasas
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: Implement TakePhoto() for Linux/CrOs This CL implements ImageCapture's takePhoto() method by enqueueing a callback every time the method is called. Check the queue when a new frame is captured in DoCapture(), and execute callbacks with a blob argument. Add a new method GetPhotoBlob() to construct blob. If the source image is originally in JPEG format, it's copied to blob directly. Otherwise convert the source image to RGB format and encode it to PNG. R=mcasas@chromium.org BUG=646430 TEST=All tests in VideoCaptureDeviceTests passed. Committed: https://crrev.com/5a18d02471b9d6bdfcc3f38ac449f084699cbe26 Cr-Commit-Position: refs/heads/master@{#419484}

Patch Set 1 #

Total comments: 29

Patch Set 2 : CaptureVideo TakePhoto() for Linux/CrOs: Removed logs and reorganized code slightly. #

Total comments: 1

Patch Set 3 : v4l2_capture_delegate.cc: GetPhotoBlob() use if/else to handle I420 and RGB24 format. #

Total comments: 2

Patch Set 4 : v4l2_capture_delegate: changed GetPhotoBlob() input parameter to bare minimum #

Patch Set 5 : Rebased on most recent master revision #

Patch Set 6 : v4l2_capture_delegate.cc l.152: Added back '&0xf0' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -12 lines) Patch
M media/capture/BUILD.gn View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.cc View 1 2 3 4 chunks +72 lines, -0 lines 0 comments Download
M media/capture/video/linux/video_capture_device_linux.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/capture/video/linux/video_capture_device_linux.cc View 1 1 chunk +10 lines, -1 line 0 comments Download
M media/capture/video/video_capture_device_unittest.cc View 1 2 3 4 5 2 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
xianglu
4 years, 3 months ago (2016-09-16 02:35:49 UTC) #1
mcasas
Some comments. Also, on the redaction of the CL: - give better coordinates in the ...
4 years, 3 months ago (2016-09-16 03:50:37 UTC) #2
xianglu
ptal. https://codereview.chromium.org/2344123002/diff/1/media/capture/BUILD.gn File media/capture/BUILD.gn (right): https://codereview.chromium.org/2344123002/diff/1/media/capture/BUILD.gn#newcode82 media/capture/BUILD.gn:82: "//third_party/libyuv", On 2016/09/16 03:50:36, mcasas wrote: > Since ...
4 years, 3 months ago (2016-09-16 18:22:34 UTC) #4
mcasas
https://codereview.chromium.org/2344123002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc File media/capture/video/linux/v4l2_capture_delegate.cc (right): https://codereview.chromium.org/2344123002/diff/1/media/capture/video/linux/v4l2_capture_delegate.cc#newcode456 media/capture/video/linux/v4l2_capture_delegate.cc:456: DVLOG(3) << "FORMAT not supported."; On 2016/09/16 18:22:33, xianglu ...
4 years, 3 months ago (2016-09-16 18:59:15 UTC) #5
xianglu
ptal.
4 years, 3 months ago (2016-09-16 20:27:58 UTC) #6
mcasas
lgtm % comments below. https://codereview.chromium.org/2344123002/diff/40001/media/capture/video/linux/v4l2_capture_delegate.cc File media/capture/video/linux/v4l2_capture_delegate.cc (right): https://codereview.chromium.org/2344123002/diff/40001/media/capture/video/linux/v4l2_capture_delegate.cc#newcode422 media/capture/video/linux/v4l2_capture_delegate.cc:422: DLOG(ERROR) << "blob pointer is ...
4 years, 3 months ago (2016-09-16 21:17:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344123002/100001
4 years, 3 months ago (2016-09-19 06:11:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/32634)
4 years, 3 months ago (2016-09-19 07:16:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344123002/100001
4 years, 3 months ago (2016-09-19 16:25:39 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-19 16:58:29 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 17:00:03 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5a18d02471b9d6bdfcc3f38ac449f084699cbe26
Cr-Commit-Position: refs/heads/master@{#419484}

Powered by Google App Engine
This is Rietveld 408576698