implementation of decoder stream queue

implementation of a stream queue, which will be decoded on a separate
thread. the queue memory allocation is automatically freed when the
decoding process is finished