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

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

Issue 2502723002: ShapeDetection: implement barcode detection, blink part (Closed)
Patch Set: haraken@ 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
« 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 d437ccbb45844cb7cde1cf3f5265a77005caa6f6..9879c48149f117f8b22f777498033dc08883cbe0 100644
--- a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
+++ b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
@@ -8,16 +8,27 @@ module blink.mojom;
import "ui/gfx/geometry/mojo/geometry.mojom";
-// Because "//ui/gfx/geometry/mojo" is not exposed to blink, we need to declare
+// Since "//ui/gfx/geometry/mojo" is not exposed to blink, we need to declare
// a wrapper struct, so that gfx.mojom.RectF will not be directly referenced
-// inside blink, and browser can still use gfx types.
+// inside Blink, and browser can still use gfx types.
struct FaceDetectionResult {
array<gfx.mojom.RectF> boundingBoxes;
};
+struct BarcodeDetectionResult {
+ // Barcode or QR extracted contents (see e.g.
+ // https://github.com/zxing/zxing/wiki/Barcode-Contents).
+ string raw_value;
+ gfx.mojom.RectF bounding_box;
+};
+
interface ShapeDetection {
- // frame_data contains tightly packed image pixels in ARGB32 format,
+ // |frame_data| contains tightly packed image pixels in ARGB32 format,
// row-major order.
- DetectFace(handle<shared_buffer> frame_data, uint32 width, uint32 height)
+ // TODO(mcasas): Consider using mojo::Bitmap here, https://crbug.com/665488.
+ DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height)
=> (FaceDetectionResult result);
+
+ DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height)
+ => (array<BarcodeDetectionResult> results);
};
« 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