To fix the green title edge problem (Native)

The problem was caused by alpha blending between some useless
green lines in the title image and the input image. In the
patch, we correct this wrong title boundary and only perform
blending between input image and title area.
There is also a very great side effect that: the computation
complexity is significantly reduced. It saves the exporting
time up to 60% for 1080P video with title effect.

Change-Id: I087df61564047b4a1a6b91759e47c700e0d250b1
Orig-Change-Id: I27adefc65a6fc7d77df5bb7b6093b6c804164e09
Signed-off-by: wfeng6 <wei.feng@intel.com>
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 39058
Movie studio: fix a memory leak issue in the AOSP code

It's an android defect, connect()/disconnect() of OMXClient need be called in a pair,
if miss calling disconnect() while connect() is called, a memory leak will happen.

Change-Id: I9acc19242faa5c981bb77caba52170e0f96dbf96
Orig-Change-Id: I0fa40422aa54dc97dadd850e8a4cb5a9697cb685
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
Signed-off-by: Dan Liang <dan.liang@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 80150
libmediaplayerservice: fix hls can not pause/play issue in HTML5 fullscreen mode

fix hls can not pause/play issue in HTML5 fullscreen mode which is introduced in Android 4.3

Change-Id: I165e561a01faee95b3db599f13c397122b359dcd
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 107204
RTSPSouce: add check for mHandler in release

fix the media server issue in RTSP release
duplicate quit msg may cause mHandler null and it may cause crash in onDisconnect

Change-Id: Ib04158603eea3fecc70035f4054729ef8ab40dc0
Author: Yi Wang <yi.a.wang@intel.com>
Signed-off-by: Yi Wang <yi.a.wang@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 49222, 44103
NuPlayerRender: Fix uint32_t numFramesPendingPlayout overrun issue

Add protection to avoid uint32_t numFramesPendingPlayout overrun.
If overrun happens, the video will be post a large delay time casuing video frozen.

Change-Id: Ia5d3aa06a61d40ea08cec525ec315ce0858c8854
Author: Feng Xiao<fengx.xiao@intel.com>
Signed-off-by: Feng Xiao<fengx.xiao@intel.com>
Signed-off-by: Yi Wang<yi.a.wang@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48710, 27202
Add ThreadedSource to Stagefright framework

This patch adds ThreadedSource to Stagefright framework. It
allows to start Media Source in separate threads and can
significantly improve software codec (such as VP8 decoder)
performance.

Change-Id: I5fabb1e565feab8306a6ab524cd3c22b3d9976a1
Orig-Change-Id: Id1f94a1859bde7b6ff6f7a552796f75fe141e085
Signed-off-by: wfeng6 <wei.feng@intel.com>
Reviewed-on: http://android.intel.com:8080/75085
Reviewed-by: Yao, Yong <yong.yao@intel.com>
Reviewed-by: lab_cactus <lab_cactus@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48043

Conflicts:

	media/libstagefright/Android.mk