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)init

Return Value

VKVideoFrame object

Declared In

VKVideoFrame.h

  width

Frame’s width retrieved from AVCodecContext

@property (nonatomic, assign) int width

Declared In

VKVideoFrame.h

  height

Frame’s height retrieved from AVCodecContext

@property (nonatomic, assign) int height

Declared 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 aspectRatio

Declared In

VKVideoFrame.h

  pts

The presenting timestamp of frame based on stream’s time base

@property (nonatomic, assign) double pts

Declared In

VKVideoFrame.h

  pos

holds the byte position of AVPacket in stream, used for AV syncing

@property (nonatomic, assign) int64_t pos

Declared In

VKVideoFrame.h

  serial

Serial is used for identifying the packet queues of stream

@property (nonatomic, assign) int serial

Declared In

VKVideoFrame.h

  interlaced

States whether the frame is interlaced or not

@property (nonatomic, assign) BOOL interlaced

Declared In

VKVideoFrame.h