[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>
SurfaceFlinger: Enable S3D support when building for s3d sdk-addon

Enable S3D support in SurfaceFlinger when the s3d sdk-addon emulator
system image is built.

Change-Id: I3bd6599e6fbda9895cd06c4b4ec2cdba951b03d2
Signed-off-by: Alberto Aguirre <a-aguirre@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>
Implementation for taking ShotParameters in takePicture()

Change-Id: I80a359eda2bbd060c6ddd9958e2c3ef86f7e79b6
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Initial implmentation of BufferSource API

In this initial implementation of setBufferSource,
BufferSource is nothing but an instance of the
SurfaceTexture class and passed as a preview_stream_ops
to camera HAL module. BufferSource will be the allocator
interface for tap-in and tap-out points to allow for
zero-copy buffer passing between processes using camera.

Change-Id: I54ae0690928cd972a93b2cef035041ba8f23c8b8
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
camera: add get current buffer to preview_stream_ops

Change-Id: I63378ac5bd009c676aeaf31aeb000538c91e08be
Signed-off-by: Tyler Luu <tluu@ti.com>
camera: add interface for reprocess

add reprocessing interface for user to inject
a frame to HAL via a tap-in point.

call sequence:
setBufferSource()->setParameters()->reprocess()

Change-Id: I75257ab751a1f9ccd8b3e9ef524c3ea1db716214
Signed-off-by: Tyler Luu <tluu@ti.com>
camera: add CameraMetadata class

CameraMetadata class which implements CameraParametersBase.
Will be used to pass metadata information via SurfaceTexture
for now. This will most likely change in the future when
metadata doesn't make sense to be passed as a string around
different components.

Change-Id: I1e9800dcbf38e3ec058ba7205e639cb28dbecb0c
Signed-off-by: Tyler Luu <tluu@ti.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>
libnfc-ti: Add SystemProperties.nfcti_enhancement

This flag is taken from the system.prop file com.ti.nfcti_enhancement
and control the nfcti modifications to the Android code.

Change-Id: Ic4e37801ded1d2a93d3ce38996929b17ff2e0e77
Signed-off-by: x0099048 <x0099048@ti.com>
               amira <amira@ti.com>
blueti: Add SystemProperties.BLUETI_ENHANCEMENTS

This flag is taken from the system.prop file
com.ti.blueti_enhancement
and control the blueti modifications to the Android code.

Merged as part of an update containing the following patches:
http://review.omapzoom.org/20589
http://review.omapzoom.org/20590
http://review.omapzoom.org/20591
http://review.omapzoom.org/20592
http://review.omapzoom.org/20593
http://review.omapzoom.org/20594
http://review.omapzoom.org/20595
http://review.omapzoom.org/20596
http://review.omapzoom.org/20597
http://review.omapzoom.org/20598
http://review.omapzoom.org/20599
http://review.omapzoom.org/20600
http://review.omapzoom.org/20601
http://review.omapzoom.org/20602
http://review.omapzoom.org/20603
http://review.omapzoom.org/20604
http://review.omapzoom.org/20605
http://review.omapzoom.org/20606
http://review.omapzoom.org/20607
http://review.omapzoom.org/20608
http://review.omapzoom.org/20609
http://review.omapzoom.org/20610
http://review.omapzoom.org/20611
http://review.omapzoom.org/20612
http://review.omapzoom.org/20613
http://review.omapzoom.org/20614

Change-Id: I84429e7dddc5eb877604474cf326b3b073b4797a
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
blueti: bug-fix: OBEX - Fix Abort from client

Discard the rest of the headers in this OBEX message, the length we've
calculated includes the 3 bytes we have already read (1 for headerID +
2 for the length)

Merged as part of an update containing the following patches:
http://review.omapzoom.org/20589
http://review.omapzoom.org/20590
http://review.omapzoom.org/20591
http://review.omapzoom.org/20592
http://review.omapzoom.org/20593
http://review.omapzoom.org/20594
http://review.omapzoom.org/20595
http://review.omapzoom.org/20596
http://review.omapzoom.org/20597
http://review.omapzoom.org/20598
http://review.omapzoom.org/20599
http://review.omapzoom.org/20600
http://review.omapzoom.org/20601
http://review.omapzoom.org/20602
http://review.omapzoom.org/20603
http://review.omapzoom.org/20604
http://review.omapzoom.org/20605
http://review.omapzoom.org/20606
http://review.omapzoom.org/20607
http://review.omapzoom.org/20608
http://review.omapzoom.org/20609
http://review.omapzoom.org/20610
http://review.omapzoom.org/20611
http://review.omapzoom.org/20612
http://review.omapzoom.org/20613
http://review.omapzoom.org/20614

Change-Id: I4d4494df4979b5a49de9faf476edada7437ee30e
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
blueti: bug-fix: getProperty fix

Fixing getProperty to continue on (and not fail) incase of a unknown preprty (such as vendor)

Merged as part of an update containing the following patches:
http://review.omapzoom.org/20589
http://review.omapzoom.org/20590
http://review.omapzoom.org/20591
http://review.omapzoom.org/20592
http://review.omapzoom.org/20593
http://review.omapzoom.org/20594
http://review.omapzoom.org/20595
http://review.omapzoom.org/20596
http://review.omapzoom.org/20597
http://review.omapzoom.org/20598
http://review.omapzoom.org/20599
http://review.omapzoom.org/20600
http://review.omapzoom.org/20601
http://review.omapzoom.org/20602
http://review.omapzoom.org/20603
http://review.omapzoom.org/20604
http://review.omapzoom.org/20605
http://review.omapzoom.org/20606
http://review.omapzoom.org/20607
http://review.omapzoom.org/20608
http://review.omapzoom.org/20609
http://review.omapzoom.org/20610
http://review.omapzoom.org/20611
http://review.omapzoom.org/20612
http://review.omapzoom.org/20613
http://review.omapzoom.org/20614

Change-Id: I3a56faa825196dec79aadb20fcb8e368b9f98fec
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>