New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 657128 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

ImageCapture: Implement getPhotoCapabilities()/setOptions() (Win)

Project Member Reported by mcasas@chromium.org, Oct 18 2016

Issue description

Implement ImageCapture's |brightness|, |contrast|,
|saturation|, and |sharpness| [1,2] fields.


[1] https://www.w3.org/TR/image-capture/#PhotoCapabilities
[2] https://www.w3.org/TR/image-capture/#PhotoSettings
 

Comment 2 by mcasas@chromium.org, Oct 18 2016

Cc: mcasas@chromium.org xianglu@chromium.org
Components: Blink>MediaStream>ImageCapture
Labels: -OS-Linux -OS-Chrome OS-Windows
Status: Available
Summary: ImageCapture: Implement getPhotoCapabilities()/setOptions() (Win) (was: Implement brightness, contrast, saturation and sharpness get/set (Linux/CrOs))

Comment 3 by sshru...@google.com, Nov 23 2016

Components: -Blink>MediaStream>ImageCapture Blink>ImageCapture
Cc: -mcasas@chromium.org
Labels: M-60
Owner: mcasas@chromium.org
Status: Started (was: Available)
Cc: fbeaufort@chromium.org
Labels: -Pri-3 Pri-2
Some screenshots of AmCap vs the implementation as it is being reviewed.
Am_Cap_Camera_Control.png
386 KB View Download
Am_Cap_Video_Proc_Amp.png
382 KB View Download
get_Capabilities_c920.png
215 KB View Download
get_Settings_c920.png
19.8 KB View Download
Project Member

Comment 7 by bugdroid1@chromium.org, May 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4461e2b935fde482f530465ffdce34c75aff6d50

commit 4461e2b935fde482f530465ffdce34c75aff6d50
Author: mcasas <mcasas@chromium.org>
Date: Sat May 06 19:18:21 2017

Image Capture: wire getCapabilities() in Windows

This CL implements the GetPhotoCapabilities() method for
Windows capture devices, by querying the appropriate
ICameraControl- and IVideoProcAmp-supporting nodes of the
|capture_filter_|.

Screenshots of the produced results vs the AmCap provided
values:
https://ibb.co/cfhCwQ
https://ibb.co/jNugqk
https://ibb.co/feiwO5
https://ibb.co/kShZAk

BUG= 657128 

Review-Url: https://codereview.chromium.org/2856893003
Cr-Commit-Position: refs/heads/master@{#469879}

[modify] https://crrev.com/4461e2b935fde482f530465ffdce34c75aff6d50/media/capture/video/win/video_capture_device_win.cc
[modify] https://crrev.com/4461e2b935fde482f530465ffdce34c75aff6d50/media/capture/video/win/video_capture_device_win.h

Project Member

Comment 8 by bugdroid1@chromium.org, May 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/86adb2c88ba82194458ac09d078a00616c0b22dd

commit 86adb2c88ba82194458ac09d078a00616c0b22dd
Author: mcasas <mcasas@chromium.org>
Date: Sat May 13 03:59:41 2017

Image Capture: wire setPhotoOptions() for Win

This CL wires the photo capabilities setPhotoOptions() method:

- |camera_control_| and |video_control_| are made member
 variables, which forces trivial updates to the lambdas.

- most of the controls are straightforward except white
balance and exposure: those have a 'manual' and 'auto'
that enable the use of |color_temperature| and
|exposure_compensation|, resp.  Since either of them can
be configured in subsequent setPhotoOptions() cycles, we need
member flags to keep the manual/auto state.

BUG= 657128 

Review-Url: https://codereview.chromium.org/2873143002
Cr-Commit-Position: refs/heads/master@{#471554}

[modify] https://crrev.com/86adb2c88ba82194458ac09d078a00616c0b22dd/media/capture/video/win/video_capture_device_win.cc
[modify] https://crrev.com/86adb2c88ba82194458ac09d078a00616c0b22dd/media/capture/video/win/video_capture_device_win.h

Project Member

Comment 9 by bugdroid1@chromium.org, May 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cd356540e646a136d9ac96c49920b0611227fc29

commit cd356540e646a136d9ac96c49920b0611227fc29
Author: mcasas <mcasas@chromium.org>
Date: Sat May 13 04:16:55 2017

Revert of Image Capture: wire setPhotoOptions() for Win (patchset #3 id:80001 of https://codereview.chromium.org/2873143002/ )

Reason for revert:
/video_capture_device_win.obj
ninja -t msvc -e environment.x86 -- C:\b\c\goma_client/gomacc.exe "C:\b\depot_tools\win_toolchain\vs_files\d3cb0e37bdd120ad0ac4650b674b09e81be45616\VC\bin\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/media/capture/capture_lib/video_capture_device_win.obj.rsp /c ../../media/capture/video/win/video_capture_device_win.cc /Foobj/media/capture/capture_lib/video_capture_device_win.obj /Fd"obj/media/capture/capture_lib_cc.pdb"
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(637): error C2220: warning treated as error - no 'object' file generated
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(637): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(644): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(654): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(661): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(670): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(676): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(681): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(686): warning C4189: 'hr': local variable is initialized but not referenced
c:\b\c\b\win_chrome\src\media\capture\video\win\video_capture_device_win.cc(691): warning C4189: 'hr': local variable is initialized but not referenced

Original issue's description:
> Image Capture: wire setPhotoOptions() for Win
>
> This CL wires the photo capabilities setPhotoOptions() method:
>
> - |camera_control_| and |video_control_| are made member
>  variables, which forces trivial updates to the lambdas.
>
> - most of the controls are straightforward except white
> balance and exposure: those have a 'manual' and 'auto'
> that enable the use of |color_temperature| and
> |exposure_compensation|, resp.  Since either of them can
> be configured in subsequent setPhotoOptions() cycles, we need
> member flags to keep the manual/auto state.
>
>
>
> BUG= 657128 
>
> Review-Url: https://codereview.chromium.org/2873143002
> Cr-Commit-Position: refs/heads/master@{#471554}
> Committed: https://chromium.googlesource.com/chromium/src/+/86adb2c88ba82194458ac09d078a00616c0b22dd

TBR=robliao@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 657128 

Review-Url: https://codereview.chromium.org/2876303002
Cr-Commit-Position: refs/heads/master@{#471559}

[modify] https://crrev.com/cd356540e646a136d9ac96c49920b0611227fc29/media/capture/video/win/video_capture_device_win.cc
[modify] https://crrev.com/cd356540e646a136d9ac96c49920b0611227fc29/media/capture/video/win/video_capture_device_win.h

Project Member

Comment 10 by bugdroid1@chromium.org, May 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7bda7a4b1a6b2866538f903e06824500894d7d61

commit 7bda7a4b1a6b2866538f903e06824500894d7d61
Author: mcasas <mcasas@chromium.org>
Date: Sun May 14 08:24:03 2017

RELAND: Image Capture: wire setPhotoOptions() for Win

Original CL got reverted due to constructions like:
if (bla) {
  HRESULT hr = foo();
  DLOG_IF_FAILED_WITH_HRESULT("bla", hr)
}

which caused an error in the waterfall bots (not in the CQ)
because of |hr| going unused.  This CL corrects this.

Original CL description ------------------------------------------------
This CL wires the photo capabilities setPhotoOptions() method:

- |camera_control_| and |video_control_| are made member
 variables, which forces trivial updates to the lambdas.

- most of the controls are straightforward except white
balance and exposure: those have a 'manual' and 'auto'
that enable the use of |color_temperature| and
|exposure_compensation|, resp.  Since either of them can
be configured in subsequent setPhotoOptions() cycles, we need
member flags to keep the manual/auto state.

BUG= 657128 

Review-Url: https://codereview.chromium.org/2873143002
Cr-Commit-Position: refs/heads/master@{#471554}
Committed: https://chromium.googlesource.com/chromium/src/+/86adb2c88ba82194458ac09d078a00616c0b22dd

patch from issue 2873143002 at patchset 80001 (http://crrev.com/2873143002#ps80001)

TBR=robliao@chromium.org

Review-Url: https://codereview.chromium.org/2884513002
Cr-Commit-Position: refs/heads/master@{#471623}

[modify] https://crrev.com/7bda7a4b1a6b2866538f903e06824500894d7d61/media/capture/video/win/video_capture_device_win.cc
[modify] https://crrev.com/7bda7a4b1a6b2866538f903e06824500894d7d61/media/capture/video/win/video_capture_device_win.h

Status: Fixed (was: Started)
#10: Commit 7bda7a4b... initially landed in 60.0.3100.0


Sign in to add a comment