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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h

Issue 2455973007: FaceDetection: add support for <video> input (Closed)
Patch Set: xianglu@ comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
index 6cb1723badaef8aad0f8449ea4c4f76ce7a13f52..61906cb473459a1a40d5616eb64958231e198edb 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
@@ -32,7 +32,14 @@ class MODULES_EXPORT FaceDetector final
ScriptPromise detectFacesOnImageElement(ScriptPromiseResolver*,
const HTMLImageElement*);
ScriptPromise detectFacesOnImageBitmap(ScriptPromiseResolver*, ImageBitmap*);
-
+ ScriptPromise detectFacesOnVideoElement(ScriptPromiseResolver*,
+ const HTMLVideoElement*);
+
+ ScriptPromise detectFacesOnData(ScriptPromiseResolver*,
+ uint8_t* data,
+ int size,
+ int width,
+ int height);
void onDetectFace(ScriptPromiseResolver*,
mojom::blink::FaceDetectionResultPtr);

Powered by Google App Engine
This is Rietveld 408576698