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)flushParameters
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 sizeDeclared In
VKPacket.h
samples
Encoded data in int16_t format
@property (nonatomic, readonly) NSData *samplesDeclared In
VKPacket.h
pts
The presenting time stamp of packet
@property (nonatomic, readonly) double ptsDeclared In
VKPacket.h
dts
The decoding time stamp of packet
@property (nonatomic, readonly) double dtsDeclared In
VKPacket.h
duration
The duration of packet
@property (nonatomic, assign) int64_t durationDeclared In
VKPacket.h
modifiedPts
The modified presenting time stamp of packet, used for recording
@property (nonatomic, assign) double modifiedPtsDeclared In
VKPacket.h
modifiedDts
The modified decoding time stamp of packet, used for recording
@property (nonatomic, assign) double modifiedDtsDeclared In
VKPacket.h
modifiedDuration
The modified duration of packet, used for recording
@property (nonatomic, assign) int64_t modifiedDurationDeclared In
VKPacket.h
pos
The byte position of packet in stream
@property (nonatomic, readonly) int64_t posDeclared In
VKPacket.h
serial
Serial is used for identifying the packet queues of stream
@property (nonatomic, readonly) int serialDeclared In
VKPacket.h
flush
Indicates whether if the packet is a special flush packet or not
@property (nonatomic, readonly) BOOL flushDeclared In
VKPacket.h
streamIndex
Indicates that the packet belongs to Audio, Video or other stream
@property (nonatomic, readonly) int streamIndexDeclared In
VKPacket.h