Readme nits again

pull/82/head
Mattia Iavarone 8 years ago
parent cc19729961
commit d89918bc61
  1. 4
      README.md
  2. 1
      cameraview/src/main/java/com/otaliastudios/cameraview/Frame.java

@ -450,6 +450,8 @@ cameraView.addFrameProcessor(new FrameProcessor() {
byte[] data = frame.getData(); byte[] data = frame.getData();
int rotation = frame.getRotation(); int rotation = frame.getRotation();
long time = frame.getTime(); long time = frame.getTime();
Size size = frame.getSize();
int format = frame.getFormat();
// Process... // Process...
} }
} }
@ -469,7 +471,7 @@ apply new data to it. So:
|`frame.getTime()`|`long`|The preview timestamp, in `System.currentTimeMillis()` reference.| |`frame.getTime()`|`long`|The preview timestamp, in `System.currentTimeMillis()` reference.|
|`frame.getRotation()`|`int`|The rotation that should be applied to the byte array in order to see what the user sees.| |`frame.getRotation()`|`int`|The rotation that should be applied to the byte array in order to see what the user sees.|
|`frame.getSize()`|`Size`|The frame size, before any rotation is applied, to access data.| |`frame.getSize()`|`Size`|The frame size, before any rotation is applied, to access data.|
|`frame.getFormat()`|`int`|The frame `ImageFormat`. This will always be `ImageFormat.NV_21` for now.| |`frame.getFormat()`|`int`|The frame `ImageFormat`. This will always be `ImageFormat.NV21` for now.|
|`frame.freeze()`|`Frame`|Clones this frame and makes it immutable. Can be expensive because requires copying the byte array.| |`frame.freeze()`|`Frame`|Clones this frame and makes it immutable. Can be expensive because requires copying the byte array.|
|`frame.release()`|`-`|Disposes the content of this frame. Should be used on frozen frames to release memory.| |`frame.release()`|`-`|Disposes the content of this frame. Should be used on frozen frames to release memory.|

@ -95,6 +95,7 @@ public class Frame {
/** /**
* Returns the data format, in one of the * Returns the data format, in one of the
* {@link android.graphics.ImageFormat} constants. * {@link android.graphics.ImageFormat} constants.
* This will always be {@link android.graphics.ImageFormat#NV21} for now.
* *
* @return the data format * @return the data format
* @see android.graphics.ImageFormat * @see android.graphics.ImageFormat

Loading…
Cancel
Save