nativewindowpriv: add getMaxBufferCount

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
nativewindowpriv: change default min_undequeued value

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
android_window: add logs

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
android_window: use anwp.getMaxBufferCount

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
nativewindowpriv: better use of defines (cosmetics)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Support for newest freerdp snapshot

Support for 24bpp was removed from freerdp repository in commit
02c1bf14ce1f3ad2199a349066548977916d9c06.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Contribs: use videolan servers for schroedinger
format: integer overflow
wasapi: fix memory leak

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
nativewindowpriv: use fence_fd

And don't call deprecated functions after android 4.3.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
decoder: add decoder_QueuePicture

This function allow asynchronous decoders to queue a picture to the render
thread. Theses decoders should return NULL in pf_decode callback.
mediacodec: process input buffers in only one place

(behavior not changed)
mediacodec: handle error_state in one place
mediacodec: protect timestamp_fifo_t with a mutex
omxil/mediacodec: add QueueThread

QueueThread is an object that queue input or output buffers in a seperate
thread. It will be used by omxil and mediacodec.
mediacodec: process input buffers in a separate thread

DecodeVideo will now send input blocks to a FIFO that will be processed by a
separate thread. This function will return instantaneously, either a valid
pic or NULL if there was no output buffers available. "invalid_picture hack" is
not needed anymore.

Fix a deadlock when a slow video was flushed, due to a seek.
(fixes #12397)
mediacodec: process output buffers in a separate thread
mediacodec: factorize release_output_buffer
mediacodec: don't loop in GetOutput

Output thread is already looping.