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

Unified Diff: third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)
Patch Set: 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/public/platform/modules/shapedetection/shapedetection.mojom
diff --git a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
index 9879c48149f117f8b22f777498033dc08883cbe0..e860690de45baa246b57ccddb642965b9b26c05c 100644
--- a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
+++ b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
@@ -22,11 +22,16 @@ struct BarcodeDetectionResult {
gfx.mojom.RectF bounding_box;
};
+struct FaceDetectorOptions {
+ uint32 maxDetectedFaces;
+ bool fastMode;
mcasas 2016/11/21 23:19:26 s/maxDetectedFaces/max_detected_faces/ s/fastMode/
xianglu 2016/11/22 00:59:13 Done.
+};
+
interface ShapeDetection {
// |frame_data| contains tightly packed image pixels in ARGB32 format,
// row-major order.
// TODO(mcasas): Consider using mojo::Bitmap here, https://crbug.com/665488.
- DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height)
+ DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height, FaceDetectorOptions options)
=> (FaceDetectionResult result);
DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height)

Powered by Google App Engine
This is Rietveld 408576698