camera: add getBrightnessLumaTargetSet and getRawSize stubs for HTC hardware

Change-Id: Iddaee5376b7fef208d7619824b4b635faf75f0e7
Stagefright: Fix playback for mkv files with lacing

Most mkv files having 'lacing' in their audio section to save space.
Android did not handle this properly, sending all frames in the block
with the same time code, which causes stuttery playback.

Change-Id: I4dc76e7c2a53126c7fbdd3628fe7d339d2e3364e
Libstagefright: Add MPEG2 Codec support

Enables playback support for MPEG2 Codec to play specific ts content

Conflicts:
	media/libstagefright/ExtendedCodec.cpp

Change-Id: I96e44b1f1f26ea138802d8d75f1784a06dd8dc6b
Libstagefright: Fix crash while setting buffer size

The format returned from MakeAVCCodecSpecificData may be
NULL and will crash on trying to set buffer size.

Added NULL check to avoid crash

Conflicts:
	media/libstagefright/mpeg2ts/ESQueue.cpp

Change-Id: I45485f820a6aa657e63aeeb6dd43061a2e3575e3
Audio: Fixed mBytesRemaining when partial buffers are sent

- When AudioFlinger writes partial buffers to HAL,
  write() on HAl returns period_size if bytes written
  are less than period_size. This is causing
  mBytesRemaining to be negative

- Fix is to check the return value of write() and
  set mBytesRemaining and mBytesWritten correctly

Change-Id: Ibd3cb138c0d4669e9e17c22f6b2c80804c6499a5
libmedia: Set the correct audio latency in offload mode

- In offload mode latency is decided by Audio HAL.

Change-Id: I0f46ce9cb43e59907c07e77ec57fda47e841b094
Libstagefright: mkv parser: check for divx format

bailout if divx is disabled and if video format of the clip is DivX

Change-Id: I600a3f8ccd5e3dc464c8c26477731e6a72589b6d
Libstagefright: Fix in AudioPlayer media time mapping

- Use seektime as the play position when player is still
  seeking.

Change-Id: Id92a07e3291280b17b83d53ff2e218acc3ee6020

Conflicts:
	media/libstagefright/AudioPlayer.cpp

Change-Id: Id92a07e3291280b17b83d53ff2e218acc3ee6020
CameraParameters: Add Oppo Find 7 specific parameters

Change-Id: I7fe37fbe57d42c83f5e0467713ab961ac653cfbe
Merge "Stagefright: Fix playback for mkv files with lacing" into du44
Merge "Libstagefright: Add MPEG2 Codec support" into du44
Merge "Libstagefright: Fix crash while setting buffer size" into du44
Merge "Audio: Fixed mBytesRemaining when partial buffers are sent" into du44
Merge "libmedia: Set the correct audio latency in offload mode" into du44
Merge "Libstagefright: mkv parser: check for divx format" into du44
Merge "Libstagefright: Fix in AudioPlayer media time mapping" into du44
Update to 4.4.3 r1.1

Change-Id: Ifa732ec52fb582c34512cd1d09d918199ae9996e
Squashed QCOM DirectTrack commits

stagefright: Conditionally build legacy audio stuff

 * The LPA and Tunnel mode code is entirely deprecated and breaks things
   for devices which don't use the legacy ALSA audio HAL.
 * Exclude this stuff unless explicitly requested.
 * Also enable rendering statistics for all.

av: Additional ifdefs for QCOM DirectTrack

 * Tunnel and LPA mode on legacy QC devices requires the DirectTrack
   code path, which going forward has been deprecated.
 * In order to properly support QC features on 8974, this needs broken
   out in order to not cause problems on new devices.
 * With this patch, QCOM_HARDWARE will enable features common to all
   QC platforms (including legacy), and legacy support will
   automatically be enabled based on the use of driver variant and
   value of BOARD_USES_LEGACY_ALSA_AUDIO.

Revert "frameworks/av: rendering statistics for Stagefright."

This reverts commit 1a65f74eebe15e1533ebde98268a454a8b14f815.

Revert "libstagefright: adjust AV sync late margin based on property"

This reverts commit 14b0bb438a8b3291edd10fb068656e707a31cfb5.

Revert "libstagefright: post video events dynamically - calculate amount of time to delay video event after renderusing the formula: delay = (us between frames)-(us taken by event)-(lateness)"

This reverts commit 1ac2a4f83f7d14b3a4d9c4691a5d6bb62fcc5522.

Change-Id: I3a164d42915a74b3d9b0799f06ea9e8389440996
libstagefright: Check for data partitioned clips

- Check for DP clips in ESDS atom of mpeg4 clips
- If the clip is detected to have data partition, return a
  error, so that video decode will fallback to SW decoder

Change-Id: I21800eabf2a68546b6ad389d18adbb3e9fb08ed7
Camera: Disable extra HDR frame on QCOM_HARDWARE

Qualcomm camera HALs default to adding an extra zero-exposure frame
to HDR snapshots; this is breaking third-party apps, and we don't
use it in system-bundled apps, so disable it unless explicitly
requested by the client

Change-Id: Iecb868c5c344d972de7f36dc1bd9cc9fdbabaf4e