OSDN Git Service

android-x86/frameworks-av.git
12 years agoFix initial 0 duration video sample in the recorded videos
James Dong [Tue, 9 Aug 2011 18:14:57 +0000 (11:14 -0700)]
Fix initial 0 duration video sample in the recorded videos

o Patch suggested by pmehendale@nvidia.com

Change-Id: Ibf516ba83b721b0d0ab55bb7637fe9b7b2958214
related-to-bug: 5117434

12 years agoMerge "Do not release recording frames if camera is gone"
James Dong [Tue, 9 Aug 2011 18:14:06 +0000 (11:14 -0700)]
Merge "Do not release recording frames if camera is gone"

12 years agoKeep effects sessions active when the caller dies.
Marco Nelissen [Tue, 2 Aug 2011 20:33:41 +0000 (13:33 -0700)]
Keep effects sessions active when the caller dies.

Don't remove effects until the session they are in goes away or all
AudioEffects have been explicitly released. This allows the control
panel process to die without stopping the effects.

Change-Id: I4496e5df080230ca1af149dec95c1309ab8ea888

12 years agoNotify the OMX component that it's going to be used in "secure" mode.
Andreas Huber [Mon, 8 Aug 2011 22:28:21 +0000 (15:28 -0700)]
Notify the OMX component that it's going to be used in "secure" mode.

Change-Id: Id87c4b295eb38f7d24045918e73df298d7b842f9
related-to-bug: 5137212

12 years agoMerge "AudioFlinger: protect input/output stream access"
Eric Laurent [Mon, 8 Aug 2011 16:31:42 +0000 (09:31 -0700)]
Merge "AudioFlinger: protect input/output stream access"

12 years agoAudioFlinger: protect input/output stream access
Eric Laurent [Sun, 7 Aug 2011 23:32:26 +0000 (16:32 -0700)]
AudioFlinger: protect input/output stream access

Some methods would not check that the output orinput stream of a thread
was still valid before calling functions on its interface.
This could cause a crash if those methods where called while the output or
input was being closed by another thread.

Make sure that the output or input stream pointer is cleared before closing the
stream.
Always check that the output or input pointer is not null before calling
functions at the stream interface.
Generalize the use of initCheck() method to verify that the output or input
stream is not null.

Change-Id: I9d9ca6b744d011bcf3a7bbacb4a581ac1477bfa5

12 years agoDo not release recording frames if camera is gone
James Dong [Sat, 6 Aug 2011 00:19:29 +0000 (17:19 -0700)]
Do not release recording frames if camera is gone

Change-Id: Ia6038c1a3ca17207e43a955ec47c42cdff1f5a76
related-to-bug: 5129465

13 years agoMerge "Close the DRM session in the destructor of ChromiumHTTPDataSource. Fix for...
Gloria Wang [Thu, 4 Aug 2011 23:32:10 +0000 (16:32 -0700)]
Merge "Close the DRM session in the destructor of ChromiumHTTPDataSource. Fix for bug 5015079."

13 years agoClose the DRM session in the destructor of ChromiumHTTPDataSource.
Gloria Wang [Thu, 4 Aug 2011 23:01:35 +0000 (16:01 -0700)]
Close the DRM session in the destructor of ChromiumHTTPDataSource.
Fix for bug 5015079.

Change-Id: I45fcf6ff8b50e62f2812930eaf68c00206cb7e52

13 years agoMerge "resolved conflicts for merge of 845fdba7 to master"
Gloria Wang [Thu, 4 Aug 2011 22:33:12 +0000 (15:33 -0700)]
Merge "resolved conflicts for merge of 845fdba7 to master"

13 years agoresolved conflicts for merge of 845fdba7 to master
Gloria Wang [Thu, 4 Aug 2011 22:13:14 +0000 (15:13 -0700)]
resolved conflicts for merge of 845fdba7 to master

Change-Id: I716b6ceb03bd733f9e7f49008112c8f2c53ad9ce

13 years agoEliminate superfluous memcpys by wrapping an ABuffer in a MediaBuffer
Andreas Huber [Thu, 4 Aug 2011 22:05:17 +0000 (15:05 -0700)]
Eliminate superfluous memcpys by wrapping an ABuffer in a MediaBuffer

Change-Id: I1313f117cd7cdfaf7d6ec25413a0b4b8ea495037
related-to-bug: 5122973

13 years agoam 8a6fb50d: am 4e197ea8: am e15a73ee: Merge "Bug fixes in OMA DRM v1 Forward Lock...
Gloria Wang [Thu, 4 Aug 2011 21:47:43 +0000 (14:47 -0700)]
am 8a6fb50d: am 4e197ea8: am e15a73ee: Merge "Bug fixes in OMA DRM v1 Forward Lock Agent"

* commit '8a6fb50d69ec40a413b117bc9145a97ec427852f':
  Bug fixes in OMA DRM v1 Forward Lock Agent

13 years agoRestart HLS streaming from the bottom of the playlist if we miss the boat on the
Andreas Huber [Thu, 4 Aug 2011 19:02:47 +0000 (12:02 -0700)]
Restart HLS streaming from the bottom of the playlist if we miss the boat on the

next segment. This can happen if for whatever reason we playback video slower than
it is served.

Also removed some unnecessary verbosity from ChromiumHTTPDataSource.

Change-Id: I6e870879310c9efe4d50d7dc0883c08405442d79
related-to-bug: 5120425

13 years agoBug fixes in OMA DRM v1 Forward Lock Agent
Henrik B Andersson [Mon, 21 Feb 2011 13:22:08 +0000 (14:22 +0100)]
Bug fixes in OMA DRM v1 Forward Lock Agent

A couple of fixes in the Forward Lock Agent.
The DRM Framework isn't thread safe so the Forward Lock Agent needs
to protect the private structures.
Base64-encoded content with LF-only instead of CRLF line breaks is now
accepted.
A fix for non-standard boundary characters.
The debug prints are also turned off as default.

Change-Id: I8ab417231380fbe1c371d18a147773ceabc6f69f

13 years agoMerge "Add camera bayer image format."
Wu-cheng Li [Thu, 4 Aug 2011 08:46:56 +0000 (01:46 -0700)]
Merge "Add camera bayer image format."

13 years agoAdd camera bayer image format.
Wu-cheng Li [Tue, 2 Aug 2011 09:49:50 +0000 (17:49 +0800)]
Add camera bayer image format.

The API are hidden.

bug:5086073

Change-Id: Ic9a53e5d5007ad3f12a28406ee25098227f14cbc

13 years agoMerge "Check the syncword for each frame. Fix for bug 5117233."
Gloria Wang [Wed, 3 Aug 2011 22:37:24 +0000 (15:37 -0700)]
Merge "Check the syncword for each frame. Fix for bug 5117233."

13 years agoCheck the syncword for each frame.
Gloria Wang [Wed, 3 Aug 2011 22:06:35 +0000 (15:06 -0700)]
Check the syncword for each frame.
Fix for bug 5117233.

Change-Id: I714c9b671832c9606cabdfe6bb21697c08de2eff

13 years agoAudioFlinger: disable AEC and NS with BT headsets
Eric Laurent [Mon, 1 Aug 2011 16:52:20 +0000 (09:52 -0700)]
AudioFlinger: disable AEC and NS with BT headsets

Disable AEC and NS when the Bluetooth SCO headset in use indicates it
implements those pre processings.

Change-Id: I93f3d10b0a27243d5dbff7182639576fc0c6d862

13 years agoMerge "Audio Effect Framework: add effect suspend/restore"
Eric Laurent [Wed, 3 Aug 2011 17:38:04 +0000 (10:38 -0700)]
Merge "Audio Effect Framework: add effect suspend/restore"

13 years agoAudio Effect Framework: add effect suspend/restore
Eric Laurent [Thu, 28 Jul 2011 02:49:51 +0000 (19:49 -0700)]
Audio Effect Framework: add effect suspend/restore

Add the possibility for the effect framework to suspend
(temporarily disable process) and restore audio effects.
This feature will be usefull to disable pre processing under certain
conditions and better control coexistence of audio effects
on output mix and specific sources.

Change-Id: I79b195982cc48748d5708308fb1647b9c3c34cc6

13 years agoRemoving hack for framerate setting in Stagefright for encoders.
Sarthak Aggarwal [Tue, 2 Aug 2011 04:49:04 +0000 (10:19 +0530)]
Removing hack for framerate setting in Stagefright for encoders.

Ducati binary starting to support frame-rate on i/p port rather than o/p port,
stagefright can start giving frame-rate frame rate on i/p port and 0 on o/p
port.

Change-Id: I70830747e43e6bfcac73f0fb01de0ab0235a7b28
Signed-Off-By: Sarthak Aggarwal<sarthak@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agoMerge "Start thread pool for binder calls"
James Dong [Tue, 2 Aug 2011 17:36:44 +0000 (10:36 -0700)]
Merge "Start thread pool for binder calls"

13 years agoMerge "Re-calculate mCurrentTimeUs for MP3 CBR seek because we might have called...
Gloria Wang [Tue, 2 Aug 2011 16:56:51 +0000 (09:56 -0700)]
Merge "Re-calculate mCurrentTimeUs for MP3 CBR seek because we might have called Resync() which changes mCurrentPos. For bug 4869063."

13 years agoMerge "Fix ordering assumption of argument evaluation."
Gloria Wang [Tue, 2 Aug 2011 16:22:05 +0000 (09:22 -0700)]
Merge "Fix ordering assumption of argument evaluation."

13 years agoMerge "Fix ordering assumption of argument evaluation."
Gloria Wang [Tue, 2 Aug 2011 16:21:53 +0000 (09:21 -0700)]
Merge "Fix ordering assumption of argument evaluation."

13 years agoPass camera frame metadata from camera service to Java.
Wu-cheng Li [Fri, 29 Jul 2011 21:00:37 +0000 (05:00 +0800)]
Pass camera frame metadata from camera service to Java.

bug:4460717
Change-Id: I2fae6e1dfca6b8f3a5ee5716fc7817f5417bf657

13 years agoAdd camera recording hint parameter.
Wu-cheng Li [Tue, 2 Aug 2011 05:20:36 +0000 (13:20 +0800)]
Add camera recording hint parameter.

The API is still hidden.

bug:4266229
Change-Id: I5e4c24e9e2808582aecb55ac4f1d5be3ed7e36a2

13 years agoStart thread pool for binder calls
James Dong [Tue, 2 Aug 2011 01:21:00 +0000 (18:21 -0700)]
Start thread pool for binder calls

Change-Id: Ie67f54ba06d7fdb42bcb041c1e0a50d8477ae423
related-to-bug: 5095635

13 years agoMerge "connect/disconnect is now called from our EGL wrapper"
Mathias Agopian [Mon, 1 Aug 2011 23:36:02 +0000 (16:36 -0700)]
Merge "connect/disconnect is now called from our EGL wrapper"

13 years agoam 8fb7bd4d: am 5bb3129c: (-s ours) am a2616220: am 5e57c2cf: Merge "Stagefright...
Jean-Baptiste Queru [Mon, 1 Aug 2011 21:12:43 +0000 (14:12 -0700)]
am 8fb7bd4d: am 5bb3129c: (-s ours) am a2616220: am 5e57c2cf: Merge "Stagefright: Return error if codec takes too long to return a buffer."

* commit '8fb7bd4d02cd4ad2111699778e64464d979f03bb':
  Stagefright: Return error if codec takes too long to return a buffer.

13 years agoam 5bb3129c: (-s ours) am a2616220: am 5e57c2cf: Merge "Stagefright: Return error...
Jean-Baptiste Queru [Mon, 1 Aug 2011 21:10:39 +0000 (14:10 -0700)]
am 5bb3129c: (-s ours) am a2616220: am 5e57c2cf: Merge "Stagefright: Return error if codec takes too long to return a buffer."

* commit '5bb3129c7eabce34d7c1469826e1795d4b225bb3':
  Stagefright: Return error if codec takes too long to return a buffer.

13 years agoconnect/disconnect is now called from our EGL wrapper
Mathias Agopian [Sat, 30 Jul 2011 00:55:48 +0000 (17:55 -0700)]
connect/disconnect is now called from our EGL wrapper

the original connect/disconnect hooks are deprecated
and replace by api_connect/api_disconnect. the original
hooks are no no-ops.
api_connect/api_disconnect is now only called from the
android framework.

Bug: 5057915
Change-Id: I8ca64cd1acd6cabf915bf54689ec2e5f6dfa495a

13 years agoFix ordering assumption of argument evaluation.
Gloria Wang [Mon, 1 Aug 2011 21:01:29 +0000 (14:01 -0700)]
Fix ordering assumption of argument evaluation.

No specific order is specified in the C++ standard, but the order of
the calls to Parcel read commands matters.  Move any calls with multiple
reads to local variables.

Fix for bug 5104979.

Change-Id: I709aa040e990d2659e7a3a089f7a42ae812de9ff

13 years agoMerge "Stagefright: Return error if codec takes too long to return a buffer."
Jean-Baptiste Queru [Mon, 1 Aug 2011 20:43:07 +0000 (13:43 -0700)]
Merge "Stagefright: Return error if codec takes too long to return a buffer."

13 years agoMerge "Fix NALU extraction of unit starts with a 0x00 nalType"
Andreas Huber [Mon, 1 Aug 2011 20:26:11 +0000 (13:26 -0700)]
Merge "Fix NALU extraction of unit starts with a 0x00 nalType"

13 years agoFix NALU extraction of unit starts with a 0x00 nalType
Andreas Huber [Mon, 1 Aug 2011 20:22:26 +0000 (13:22 -0700)]
Fix NALU extraction of unit starts with a 0x00 nalType

by not backing up beyond the start of the nal unit.

Change-Id: I5fba9913202de416e634e5f39181be62b72b2469
related-to-bug: 4770290

13 years agoFix ordering assumption of argument evaluation.
Gloria Wang [Mon, 1 Aug 2011 17:31:24 +0000 (10:31 -0700)]
Fix ordering assumption of argument evaluation.

No specific order is specified in the C++ standard, but the order of
the calls to Parcel read commands matters.  Move any calls with multiple
reads to local variables.

Fix for bug 5103507.

Change-Id: Ic23ad50ec5f443146f00324b66d5e2bd5b9ffd0d

13 years agoStart playing live streaming HLS content from the first segment.
Andreas Huber [Fri, 22 Jul 2011 16:36:24 +0000 (09:36 -0700)]
Start playing live streaming HLS content from the first segment.

Also properly signal a "hard" discontinuity, i.e. a possible format change
when a discontinuity is signalled explicitly as part of the playlist.

Change-Id: Ic347d3d11d39b0411c3726a7c723bcf13092b8bc
related-to-bug: 51031555103013

13 years agoMerge "Part of fix for bug 5065047 build libchromium as a shared lib"
Kristian Monsen [Fri, 29 Jul 2011 10:37:49 +0000 (03:37 -0700)]
Merge "Part of fix for bug 5065047 build libchromium as a shared lib"

13 years agoMerge "Add frame metadata parameter to camera data_callback."
Wu-cheng Li [Fri, 29 Jul 2011 00:23:35 +0000 (17:23 -0700)]
Merge "Add frame metadata parameter to camera data_callback."

13 years agoAdd frame metadata parameter to camera data_callback.
Wu-cheng Li [Wed, 27 Jul 2011 21:30:59 +0000 (05:30 +0800)]
Add frame metadata parameter to camera data_callback.

bug:4460717
Change-Id: Ib47d7d7df20af8155a719f3dabefe030893bfebc

13 years agoFix issue 5090721: audio record broken
Eric Laurent [Thu, 28 Jul 2011 20:59:02 +0000 (13:59 -0700)]
Fix issue 5090721: audio record broken

Commit 6dbdc40 introduced a deadlock when exiting the
AudioFlinger RecordThread.

Change-Id: I1f63e54c5aeff05da4e4d028b53f734c62c78677

13 years agoMerge "Bug 4599730 Get audio channel count on MediaPlayer"
Glenn Kasten [Wed, 27 Jul 2011 21:45:28 +0000 (14:45 -0700)]
Merge "Bug 4599730 Get audio channel count on MediaPlayer"

13 years agoRe-calculate mCurrentTimeUs for MP3 CBR seek because we might have
Gloria Wang [Wed, 27 Jul 2011 21:10:53 +0000 (14:10 -0700)]
Re-calculate mCurrentTimeUs for MP3 CBR seek because we might have
called Resync() which changes mCurrentPos.
For bug 4869063.

Change-Id: I5c5876ad81adf0ced1a6e6c18cda6905bf38f731

13 years agoBug 4599730 Get audio channel count on MediaPlayer
Glenn Kasten [Mon, 25 Jul 2011 16:26:22 +0000 (09:26 -0700)]
Bug 4599730 Get audio channel count on MediaPlayer

Related changes:
 - Fix bug in get/setParameter* to recycle Parcels when done with them.

Change-Id: Iaff05e91bbd99a14fccb79d816dd873359b6ae65

13 years agolibstagefright: add destroyOMXPlugin and use C linkage for symbols
Iliyan Malchev [Wed, 27 Jul 2011 07:58:25 +0000 (00:58 -0700)]
libstagefright: add destroyOMXPlugin and use C linkage for symbols

Add a destroyOMXPlugin() to complemenet createOMXPlugin().  Since the latter is
an opaque call into a library, it is not safe to assume that the object thus
returned may be destroyed by calling delete.  This patch will call
destroyOMXPlugin() in libstagefrighthw.so, if the symbol is defined there.
Otherwise, it will default to a delete as before.

Also, prefer C linkage for the symbol names.  Using mangled C++ symbols is not
very safe and makes it hard to grep for those symbols through the code.  We
attempt to locate createOMXPlugin as a C symbol then try it as a mangled C++
one.  We only use C linkage for destroyOMXPlugin since this symbol is new.

Change-Id: Ied23c910486856a0f18056df049c871234797c5c
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agolibcameraservice: call put_parameters on camera HAL
Iliyan Malchev [Tue, 26 Jul 2011 22:56:44 +0000 (15:56 -0700)]
libcameraservice: call put_parameters on camera HAL

Change-Id: I492d1034ade50f9e157141debaa9783a90a04a91
Signed-off-by: Iliyan Malchev <malchev@google.com>
13 years agoMerge "AudioFlinger: fix crash when deleting pre process."
Eric Laurent [Wed, 27 Jul 2011 16:48:47 +0000 (09:48 -0700)]
Merge "AudioFlinger: fix crash when deleting pre process."

13 years agoMerge "Fix issue 4604090: notification sound interrupted."
Eric Laurent [Wed, 27 Jul 2011 16:02:47 +0000 (09:02 -0700)]
Merge "Fix issue 4604090: notification sound interrupted."

13 years agoMerge "AudioRecord: Fix getInput()"
Eric Laurent [Wed, 27 Jul 2011 15:56:08 +0000 (08:56 -0700)]
Merge "AudioRecord: Fix getInput()"

13 years agoMerge "Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being...
Kristian Monsen [Wed, 27 Jul 2011 12:33:33 +0000 (05:33 -0700)]
Merge "Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed to subsequent HTTP requests"

13 years agoAudioFlinger: fix crash when deleting pre process.
Eric Laurent [Wed, 27 Jul 2011 03:54:46 +0000 (20:54 -0700)]
AudioFlinger: fix crash when deleting pre process.

If a pre processing effect is detroyed while enabled and capture is active,
there was a possibility that the effect engine is released by the framework
while still processed by the audio HAL.

The fix consists in not releasing the engine in EffectModule::removeHandle()
but just flag the effect as being detroyed to avoid further calls to functions
on the engine effect interface.
The effect interface is then removed from the audio HAL safely in
EffectChain::removeEffect_l() while holding the EffectChain mutex.

Change-Id: I71fab30d9145062af8644f545a1f1d4d3e7e7f02

13 years agoAudioRecord: Fix getInput()
Eric Laurent [Wed, 27 Jul 2011 03:32:28 +0000 (20:32 -0700)]
AudioRecord: Fix getInput()

AudioRecord::getInput() was issuing a query to get a new input stream from
audio policy service instead of returning the cached input stream in AudioRecord.

Change-Id: Ice324b7c60bc0898149023797bcb56a72091b9d3

13 years agoAdd camera face detection API.
Wu-cheng Li [Thu, 21 Jul 2011 18:37:11 +0000 (02:37 +0800)]
Add camera face detection API.

API are still hidden.

bug:4460717
Change-Id: I1a515061f141a89bd61c875257712789fb15d2d4

13 years agoFix issue 4604090: notification sound interrupted.
Eric Laurent [Fri, 22 Jul 2011 16:04:31 +0000 (09:04 -0700)]
Fix issue 4604090: notification sound interrupted.

The problem is that the audio HAL fails to acquire the wake lock when playing the notification.
This is because of a change that removed the mediaserver process form the system group for honeycomb.

The fix consists in requesting the wake lock from PowerManagerService when AudioFlinger mixer
wakes up.

A consequence of this change is that audio HALs or pcm drivers do not have to hold wake locks
anymore as in the past.

Change-Id: I4fb3cc84816c9c408ab7fec75886baf801e1ecb5

13 years agoMerge "Fix for bug 4371230. - Generate unique ID for each DrmManagerClient in native...
Gloria Wang [Mon, 25 Jul 2011 23:36:20 +0000 (16:36 -0700)]
Merge "Fix for bug 4371230. - Generate unique ID for each DrmManagerClient in native side - Fix the bug where multiple clients could use the same ID - Return the correct unique ID back to Java - Add a flag in the unique ID to separate native client and Java client"

13 years agoFix for bug 4371230.
Gloria Wang [Thu, 21 Jul 2011 22:10:22 +0000 (15:10 -0700)]
Fix for bug 4371230.
- Generate unique ID for each DrmManagerClient in native side
- Fix the bug where multiple clients could use the same ID
- Return the correct unique ID back to Java
- Add a flag in the unique ID to separate native client and Java client

Change-Id: Ia4574b6b0a526f2335a65380975dc62f9a6e7f9b

13 years agoMerge "Adding Metadata mode to SurfaceMediaSource"
Pannag Sanketi [Mon, 25 Jul 2011 22:00:16 +0000 (15:00 -0700)]
Merge "Adding Metadata mode to SurfaceMediaSource"

13 years agoMerge "Added APIs for audio preprocessing"
Eric Laurent [Mon, 25 Jul 2011 21:43:05 +0000 (14:43 -0700)]
Merge "Added APIs for audio preprocessing"

13 years agoAdded APIs for audio preprocessing
Eric Laurent [Sun, 24 Jul 2011 20:36:09 +0000 (13:36 -0700)]
Added APIs for audio preprocessing

Added APIs to control pre processes applied on captured audio.
Those APIs are still hidden until reviewed by API council.

Three types of standard pre processes are supported:
- Automatic Gain Control (AGC) by AutomaticGainControl class
- Acoustic Echo Cancellation (AEC) by AcousticEchoCanceler class
- Noise Suppression (NS) by NoiseSuppressor class

A method is added to AudioEffect class to query audio pre processings
applied by default by the platform on a given AudioRecord session ID.

Change-Id: I0b9fceeb8c704dd06319c3b52b85c96fe871d51d

13 years agoMerge "Do not support still image capture mode for timelapse video recording"
James Dong [Mon, 25 Jul 2011 21:21:14 +0000 (14:21 -0700)]
Merge "Do not support still image capture mode for timelapse video recording"

13 years agoMerge "AudioFlinger: add dump of audio pre processing."
Eric Laurent [Mon, 25 Jul 2011 19:20:23 +0000 (12:20 -0700)]
Merge "AudioFlinger: add dump of audio pre processing."

13 years agoPart of fix for bug 5065047 build libchromium as a shared lib
Kristian Monsen [Fri, 22 Jul 2011 13:19:36 +0000 (14:19 +0100)]
Part of fix for bug 5065047 build libchromium as a shared lib

Building chromium as a shared lib, updating other libs that
use it.

Change-Id: Ia20749bb7fbec51b94adb314116503f62f41b782

13 years agoAudioFlinger: add dump of audio pre processing.
Eric Laurent [Mon, 25 Jul 2011 00:49:51 +0000 (17:49 -0700)]
AudioFlinger: add dump of audio pre processing.

Dump of media.audio_flinger service was only listing effects on output threads.
Moved the dump of effect chains from PlaybackThread to ThreadBase class so that
pre processings on RecordThread are also listed.

Change-Id: If8bc74023c12b9c2371f1b300743b156ceca7b87

13 years agoMerge "Do not wait forever for output buffers in OMXCodec.cpp and error out in case...
James Dong [Sun, 24 Jul 2011 21:40:08 +0000 (14:40 -0700)]
Merge "Do not wait forever for output buffers in OMXCodec.cpp and error out in case time out happens"

13 years agoMerge "QueryCodecs() signature change"
Jean-Michel Trivi [Sun, 24 Jul 2011 19:59:35 +0000 (12:59 -0700)]
Merge "QueryCodecs() signature change"

13 years agoMerge "Do not change the number of bytes while converting 8-bit samples to 16-bit...
Gloria Wang [Sun, 24 Jul 2011 19:07:20 +0000 (12:07 -0700)]
Merge "Do not change the number of bytes while converting 8-bit samples to 16-bit, because this number will be used later to calculate mCurrentPos. Fix for bug 5063703."

13 years agoDo not support still image capture mode for timelapse video recording
James Dong [Wed, 29 Jun 2011 23:56:52 +0000 (16:56 -0700)]
Do not support still image capture mode for timelapse video recording

related-to-bug: 4973779

Change-Id: Ica665217ab10247b2242acc4e93d4fe9f83e3f45

13 years agoAdding Metadata mode to SurfaceMediaSource
Pannag Sanketi [Thu, 14 Jul 2011 21:37:47 +0000 (14:37 -0700)]
Adding Metadata mode to SurfaceMediaSource

SurfaceMediaSource operates in metadata mode only, i.e. just the
metadata is stored in videobuffers. SurfaceMediaSource passes the Gralloc
buffer handle along with a 4 byte 'type' (indicating that the metadata
is of type GrallocSource) to the encoder as opposed to the
GrallocBuffer itself.

Related to bug id: 4529323

Change-Id: I83aebc0dd10f317658cdf70be5802dfc35a1e72d

13 years agoMerge "Connect MediaRecorder Native to SurfaceMediaSource"
Pannag Sanketi [Fri, 22 Jul 2011 23:42:41 +0000 (16:42 -0700)]
Merge "Connect MediaRecorder Native to SurfaceMediaSource"

13 years agoQueryCodecs() signature change
Jean-Michel Trivi [Fri, 22 Jul 2011 16:52:39 +0000 (09:52 -0700)]
QueryCodecs() signature change

Restore QueryCodecs() signature exactly as used by third-party libs.
Add an alternative function to select HW only codecs.

Change-Id: Ibb2cb4dd36fc0c6599eb93aa5751c216397e3b6f

13 years agoDo not change the number of bytes while converting 8-bit samples to 16-bit,
Gloria Wang [Fri, 22 Jul 2011 21:42:28 +0000 (14:42 -0700)]
Do not change the number of bytes while converting 8-bit samples to 16-bit,
because this number will be used later to calculate mCurrentPos.
Fix for bug 5063703.

Change-Id: I75a78ef694482aa426d82a6c5f3d2ce570a9c19e

13 years agoSurfaceTexture: add the abandon method.
Jamie Gennis [Tue, 19 Jul 2011 19:08:33 +0000 (12:08 -0700)]
SurfaceTexture: add the abandon method.

This change adds the 'abandon' method to the SurfaceTexture C++ class.
This method may be used to put the SurfaceTexture in an abandoned state,
causing all ISurfaceTexture methods to fail.

Change-Id: Ibd261f7b73f44e2bec36a8508bf92113cfb7cf95

13 years agoConnect MediaRecorder Native to SurfaceMediaSource
Pannag Sanketi [Sat, 2 Jul 2011 00:39:39 +0000 (17:39 -0700)]
Connect MediaRecorder Native to SurfaceMediaSource

Making a connection from MediaRecorder Native layer to the
SurfaceMediaSource for the purpose of encoding GL Frames. This will be
called from the java side inside the Mobile Filter Framework.

The mediarecorder native layer (client), when set the videosource to
option VIDEO_SOURCE_FRAMES, asks the StageFrightRecorder on the mediaserver
side to create a SurfaceMediaSource object and pass it back as a
sp<ISurfaceTexture> object. Using that, the client side will dequeue and
queue buffers. Connecting the GL Frames to the obtained
sp<ISurfaceTexture> is not part of this CL.

Related to bug id: 4529323

Change-Id: I651bec718dd5b935779e7d7a050b841c2d0b0fcd

13 years agoSurfaceMediaSource: remove getAllocator method
Jamie Gennis [Fri, 22 Jul 2011 21:00:37 +0000 (14:00 -0700)]
SurfaceMediaSource: remove getAllocator method

This change removes the getAllocator method from SurfaceMediaSource
because that method is no longer a part of the ISurfaceTexture
interface.

Change-Id: I0e2f0bc3bc1c8cd3c1b4b14246f07b9b4e3066c3

13 years agoMerge "Renaming SurfaceEncoder to SurfaceMediaSource"
Pannag Sanketi [Fri, 22 Jul 2011 18:49:36 +0000 (11:49 -0700)]
Merge "Renaming SurfaceEncoder to SurfaceMediaSource"

13 years agoMerge "Adding SurfaceEncoder for encoding FilterFrames"
Pannag Sanketi [Fri, 22 Jul 2011 18:49:21 +0000 (11:49 -0700)]
Merge "Adding SurfaceEncoder for encoding FilterFrames"

13 years agoMerge "Fix issue 4988574: 8 bit PCM audio playback broken."
Eric Laurent [Fri, 22 Jul 2011 18:04:07 +0000 (11:04 -0700)]
Merge "Fix issue 4988574: 8 bit PCM audio playback broken."

13 years agoMerge "Retry datasource fetches a few times before giving up (NuCachedSource2)."
Andreas Huber [Fri, 22 Jul 2011 17:25:24 +0000 (10:25 -0700)]
Merge "Retry datasource fetches a few times before giving up (NuCachedSource2)."

13 years agoMerge "Log setVideoSurface() and setVideoSurfaceTexture() failures."
James Dong [Fri, 22 Jul 2011 17:09:22 +0000 (10:09 -0700)]
Merge "Log setVideoSurface() and setVideoSurfaceTexture() failures."

13 years agoRetry datasource fetches a few times before giving up (NuCachedSource2).
Andreas Huber [Mon, 18 Jul 2011 20:47:55 +0000 (13:47 -0700)]
Retry datasource fetches a few times before giving up (NuCachedSource2).

Change-Id: I147fc18ef55bc89d2e2fee69b7869c45abbfdd6b
related-to-bug: 3405354

13 years agoFix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed...
Kristian Monsen [Fri, 22 Jul 2011 13:11:31 +0000 (14:11 +0100)]
Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed to subsequent HTTP requests

Cookies should be store between requests in memory with this.

Tell me if you want to store the cookies on disk as well.

Change-Id: I9afe5796a3d395afcf54d669c86cf7da432f8d9a

13 years agoFix issue 4988574: 8 bit PCM audio playback broken.
Eric Laurent [Fri, 22 Jul 2011 02:35:01 +0000 (19:35 -0700)]
Fix issue 4988574: 8 bit PCM audio playback broken.

Fixed regression in audio track control block frame size
calculation introduced by commit c310dcb.

Change-Id: Ia731b946ae4e43316b98d80229e3b08a696e47d6

13 years agoLog setVideoSurface() and setVideoSurfaceTexture() failures.
James Dong [Fri, 22 Jul 2011 00:32:55 +0000 (17:32 -0700)]
Log setVideoSurface() and setVideoSurfaceTexture() failures.

Change-Id: Iaea34e74a0cf569fc85b926949253dea6baa6142
related-to-bug: 5063370

13 years agoRenaming SurfaceEncoder to SurfaceMediaSource
Pannag Sanketi [Thu, 30 Jun 2011 22:30:03 +0000 (15:30 -0700)]
Renaming SurfaceEncoder to SurfaceMediaSource

Related to bug id: 4529323

Change-Id: Id820d45a536bd2c65e0a59def564eb5b3ea4a71c

13 years agoAdding SurfaceEncoder for encoding FilterFrames
Pannag Sanketi [Sat, 11 Jun 2011 01:30:30 +0000 (18:30 -0700)]
Adding SurfaceEncoder for encoding FilterFrames

Adding SurfaceEncoder which can be used to encode
custom frame data. In a sense, it is reverse
of what SurfaceTexture does.

SurfaceEncoder takes in frames from a native window and
passes them to an encoder, thus acting like a MediaSource.
It uses GRAlloc buffers underneath for passing data.
The client side sets the geometry, format in the beginning,
which cannot be changed while the recording is going on.

Currently, there is no common pixel format that both
GRAlloc and HAL understand.
Also, the encoder cannot encode using the data from the GRAlloc
buffers.

The SurfaceEncoder_test examines mainly the buffer passage
since true encoding cannot be done at this point.
SimpleDummyRecorder 'reads' the frames in the same thread
as the start(), whereas DummyRecorder 'reads' in a separate
thread much like the MPEG4Writer. The test with DummyRecorder
is much closer to the real encoding implementation.

Related to bug id: 4529323

Change-Id: I58ec19a150f8fe4d6195196dc44f55002b46c7c8

13 years agoAdding AndoirdOpaque Colorformat to OMX
Pannag Sanketi [Wed, 20 Jul 2011 00:14:53 +0000 (17:14 -0700)]
Adding AndoirdOpaque Colorformat to OMX

Adding an enum to indicate an android opaque OMX
colorformat. This will inform the encoder that
the actual colorformat will be relayed by the
Frames read from the GRAlloc Buffers

Related to bug id: 4529323

Change-Id: Iddc5bd1ce8ca2b2506a57aadf5fc91ff0c7b78ef

13 years agoMerge "fix for issue 4142219 Don't hard code platform-specific limitations-jni/java...
Hong Teng [Thu, 21 Jul 2011 18:13:43 +0000 (11:13 -0700)]
Merge "fix for issue  4142219 Don't hard code platform-specific limitations-jni/java part"

13 years agoMerge "Untangle MediaScanner error handling. Bug: 5056917"
Jeff Brown [Thu, 21 Jul 2011 01:03:47 +0000 (18:03 -0700)]
Merge "Untangle MediaScanner error handling. Bug: 5056917"

13 years agoMerge "Audio framework: support for audio pre processing"
Eric Laurent [Thu, 21 Jul 2011 00:45:37 +0000 (17:45 -0700)]
Merge "Audio framework: support for audio pre processing"

13 years agoUntangle MediaScanner error handling.
Jeff Brown [Wed, 20 Jul 2011 23:38:43 +0000 (16:38 -0700)]
Untangle MediaScanner error handling.
Bug: 5056917

Change-Id: I1a7a73579e3ba4e9709459329fc1901a28b0f4b1

13 years agofix for issue 4142219
Hong Teng [Thu, 7 Jul 2011 01:33:09 +0000 (18:33 -0700)]
fix for issue  4142219
Don't hard code platform-specific limitations-jni/java part

Change-Id: Icde261b1caf29a8cf552884c97f3c9d0b41741a3

13 years agoMerge "Let the media recording framework release the Camera object when it is the...
James Dong [Wed, 20 Jul 2011 23:08:32 +0000 (16:08 -0700)]
Merge "Let the media recording framework release the Camera object when it is the owner"

13 years agoLet the media recording framework release the Camera object when it is the owner
James Dong [Wed, 20 Jul 2011 03:24:22 +0000 (20:24 -0700)]
Let the media recording framework release the Camera object when it is the owner

related-to-bug: 5050535,5036813,5051707

Change-Id: I88e10f65f087931e7f95ab26a018d59f7361103e

13 years agoMerge "MediaPlayer: add a disconnect from ANativeWindow"
Jamie Gennis [Wed, 20 Jul 2011 17:47:04 +0000 (10:47 -0700)]
Merge "MediaPlayer: add a disconnect from ANativeWindow"

13 years agoMerge "Content found in the wild violated the MPEG4 systems specs"
Andreas Huber [Wed, 20 Jul 2011 15:05:06 +0000 (08:05 -0700)]
Merge "Content found in the wild violated the MPEG4 systems specs"

13 years agoContent found in the wild violated the MPEG4 systems specs
Andreas Huber [Tue, 19 Jul 2011 23:05:50 +0000 (16:05 -0700)]
Content found in the wild violated the MPEG4 systems specs

but other players apparently worked around it as well, so we do to.

Change-Id: I8269d2344b010d1d704028c8a9c05bddab53828d
related-to-bug: 5049979

13 years agoMerge "More HLS fixes"
Andreas Huber [Tue, 19 Jul 2011 22:33:25 +0000 (15:33 -0700)]
Merge "More HLS fixes"