TVIVideoFrame Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TVIVideoFrame.h |
Overview
A video frame which has been captured or decoded.
TVIVideoFrame represents a CoreVideo buffer, along with metadata important for rendering and encoding.
– initWithTimestamp:buffer:orientation:
A video frame which has either been captured or decoded.
- (null_unspecified instancetype)initWithTimestamp:(int64_t)timestamp buffer:(nonnull CVImageBufferRef)imageBuffer orientation:(TVIVideoOrientation)orientationParameters
timestamp |
The timestamp at which this frame was captured, or decoded. |
|---|---|
imageBuffer |
A |
orientation |
The orientation at which this frame was captured, or decoded. |
Declared In
TVIVideoFrame.h
timestamp
The timestamp in microseconds at which this frame was captured, or should be rendered.
@property (nonatomic, assign, readonly) int64_t timestampDiscussion
For decoded frames this is the display time measured using the system monotomic clock. For captured frames this should be the capture time measured using the timebase of the capturer.
Declared In
TVIVideoFrame.h
width
A convenience getter which returns the width of imageBuffer.
@property (nonatomic, assign, readonly) size_t widthDeclared In
TVIVideoFrame.h
height
A convenience getter which returns the height of imageBuffer.
@property (nonatomic, assign, readonly) size_t heightDeclared In
TVIVideoFrame.h
imageBuffer
A CVImageBuffer which contains the image data for the frame.
@property (nonatomic, assign, readonly, nonnull) CVImageBufferRef imageBufferDeclared In
TVIVideoFrame.h
orientation
The orientation metadata for the frame.
@property (nonatomic, assign, readonly) TVIVideoOrientation orientationDeclared In
TVIVideoFrame.h