QCMetaData: Add key for interlace

key for interlace set in metadata is being used for thumbnail mode.
If the key is set, two ETB are send to the decoder

Change-Id: I1e4e996f46f022916ab5f4f14ff2c111f04717c1
mm-video: venc: Distinguish between normal NV12 and aligned NV12

Encoder has a hard-requirement of 2K alignment of UV plane.
Apps and other non-camera sources (not aware of this alignment)
will queue YUV420SP buffers, which need an explicit alignment.
But for some other apps(e.g VT) that are aware that the component
wants aligned NV12 and would align it themselves, causing the component
to muck up the buffer by realigning it.

To prevent the confusion, the component now makes a distinction between
NV12 (OMX_COLOR_FormatYUV420SemiPlanar) and aligned NV12 (QOMX_COLOR_\
FORMATYUV420PackedSemiPlanar32).  Clients who prefer to provide aligned
buffers will now set the latter as the input port format.

Change-Id: I73c337660fb825e9b267663266fd4b9d6e35443e
dashplayer:  Fix for Progress bar moving back in seek.

Fix for progress bar moving back in seek by calling
kWhatposition from renderer using new seektime

Change-Id: I30ce962cca58cdce5bd56e9f4ed6963ebd80de7a
Merge "mm-video: venc: Distinguish between normal NV12 and aligned NV12"
Merge "mm-video: venc: Distinguish between normal NV12 and aligned NV12"
Merge "dashplayer:  Fix for Progress bar moving back in seek."
dashplayer: Delete memory allocated for cached crops and formats

Delete dynamically allocated memory allocated for cached crops
and formats.

Change-Id: Ib0d66f723bf9a66d308b8c786ef8de1efc1627a0
Merge "QCMetaData: Add key for interlace"
Merge "dashplayer: Delete memory allocated for cached crops and formats"
libc2dcolorconvert: use c2dMapAddr() and c2dUnMapAddr

These apis are the preferred way to map ION memory into C2D,
instead of direct kgsl calls.

Change-Id: I74de60c1a407aa507e3f47edc5074b4df3928da3
Merge "libc2dcolorconvert: use c2dMapAddr() and c2dUnMapAddr"
dashplayer: Remove cached formats from the proper location

1. Removed cached format/crop from the 0th position.
2. Clear cached formats in destructor.

Change-Id: Idd9c767bf9f660fe8ceae7f99b3ac51861b2a932
mm-video: vdec: ref count the notifications to secure-display

Notifications to display HAL to secure/unsecure display is sent
when component is created/destroyed. When multiple instances
are created/destroyed, the shared flag which indicates status
of such notification can go out-of-sync.
This change ref-counts the secure status flag and protects it
with a lock.

Change-Id: I126c92d16b03819afcbaf2f056928ba792556ed8
Merge branch 'jb_2.6_1' of git://codeaurora.org/platform/hardware/qcom/media into cm-10.2
mm-video: vidc: Fix an issue in flush for Surfacemediasource_test

When i/p flush is in progress, need to give back all the ETB's
to client as EBD's directly instead of post_event. so do not call
push_input_buffer function.

Change-Id: Id17a84e9a009bbe80ec034c78a78a08b889c394a
CRs-Fixed: 517599
Merge "mm-video: vdec: ref count the notifications to secure-display"
Merge "mm-video: vidc: Fix an issue in flush for Surfacemediasource_test"
Merge "dashplayer: Remove cached formats from the proper location"
mm-video: vidc: Add support for dynamic debug logging

- Add system property for setting the debug level
- Add common macros for vdec, venc for debug logs

debug_level -> 1:ERROR 2:HIGH 4:LOW 0:NOlogs 7:AllLogs
adb shell setprop vidc.debug.level <debug level>

CRs-fixed: 546533
Change-Id: Icc0e6419dc7d740ca92abe7bc921381b31c7d2d3
Merge "mm-video: vidc: Add support for dynamic debug logging"