onPreviewFrame property
Called as preview frames are displayed.
If using the ImageFormat.yv12 format, refer to the equations in CameraParameters.setPreviewFormat for the arrangement of the pixel data in the preview callback buffers.
data
: The contents of the preview frame in the format defined by
ImageFormat, which can be queried with
CameraParameters.getPreviewFormat. If
CameraParameters.setPreviewFormat is never called, the default will be
the YCbCr_420_SP (ImageFormat.nv21) format.
Implementation
final DataCallback onPreviewFrame;