VKPacket Class Reference

Inherits from NSObject
Declared in VKPacket.h

Overview

VKPacket is an objective-c class of AVPacket structure, but holds only needed properties of AVPacket structure

– initWithPkt:serial:isFlush:

Initialize a VKPacket object

- (id)initWithPkt:(AVPacket *)pkt serial:(int)serial isFlush:(BOOL)flush

Parameters

pkt

FFmpeg’s structure that stores compressed data, typically exported by demuxers and then passed as input to decoders

serial

The identifying number of queue inside stream

flush

Flush packet is a special packet and if this value is YES then queues will be flushed

Return Value

VKPacket object

Declared In

VKPacket.h

  size

The size of data holded in VKPacket

@property (nonatomic, readonly) int size

Declared In

VKPacket.h

  samples

Encoded data in int16_t format

@property (nonatomic, readonly) NSData *samples

Declared In

VKPacket.h

  pts

The presenting time stamp of packet

@property (nonatomic, readonly) double pts

Declared In

VKPacket.h

  dts

The decoding time stamp of packet

@property (nonatomic, readonly) double dts

Declared In

VKPacket.h

  duration

The duration of packet

@property (nonatomic, assign) int64_t duration

Declared In

VKPacket.h

  modifiedPts

The modified presenting time stamp of packet, used for recording

@property (nonatomic, assign) double modifiedPts

Declared In

VKPacket.h

  modifiedDts

The modified decoding time stamp of packet, used for recording

@property (nonatomic, assign) double modifiedDts

Declared In

VKPacket.h

  modifiedDuration

The modified duration of packet, used for recording

@property (nonatomic, assign) int64_t modifiedDuration

Declared In

VKPacket.h

  pos

The byte position of packet in stream

@property (nonatomic, readonly) int64_t pos

Declared In

VKPacket.h

  serial

Serial is used for identifying the packet queues of stream

@property (nonatomic, readonly) int serial

Declared In

VKPacket.h

  flush

Indicates whether if the packet is a special flush packet or not

@property (nonatomic, readonly) BOOL flush

Declared In

VKPacket.h

  streamIndex

Indicates that the packet belongs to Audio, Video or other stream

@property (nonatomic, readonly) int streamIndex

Declared In

VKPacket.h

  flags

Indicates flags of AVPacket

@property (nonatomic, readonly) int flags

Declared In

VKPacket.h