taglib: properly handle APE's cover art

Signed-off-by: Rafaël Carré <funman@videolan.org>
taglib: use iterator-based approach for APE's tag processing

Signed-off-by: Rafaël Carré <funman@videolan.org>
taglib: init attachments before reading special tags

Signed-off-by: Rafaël Carré <funman@videolan.org>
taglib: cosmetics (fix typo)

Signed-off-by: Rafaël Carré <funman@videolan.org>
taglib: do not ignore mpeg ape tags

Signed-off-by: Rafaël Carré <funman@videolan.org>
demux: vc1: use CLOCK_FREQ
iomx: implement OMX_UseBuffer

Signed-off-by: Martin Storsjö <martin@martin.st>
iomx: add iomx_hwbuffer

Wrapper to android native window api located in aosp system/window.h.
Allow to queue/dequeue hw buffers (ANativeWindowBuffer_t) allocated with a
speficied hal_format and hw_usage.

This requires changes to the android build project to include
iomx_hwbuffer.c when building libiomx-*.so.

Signed-off-by: Martin Storsjö <martin@martin.st>
iomx: add android GraphicBuffers functions.

- OMXAndroid_EnableGraphicBuffers: activate GraphicBuffers.
  Next call of OMX_GetParameter(OMX_IndexParamPortDefinition) will return a
  private eColorFormat compatible with android hal_format.

- OMXAndroid_GetGraphicBufferUsage: return hw_usage that will be used to
  allocate android hw buffers.

Signed-off-by: Martin Storsjö <martin@martin.st>
omxil: add android hw buffers support (zero copy)

Activated if cfg "omxil-dr" is true. If extra android symbols are not found or
if HwBuffer_init() fails: fall back to non direct buffer mode

Signed-off-by: Martin Storsjö <martin@martin.st>
postproc: remove redundant check
postproc: factor common code
postproc: reduce lock contention in callback
demux: avi: missing unseekable method fallback
hds: drop macro

Fixes cid #1228697 from commit 160401294cbaa95b87bf0199c64590fef6b7fbc7
hds: fix memory leak (cid #1224537)
omxil: Change the default for the omxil-dr flag to true

This matches the default for the mediacodec-dr flag, making the
calling code (which will set both of them) more consistent.

Signed-off-by: Martin Storsjö <martin@martin.st>