DescriptionMediaStream Image Capture (2): Platform::ImageCaptureFrameGrabber and grabFrame()
This CL adds support in Blink and content/ for capturing
VideoFrames via ImageCapture.grabFrame() method.
For that, it adds a web/WebImageCaptureFrameGrabber
interface implemented in a new content class
ImageCaptureFrameGrabber.
In order to pass ImageBitmaps in WebCallbacks,
ImageBitmap gets a method take().
It also splits the current LayoutTests into extended
-creation.html and -grabFrame.html.
BUG=518807
TEST= run demo html in
https://cdn.rawgit.com/Miguelao/demos/master/imagecapture.html
with flag --enable-blink-features=ImageCapture
(click on "Open Camera 320x240", then on
"Create Image Capturer" and finally, repeatedly,
on "grabFrame").
Committed: https://crrev.com/d13e5bd95c4a6799f68d53c3e923ae2cd972da4f
Cr-Commit-Position: refs/heads/master@{#390321}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : reillyg@ comments and made SkBitmap immutable #
Total comments: 6
Patch Set 3 : emircan@ comments and using SkImage (ref counted) instead of SkBitmap (moveable-non-copyable) throu… #
Total comments: 6
Patch Set 4 : junov@ comments and beefed up ImageCapture-grabFrame.html #Patch Set 5 : Rebase. LayoutTests: Replace assert_array_equals with an for-each: assert_aprox_equals #
Total comments: 1
Messages
Total messages: 41 (24 generated)
|