public static interface PreviewBuffer.FrameHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleFrame(byte[] frame,
int width,
int height,
int frameOrientation,
android.graphics.Rect finderRect)
Invoked for every new camera preview frame
|
boolean handleFrame(byte[] frame,
int width,
int height,
int frameOrientation,
android.graphics.Rect finderRect)
frame - image in NV21 formatwidth - width of the imageheight - height of the imageframeOrientation - orientation of the image (in degrees)finderRect - finder overlay areatrue if frame should be considered as "intercepted", i.e. no further
processing should be performed on it. false to allow other frame handlers to
process this frame.