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

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

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)
Patch Set: 80 cols 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..fc9e42e0ad4264c3181e7c765502dd7ca214f6dd 100644
--- a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
+++ b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
@@ -12,7 +12,7 @@ import "ui/gfx/geometry/mojo/geometry.mojom";
// a wrapper struct, so that gfx.mojom.RectF will not be directly referenced
// inside Blink, and browser can still use gfx types.
struct FaceDetectionResult {
- array<gfx.mojom.RectF> boundingBoxes;
+ array<gfx.mojom.RectF> bounding_boxes;
};
struct BarcodeDetectionResult {
@@ -22,11 +22,17 @@ struct BarcodeDetectionResult {
gfx.mojom.RectF bounding_box;
};
+struct FaceDetectorOptions {
+ uint32 max_detected_faces;
+ bool fast_mode;
+};
+
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)
Reilly Grant (use Gerrit) 2016/11/22 20:33:33 nit: indentation
=> (FaceDetectionResult result);
DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height)

Powered by Google App Engine
This is Rietveld 408576698