fix missing mutex cleanup

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Fix in available framebuffers counter

Sometimes, the counter must not be decremented, even though a frame was
produced. This is the case when VPU_DEC_OUTPUT_DIS is also set.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Further counter improvements

The number of times the counter was decremented needs to be tracked,
since increment and decrement often happen in different threads

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Introduce framebuffers LOCK/UNLOCK macros

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Remove memcpy fallback , replaced by condition wait

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Cleanup

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Decoder sometimes needs more than just one free output frame for decoding

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Replace min-num-framebuffers property with num-additional-framebuffers

This makes more sense, since usually, one wants to specify additional
framebuffers instead of an absolute number

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Log level cleanup + extra comments

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Add grayscale format to list of motion JPEG pixel formats

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Typo

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Add extra check in wait loop that is reset after loop is exited

This is required for decoder reset() calls, since there, the loop needs
to be exited immediately, but without permanently setting flushing to TRUE

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Introduce counter for the number of GstBuffers with VPU framebuffers inside

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Fix seeking and flushing ; VPU_DecFlushAll() works properly now

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Update todo list

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Accidentally left in test line

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Add end-of-stream flushing

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Remove finished frames from hash table

This makes sure the hash table does not grow all the time

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Add workaround for flush&seek problems with certain formats

With some formats like VC-1, calling VPU_DecFlushAll() causes the decoder
to eventually fail for unknown reasons -> do not flush for these

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Cleanup framedropping notes

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>