VKVideoFrame Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | VKVideoFrame.h |
Overview
Videos are consist of many still images and when those images are shown rapidly, then the animation will be come out. VKVideoFrame holds all data of one of the still images. Please note that the data is in raw format (not encoded)
– init
Create a VKVideoFrame object & initialize it
- (id)initReturn Value
VKVideoFrame object
Declared In
VKVideoFrame.h
width
Frame’s width retrieved from AVCodecContext
@property (nonatomic, assign) int widthDeclared In
VKVideoFrame.h
height
Frame’s height retrieved from AVCodecContext
@property (nonatomic, assign) int heightDeclared In
VKVideoFrame.h
aspectRatio
Ratio is not always width/height, some streams are using special aspect ratios and this property holds this ratio
@property (nonatomic, assign) float aspectRatioDeclared In
VKVideoFrame.h
pts
The presenting timestamp of frame based on stream’s time base
@property (nonatomic, assign) double ptsDeclared In
VKVideoFrame.h
pos
holds the byte position of AVPacket in stream, used for AV syncing
@property (nonatomic, assign) int64_t posDeclared In
VKVideoFrame.h
serial
Serial is used for identifying the packet queues of stream
@property (nonatomic, assign) int serialDeclared In
VKVideoFrame.h
interlaced
States whether the frame is interlaced or not
@property (nonatomic, assign) BOOL interlacedDeclared In
VKVideoFrame.h