VKQueue Class Reference

Inherits from NSObject
Declared in VKQueue.h

Overview

Manages the packet qeueue

– unlockQueues

Queues are interworking with eachother and uses wait/signal mechanism for management, this methods unlocks all queues

- (void)unlockQueues

Declared In

VKQueue.h

– addPacket:

Adds encoded data media packet

- (void)addPacket:(AVPacket *)packet

Parameters

packet

FFmpeg’s AVPacket structured object is needed

Declared In

VKQueue.h

– addFlushPkt

Adds a special packet to flush queues

- (void)addFlushPkt

Declared In

VKQueue.h

– addEmptyPkt

Adds an empty packet to queue

- (void)addEmptyPkt

Declared In

VKQueue.h

– removeLastPkt

Remove last pkt from queue

- (void)removeLastPkt

Declared In

VKQueue.h

– removePktAtIndex:

Remove pkt at index from queue

- (void)removePktAtIndex:(unsigned int)index

Declared In

VKQueue.h

– clearPktQueue

Clear buffers

- (void)clearPktQueue

Declared In

VKQueue.h

– mutexPkt

Mutex for managing packet processing priority

- (pthread_mutex_t *)mutexPkt

Declared In

VKQueue.h

– condPkt

Condition for managing packet processing priority

- (pthread_cond_t *)condPkt

Declared In

VKQueue.h

  pktQueue

A mutable array that holds VKPacket objects

@property (nonatomic, readonly) NSMutableArray *pktQueue

Declared In

VKQueue.h

  pktQueueSize

The size of pktQueue array

@property (nonatomic, readonly) long pktQueueSize

Declared In

VKQueue.h

  abortRequest

A special property to stop all working jobs

@property (nonatomic, assign) int abortRequest

Declared In

VKQueue.h