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

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

Issue 2502763005: ShapeDetection: Add FaceDetectorOptions for fastMode and maxDetectedFaces (Closed)
Patch Set: Change naming in mojom 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
« no previous file with comments | « third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2a9358971d17cd44ac1f266adc9bf312a818f37e 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,16 @@ 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)
Tom Sepez 2016/11/22 01:01:59 nit: 80 cols.
=> (FaceDetectionResult result);
DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height)
« no previous file with comments | « third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698