Merge branch 'jb_2.6_1' of git://codeaurora.org/platform/hardware/qcom/media

Summary:
This commit adds Long Term Reference picture
selection feature for H264 video encoder and
also adds the corresponding video extensions

Change-Id: Iaf2228c3f29261db4f0214b3264648745b2aaa4d

DashPlayer: Remove mSource null check in source notify

Remove mSource null check in source notify

Change-Id: I5f35f90246f73f421962e4510011698366c07823
CRs-Fixed: 515690

DashPlayer: Don't queue EOS in flushing state on error from codec

Don't queue EOS to renderer in flushing/flushed state on error from
codec

Change-Id: I3b359c2f6700d9eed5b99515d652f86557c55a9f
CRs-Fixed: 515232

dashplayer: fix wrongly identifying a Dash URL

- do not identify URL as Dash if URL has random "mpd" string

Change-Id: I40fefa311bca99e19c4f1e4cee3bd09bd21e4908

Merge "DashPlayer: Don't queue EOS in flushing state on error from codec"

Merge "DashPlayer: Remove mSource null check in source notify"

mm-core: Add hevc coding type in mm-core

This change adds the hevc coding type to mm-core.

Change-Id: Icb2a91805061d149d5fcc160928cdec8ca0e5647

Merge "vidc: venc: Add LTR feature for H264 encoder"

Merge "mm-core: Add hevc coding type in mm-core"

dashplayer: Fix green frame issue on session timeout

* Avoid rendering video buffer which signals EOS as it does
  not contain valid video data.

CRs-Fixed: 476333

Change-Id: I10e3a0cb1e2dc9e1574d5e2b05f6339e868ac6fe

DashCodec: keep cache of formats to support b2b format change

     - when format change takes place too fast, it will pick up wrong
       format.
     - keep a cache of formats and only issue one sendFormatChange per
       crop change.
     - clear format cache when flushing

Change-Id: Ib45f3c5ac7764b4dd1edc4ac6c6f11390c33c151
CRs-Fixed: 475092

Fix for the flicker while changing the resolution in DashPlayer

- Just notify the message of MEDIA_SET_VIDEO_SIZE to JAVA Layer,
  while beginning to play the streaming.
- After the streaming begin to play, don't notify this message,
  while changing the resolution or seek operation finished.
- If we don't set video size,
  windowsmanager will adapt the dimension of the clip by itself.

Change-Id: I6a79d13159cd9bf33e0f483c7e1b71690f071011

CRs-fixed: 451993

DashPlayer: Notify position for video EOS buffer immediately

Notify current rendering position for video EOS buffer immediately,
without waiting for 100ms between subsequent updates.

CRs-Fixed: 489546
Change-Id: I9a8f346a68ff5c333d96e5ae24980e0ed1b27903

DashPlayer: Add support for dumpsys in DashPlayer

Added functionality in DashPlayer to dump playback statistics to file.

Change-Id: I0f95684f10db376731f622f06d17cc262480ecd3

DashPlayer: Notify seek position to dash source

Notify seek position to dash source to make sure that
if text samples arrive before audio/video, the time
out for sending text samples is not wrongly calculated.

CRs-Fixed: 492376

Change-Id: I952e474d92936532956c1d456b6ad1d554402405

DashPlayer: Don't queue EOS in flushing state

Don't queue EOS to renderer in flushing state.

Change-Id: I04925c3b99c1b43281eb8c43be5943194a3bd48b

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

libc2dcolorconvert: Fix CTS Failures for 720p Encoding on 8930.

 -CTS testcases testEncodeDecodeVideoFromSurfaceToSurface720p
  and testVideoEdit720p fails because graphic buffer
  stride value is different for 8930.
 -Extra padding is needed for 8930 graphic buffers this case
  needs to be handled in C2D colorconverter before color
  conversion process.
 -Fix is to keep same stride value as of graphic bufer source
  in colorconverter module for 8930.
 CRs-Fixed: 515586

Change-Id: I45cdbd0ad4cad00f3e87c5f32852fc28f279aee9

mm-core: Remove double declaration of OMX.qcom.audio.decoder.aac

Change-Id: I0d64cde98ab92c48fe9e70d26724c334f22a79f6

Merge "dashplayer: fix wrongly identifying a Dash URL"

Merge "dashplayer: Fix green frame issue on session timeout"

Merge "DashCodec: keep cache of formats to support b2b format change"

Merge "Fix for the flicker while changing the resolution in DashPlayer"

Merge "DashPlayer: Notify position for video EOS buffer immediately"

Merge "DashPlayer: Add support for dumpsys in DashPlayer"

Merge "DashPlayer: Notify seek position to dash source"

Merge "DashPlayer: Don't queue EOS in flushing state"

Merge "libc2dcolorconvert: Fix CTS Failures for 720p Encoding on 8930."

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"

Merge branch 'jb_2.6_1' of git://codeaurora.org/platform/hardware/qcom/media into cm-10.2

Change-Id: Ia4020577a1496f185f49bedd0fa218b3f39b7c30

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"

Merge branch 'jb_2.6_1' of git://codeaurora.org/platform/hardware/qcom/media into cm-10.2

Merge commit '38c9b09fc4149d561ad369fc6a512d138157f557' into jb-devel-mr2-release

Test Plan: compile and test

Reviewers: randall.rushing, synergy, anders3408

Reviewed By: randall.rushing

Differential Revision: http://review.codefirex.com/D511