* Add props
* add props (iOS)
* Add use-cases conditionally
* Update CameraView+RecordVideo.swift
* Update RecordingSession.swift
* reconfigure on change
* Throw correct errors
* Check for audio permission
* Move `#if` outward
* Throw appropriate errors
* Update CameraView+RecordVideo.swift
* fix Splashscreen
* Dynamic filePath
* Fix video extension
* add `avci` and `m4v` file types
* Fix RecordVideo errors
* Fix audio setup
* Enable `photo`, `video` and `audio`
* Check for `video={true}` in frameProcessor
* format
* Remove unused DispatchQueue
* Update docs
* Add `supportsPhotoAndVideoCapture`
* Fix view manager
* Fix error not being propagated
* Catch normal errors too
* Update DEVICES.mdx
* Update CAPTURING.mdx
* Update classdocs
39 lines
830 B
TypeScript
39 lines
830 B
TypeScript
/**
|
|
* A single frame, as seen by the camera.
|
|
*/
|
|
export interface Frame {
|
|
/**
|
|
* Whether the underlying buffer is still valid or not. The buffer will be released after the frame processor returns.
|
|
*/
|
|
isValid: boolean;
|
|
/**
|
|
* Whether the underlying buffer is marked as "ready" or not.
|
|
*/
|
|
isReady: boolean;
|
|
/**
|
|
* Returns the width of the frame, in pixels.
|
|
*/
|
|
width: number;
|
|
/**
|
|
* Returns the height of the frame, in pixels.
|
|
*/
|
|
height: number;
|
|
/**
|
|
* Returns the amount of bytes per row.
|
|
*/
|
|
bytesPerRow: number;
|
|
/**
|
|
* Returns the number of planes this frame contains.
|
|
*/
|
|
planesCount: number;
|
|
|
|
/**
|
|
* Returns a string representation of the frame.
|
|
* @example
|
|
* ```ts
|
|
* console.log(frame.toString()) // -> "3840 x 2160 Frame"
|
|
* ```
|
|
*/
|
|
toString(): string;
|
|
}
|