[HDMI:] Ignore CEC events in Wired Accessory Observer

HDMI CEC events are distinguished from HDMI switch on/off
messages in WiredAcceccoryObserver handler now to don't
affect audio routing.

Change-Id: Idb1ea08440f693e29e5f5a9b668e2b5a4eaa1815
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
Video Encoder : Support Setting of H264 Encoder profile through system property

This patch supports setting of Different Encoder Profiles for H264 Encoder.
This can be done by setting the property: video.h264enc.profile to
1 - BASE PROFILE , 2 - MAIN PROFILE and 8 - HIGH PROFILE
Invalid setting will result to using BASE PROFILE as default.
Patch set#2 : Addressed review comments.

Change-Id: I2352ff715adba495f6e1365da8de326bbc6ef2c1
Signed-off-by: Sathya Prakash M R <a0393677@ti.com>
Video Encoder: Remove Hard coding of H264 Encoder Profile

This patch removes hard coding of baseline profile.
Now using system properties we can set Encoder profile.
Signed-off-by: Sathya Prakash M R <a0393677@ti.com>
Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com>
Change-Id: I9fc61016843b5d9e91d6f068a1c7838a67a0b1cc
Workaround for Mpeg2TS grey thumbnail issue

Seek is not supported in Mpeg2TSExtractor. Thus during thumbnail
generation if the software decoder is failing the extractor is not
seeking to the I-frame and is providing the next available frame to
hardware decoder. Thus there is issue in thumbnail generation.
To resolve this, we directly use hardware decoder for all the
Mpeg2Ts Clips.

OMAP_ENHANCEMENT macro has been added. It is a workaround,
and the actual fix should be done inside Mpeg2TSParser.
Changes are added for Mpeg2PS clips as well. Now for Mpeg2TS,
Mpeg2PS clips by default hardware codec is used for thumbnail
generation.

Change-Id: I89c4b31b108834b59d4264204ef270cf22c8ab47
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>
Support for playback of WMV9,VC1 inside AVI file

Added support for playback of WMV9 and VC1 Streams inside AVI file.
The changes include parsing of codec config header which is present
as part of stream format header inside AVI file.
Also, incase of VC1 stream the encoded data should be prefexed with
the start code 0x0000010d. The first frame should include codec
config header in the begining then data start code followed by data.

Review comments are incorporated.

Change-Id: Ie869d520a51e140f18a332a2e2be4ab7a7889f01
Signed-off-by: Santhosh Behara <santhosh.behara@ti.com>
TimeLapse recording with High Profile Encoder

When Timelapse recording is performed, Encoder is expected
to process each input buffer and provide a output buffer.
This wont work when we have B Frames enabled.
This patch disables B Frames when Encoder flag
kOnlySubmitOneInputBufferAtOneTime is set to allow
submission of 1 frame at a time.

Patch set#4: Added the check to cover all encoders.
Updated commit message and comments in code to be in sync
with the patch submitted to google.

Change-Id: I7dd17f8ce9185abe3c6749caa34c90500bd2f913
Signed-off-by: Sathya Prakash M R <a0393677@ti.com>
StageFright: Enhance StageFright test app to dump decoded data to a file.

"-D" option is added to dump decoded frames to a file.
Complete buffer is dumped including the padding.
Support for Gralloc buffers is not added.

Example usage: stagefright -m 100 -D /data/out.yuv /sdcard/XXXX.mp4

Change-Id: Ib3271c8535227031a9bc612232111217e1c955c3
Signed-Off-By: Rajesh Vandanapu<rajeshv@ti.com>
Added support for Ittiam AAC and BSAC decoders

Change-Id: Ia42eee67a8a435c1b0173e5f7a853b1b11db56cf
Signed-off-by: Sergii Shcherbakov <x0155537@ti.com>
Add CAMERA_MSG_RAW_BURST handling to CameraService

Change-Id: Id958836e726e9908f60311d5bfc6d26eb8298cea
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Stagefright changes for Interlaced video buffers

Since domx in omap4xxx tree is updated, use the definitions
in there instead of defining them in stagefright.

Change-Id: I18318d98e7487466bb3235ab1479c05c38aded0b
Signed-off-by: Tyler Luu <tluu@ti.com>
AudioSource: Fix to increment audio buffer timestamp based on mono/stereo channels.

Description: AudioSource was not incrementing the audio buffer
timestamp properly in case of stereo. This commit fixes this issue.
The formula is also simplified for readability

Change-Id: Ib5c942906433930b768aa9c4426a549cf203ea5f
Signed-off-by: Manoj Gopalakrishnan <manojgopal@ti.com>
AwesomePlayer always reads the forward syncable video data after SEEK.

By the patch#19882(http://review.omapzoom.org/#/c/19882/), the SEEK_COMPLETE
event happens after mVideoTimeUs reaches to the seek position.
This means that video frames continue to come from the "old" video position,
and only after MEDIA_SEEK_COMPLETE signal is sent, video frames come from
the new position. So, if the new position is the backward of the seek position,
it is sometimes confusing because the video player seems to ignore (briefly)
the user's input.
With the patch, the new position is always forward of the seek position, and
MEDIA_SEEK_COMPLETE signal is sent immediately. So, video frame from
the new position will be displayed immediately, too.
This gives the user positive visual feedback that their input has been accepted.

Change-Id: I72327ba08f060a5b474584c6084875ec02afebca
Signed-off-by: Nanako Baba <baba@ti.com>
cmds/am: Adds support for subintents.

In some situation we need to send broacast message with subintent
inside. So add this feature. Parameters:
 EXTRA_KEY - key for subintent
 EXTRA_SUBINTENT_ACTION - action for subintent
 SUBINTENT_URI_DATA - subintent data in URI format
Example:
 adb shell am broadcast -a com.android.launcher.action.INSTALL_SHORTCUT \
   --es android.intent.extra.shortcut.NAME Example_Name \
   --es android.intent.extra.shortcut.ICON_RESOURCE \
     'com.ui.testapp:drawable/ic_launcher' \
   --ent android.intent.extra.shortcut.INTENT \
     action=android.intent.action.MAIN \
	 'launchFlags=0x14000000;component=com.ui.testapp/.TestAppActivity;'
(This example create shortcut for app 'com.ui.testapp' on home screen)

Change-Id: Icaf0851a7d240d8b2af6caea9f76b9fb26a7f401
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
AVI extractor: Save fps information

Calculating fps (dwRate/dwScale) in .avi container and
saving it as kKeyVideoFPS for future reference.
This information was missing, hence VC1 60fps clips were
playing at 30fps, hence resulting in issues for 60fps.
Fix the same.

Change-Id: I5d1de853807f92c33ef976e97a2c83ad80184213
Signed-off-by: Anviksha Khare <anviksha@ti.com>
Libstagefright: Add reading of extended frame rates

Inorder to support 60fps and beyond, camera source
has to read the extended supported frame rates from
camerahal to validate against the app passed fps

Change-Id: I1bdb19dadfb755fcd749ee95840c1d47d28cb691
Signed-off-by: Sundar Raman <sunds@ti.com>
StageFright: TimeInterpolator: Completely remove FIRST_ROLLING and FIRST_PAUSED.

These states have been obsoleted by the previous patch.

Change-Id: I667a04e3d7c456014a35d8d24269a79c05e116cb
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>

Conflicts:

	media/libstagefright/AudioPlayer.cpp