mm-video: Fix for debug log messages support

Enabling/Disabling debug log messages is controlled
by Android.mk file.
This change fixes the redundancy of the code which was
creating some issues for this support. Now the logs
can be enabled/disabled using Android.mk

Change-Id: I14209f0ee78b39d0cbf47a25c56ed53fdc83ae61
CRs-fixed: 410314
Merge "mm-video: Fix for debug log messages support"
mm-video: vdec: Add support to dump YUV frames

Add support to dump YUV frames correctly on 8974.

Change-Id: If572354afe18b97500cbc39d4a842fa51ff5c703
mm-video: vidc: Adds support to process HW Error

Adds support to process HW Error event caused by
either watchdog timeout or sys_error.

Change-Id: Ie5dfc45e74f2580e299ff035b85b03bfcf082cbd
mm-video: Send hints to power module for decoding.

Send the POWER_HINT_VIDEO_DECODE hint to the power
module when decoding starts or stops. Metadata such
as frame dimensions and bitrate (if available) is
also sent.

Change-Id: I62b87bdb3fb062212c72a446f7f2ef3fe7b223a0
Merge "mm-video: venc: Call set format in right order"
Merge "mm-video: vidc: Adds support to process HW Error"
Merge "mm-video: set ION_SECURE to flags instead of heap_mask during ion alloc."
mm-video: vdec: Changes for extradata support

Change to allocate and exchange extradata with video
driver and OMX client. Uncompressed buffers can have
extradata associated with them. This extradata contains
information about the uncompressed buffer, eg: interleaving
information, macroblock error information etc. With this change
extradata buffers can be exchanged between client, openmax and
driver.

Change-Id: I65cd68bdefc3a6e4b588582878558e4f4a7748a9
Merge "mm-video: vdec: Changes for extradata support"
mm-video: vidc: Adds support for smooth streaming

Adds support for smooth streaming by setting DATA_TRANSFER
flag and setting the proper height and width.

Change-Id: I0c844c6464f23c0f4788432b285816c6e47f96b8
Merge "mm-video: vidc: Adds support for smooth streaming"
Merge "mm-video: vdec: Add support to dump YUV frames"
vidc: venc: Add support to EOS flag in encoder component

Component was not propogating EOS flag resulting in EOS flag being
rendered invalid to driver and component. This change allows
propogation of EOS flag from component to v4l2 and back to client.

Change-Id: Ibccf5b4ab303c32c234ed1741e021ec99326b082
mm-video: Fix mutex lock incase of smooth streaming

Fix mutex lock/unlock incase of smooth streaming.
Without this fix, applications using smooth streaming
won't work and hang after port reconfig.

Change-Id: I09bb24f78ddf363a9eadbf12d568ee8405b9a4d8
Merge "mm-video: Fix mutex lock incase of smooth streaming"
vidc: venc: Add support for setting QP range parameter

With this commit, support is added for setting
min_qp and max_qp during the video encoder component
initialization.

Change-Id: I088da3c09d8433c03133b1db3720f874985f0ffd
mm-video: vidc: Fix testapp to display decoded frames

After the vsync changes to overlay, any module that
uses overlay should enable vsync control before
setting the overlay. Changes are made to enable
or disable vsync control and also added pan display
ioctl after overlay play

CRs-fixed: 410162
Change-Id: Idc5ae4d05726cb9029b219d794e6cbaa8b2a2f71
Merge "mm-core: Add support for setting QP range parameter"
Merge "vidc: venc: Add support for setting QP range parameter"