OSDN Git Service

android-x86/frameworks-av.git
10 years agoam 9c1969c8: am 51d166ec: am 9060d498: Merge "update offloaded audio track sampling...
Eric Laurent [Tue, 17 Dec 2013 22:21:08 +0000 (22:21 +0000)]
am 9c1969c8: am 51d166ec: am 9060d498: Merge "update offloaded audio track sampling rate"

* commit '9c1969c854266216e7885e02d1cfffc62b16ced4':
  update offloaded audio track sampling rate

10 years agoam 51d166ec: am 9060d498: Merge "update offloaded audio track sampling rate"
Eric Laurent [Tue, 17 Dec 2013 22:17:29 +0000 (22:17 +0000)]
am 51d166ec: am 9060d498: Merge "update offloaded audio track sampling rate"

* commit '51d166ec7985949fa69262f213a4162708ebe81e':
  update offloaded audio track sampling rate

10 years agoam 9060d498: Merge "update offloaded audio track sampling rate"
Eric Laurent [Tue, 17 Dec 2013 22:11:13 +0000 (14:11 -0800)]
am 9060d498: Merge "update offloaded audio track sampling rate"

* commit '9060d498be0c54d3caf84e2dbf1ba62516b3e76e':
  update offloaded audio track sampling rate

10 years agoMerge "update offloaded audio track sampling rate"
Eric Laurent [Tue, 17 Dec 2013 22:04:08 +0000 (22:04 +0000)]
Merge "update offloaded audio track sampling rate"

10 years agoupdate offloaded audio track sampling rate
Eric Laurent [Sat, 27 Jul 2013 00:16:50 +0000 (17:16 -0700)]
update offloaded audio track sampling rate

AudioPlayer must read the sampling rate from offloaded audio sinks
whenever a new time position is computed as the decoder can update
the sampling rate on the fly.

Change-Id: I997e5248cfd4017aeceb4e11689324ded2a5bc88

10 years agoam 5c474238: am 5893736d: am a67c7653: Merge "Increase kFastTrackMultiplier from...
Glenn Kasten [Tue, 17 Dec 2013 16:35:48 +0000 (16:35 +0000)]
am 5c474238: am 5893736d: am a67c7653: Merge "Increase kFastTrackMultiplier from 1 to 2"

* commit '5c474238bc579224ec8f7267d05651b0aa934100':
  Increase kFastTrackMultiplier from 1 to 2

10 years agoam 5893736d: am a67c7653: Merge "Increase kFastTrackMultiplier from 1 to 2"
Glenn Kasten [Tue, 17 Dec 2013 16:33:47 +0000 (16:33 +0000)]
am 5893736d: am a67c7653: Merge "Increase kFastTrackMultiplier from 1 to 2"

* commit '5893736dc1776008026e660526d34943ea888fd6':
  Increase kFastTrackMultiplier from 1 to 2

10 years agoam a67c7653: Merge "Increase kFastTrackMultiplier from 1 to 2"
Glenn Kasten [Tue, 17 Dec 2013 16:30:03 +0000 (08:30 -0800)]
am a67c7653: Merge "Increase kFastTrackMultiplier from 1 to 2"

* commit 'a67c76538fff102cd44b2f38dd073df5f2a33605':
  Increase kFastTrackMultiplier from 1 to 2

10 years agoMerge "Increase kFastTrackMultiplier from 1 to 2"
Glenn Kasten [Tue, 17 Dec 2013 16:26:41 +0000 (16:26 +0000)]
Merge "Increase kFastTrackMultiplier from 1 to 2"

10 years agostagefright: Fix bugs in playlist fetcher logic
Lajos Molnar [Mon, 16 Dec 2013 18:16:32 +0000 (10:16 -0800)]
stagefright: Fix bugs in playlist fetcher logic

1. Improve start time: start playback as soon as the target duration
or 10s was buffered.
2. Select playlist monitor time based on target duration to avoid
continuously missing the boat.
3. If "we miss the boat" we still must request a safe sequence
number (last - 3)

Change-Id: Ie99c360ac67b152ad9af19e9c6e520016f67e4e3
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 12060952

10 years agoMerge "Better character set encoding detection"
Marco Nelissen [Thu, 12 Dec 2013 02:04:01 +0000 (02:04 +0000)]
Merge "Better character set encoding detection"

10 years agoam a9d563f3: am 7c464c07: am a0e1c391: Merge changes Ia684fde5,I58fcb526
Andy McFadden [Wed, 11 Dec 2013 23:04:40 +0000 (23:04 +0000)]
am a9d563f3: am 7c464c07: am a0e1c391: Merge changes Ia684fde5,I58fcb526

* commit 'a9d563f307c71f91026e9464662434e6feb06ec2':
  Fix the help text
  screenrecord fixes

10 years agoMerge commit 'ca084e88' into manualmerge
Andy McFadden [Wed, 11 Dec 2013 22:58:56 +0000 (14:58 -0800)]
Merge commit 'ca084e88' into manualmerge

Doing a "merge -s ours" since the changes are already in master.

Change-Id: Id8cf832d5f2d30ec880d91c0392a53d5fcfe54f3

10 years agoam 7c464c07: am a0e1c391: Merge changes Ia684fde5,I58fcb526
Andy McFadden [Wed, 11 Dec 2013 22:07:50 +0000 (22:07 +0000)]
am 7c464c07: am a0e1c391: Merge changes Ia684fde5,I58fcb526

* commit '7c464c0783ab2917572fdc565056ca677abf90ba':
  Fix the help text
  screenrecord fixes

10 years agoam 17ce8846: am 1c9ca7d1: Merge "Add "--bugreport" option to screenrecord"
Andy McFadden [Wed, 11 Dec 2013 22:07:49 +0000 (22:07 +0000)]
am 17ce8846: am 1c9ca7d1: Merge "Add "--bugreport" option to screenrecord"

* commit '17ce8846ca97754579442f80d3e19e2d5aa7597f':
  Add "--bugreport" option to screenrecord

10 years agoam a0e1c391: Merge changes Ia684fde5,I58fcb526
Andy McFadden [Wed, 11 Dec 2013 21:48:44 +0000 (13:48 -0800)]
am a0e1c391: Merge changes Ia684fde5,I58fcb526

* commit 'a0e1c3918dd1356445df98e89dab6be2c8a78da3':
  Fix the help text
  screenrecord fixes

10 years agoam 1c9ca7d1: Merge "Add "--bugreport" option to screenrecord"
Andy McFadden [Wed, 11 Dec 2013 21:48:43 +0000 (13:48 -0800)]
am 1c9ca7d1: Merge "Add "--bugreport" option to screenrecord"

* commit '1c9ca7d13e948af4633d5e5f8117d8c53ac684f6':
  Add "--bugreport" option to screenrecord

10 years agoMerge changes Ia684fde5,I58fcb526
Andy McFadden [Wed, 11 Dec 2013 21:30:41 +0000 (21:30 +0000)]
Merge changes Ia684fde5,I58fcb526

* changes:
  Fix the help text
  screenrecord fixes

10 years agoMerge "Add "--bugreport" option to screenrecord"
Andy McFadden [Wed, 11 Dec 2013 21:29:49 +0000 (21:29 +0000)]
Merge "Add "--bugreport" option to screenrecord"

10 years agoFix the help text
Andy McFadden [Wed, 20 Nov 2013 00:48:50 +0000 (16:48 -0800)]
Fix the help text

Pesky bloggers.

(cherry-pick from Ia8677b054423db292a34e28337431b57804df259)

Change-Id: Ia684fde52697ea78fca79de958ef8b31a50e68ba

10 years agoscreenrecord fixes
Andy McFadden [Tue, 19 Nov 2013 20:50:17 +0000 (12:50 -0800)]
screenrecord fixes

Fixes to issues identified during code review.

(cherry-pick from I2203694acb5c0544878f64f4347d29ad1a0725c4)

Change-Id: I58fcb5264fc17b26fac4b03f95d35262e9e199e2

10 years agoAdd "--bugreport" option to screenrecord
Andy McFadden [Fri, 18 Oct 2013 14:31:41 +0000 (07:31 -0700)]
Add "--bugreport" option to screenrecord

The --bugreport option adds two visible features: (1) a timestamp
overlay that (mostly) matches logcat, making it easier to match what
appears in the video with what's in the log, and (2) an "info page"
at the start of the video that shows the system configuration.

Enabling this option adds an additional composition step,
increasing the overhead of screenrecord.  Depending on the device
and circumstances, this may be unnoticeable or very pronounced.
If --bugreport is not enabled, the overhead of screenrecord is
unchanged.

We also now track device orientation changes.  This is currently
detected by polling surfaceflinger, which is suboptimal.  As a
result, we detect the rotation too late, and get a weird mixed
frame before the start of the animation for 90-degree changes.

Also, allow the bit rate to be specified as e.g. "4M" for 4Mbps.

Also, --rotate is now deprecated.

Bug 11220305
Bug 11136964

(cherry pick from Ibb94b81d2f73547b95d7a47e027da75fab187a4f)

Change-Id: I829a91aaca5ab82a07c14172d9e188ec38f14e57

10 years agoBetter character set encoding detection
Marco Nelissen [Wed, 13 Nov 2013 22:18:21 +0000 (14:18 -0800)]
Better character set encoding detection

Id3 tags are supposed to be ISO-8859-1 or unicode, but often aren't.
To better detect the real encoding we now use ICU to detect possible
encodings for a given byte sequence, then apply additional heuristics
to determine the most likely one.
b/5564857

Change-Id: I53bc83b006433da5c2f2ccfcd770ddb3a26b64d0

10 years agolibstagefright: Delay release of wakelock in TimedEventQueue
Haynes Mathew George [Fri, 6 Dec 2013 19:31:57 +0000 (11:31 -0800)]
libstagefright: Delay release of wakelock in TimedEventQueue

Delay release of wakelock in the TimedEventQueue to
after an event has been processed.
This ensures AP shutdown does not happen while an event
is ready but hasn't been processed yet.

Bug: 11976087.

Change-Id: I71a5f3ac4a57e1d05dd5d9ab5c6f91ed7bb64c87

10 years agoRevert "stagefright: fix TimedEventQueue wakelock"
Eric Laurent [Wed, 11 Dec 2013 01:20:46 +0000 (17:20 -0800)]
Revert "stagefright: fix TimedEventQueue wakelock"

This reverts commit aef04853de0ce27222cf6250b2ba4fa9fc6a72a8.

10 years agoMerge "CameraMetadata: fix metadata alignment issue"
Zhijun He [Tue, 10 Dec 2013 19:20:59 +0000 (19:20 +0000)]
Merge "CameraMetadata: fix metadata alignment issue"

10 years agoCameraMetadata: fix metadata alignment issue
Zhijun He [Thu, 5 Dec 2013 15:46:51 +0000 (07:46 -0800)]
CameraMetadata: fix metadata alignment issue

When camera metadata is passed through binder interface, there is no
guarantee the destination address of the metadata copy is aligned to
the alignment boundary required by metadata copy, which could cause
metadata validation fail. this change aligns the start address of the
metadata copy destination blob to address this issue.

Bug: 12010193
Change-Id: I540c6b4c484fe87a1d625a362310f33a309c1772

10 years agoam e2976465: (-s ours) DO NOT MERGE reset to goog/klp-volantis-dev
Qiwen Zhao [Tue, 10 Dec 2013 01:58:41 +0000 (01:58 +0000)]
am e2976465: (-s ours) DO NOT MERGE reset to goog/klp-volantis-dev

* commit 'e2976465ef00aa6aeee94fc845a487c95b47a304':

10 years agoDO NOT MERGE reset to goog/klp-volantis-dev
Qiwen Zhao [Mon, 9 Dec 2013 22:17:36 +0000 (14:17 -0800)]
DO NOT MERGE reset to goog/klp-volantis-dev

10 years agoaudioflinger: check for condition before waiting
Haynes Mathew George [Wed, 4 Dec 2013 05:26:02 +0000 (21:26 -0800)]
audioflinger: check for condition before waiting

AsyncCallbackThread must check for any condition that
was already been satisfied before waiting.

Bug: 11824817
Change-Id: Ic8c2090d521ecd6a30b76ee75635258d35eb1eff

10 years agostagefright: fix TimedEventQueue wakelock
Eric Laurent [Fri, 6 Dec 2013 18:11:32 +0000 (10:11 -0800)]
stagefright: fix TimedEventQueue wakelock

If an event is taking a wakelock, the wakelock must be
released after the event is fired.
If the wakelock is released before and the event execution
implies some sleeps or I/O the system can go idle as
no wakelock is held anymore.

Bug: 11976087.

Change-Id: Ie7df8ed4834952ff818ff27d6be415c0b1794a9f

10 years agoam 5e967f6a: am e2d617f5: Merge commit \'2381f06f374ee0cb8bca0edf5388394432b00e6d...
The Android Open Source Project [Fri, 6 Dec 2013 01:43:28 +0000 (01:43 +0000)]
am 5e967f6a: am e2d617f5: Merge commit \'2381f06f374ee0cb8bca0edf5388394432b00e6d\' into HEAD

* commit '5e967f6a202a2184f730bb2e11950acedcb36eb6':

10 years agoam e2d617f5: Merge commit \'2381f06f374ee0cb8bca0edf5388394432b00e6d\' into HEAD
The Android Open Source Project [Fri, 6 Dec 2013 01:26:01 +0000 (17:26 -0800)]
am e2d617f5: Merge commit \'2381f06f374ee0cb8bca0edf5388394432b00e6d\' into HEAD

* commit 'e2d617f5ba7fb90f27b03e2593666b2c927e4dc9':

10 years agoam 899180ea: (-s ours) am 8ec8a534: am 1e0b0808: Merge "Restore stagefright command...
Andreas Huber [Thu, 5 Dec 2013 22:51:53 +0000 (22:51 +0000)]
am 899180ea: (-s ours) am 8ec8a534: am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev

* commit '899180eab65d54181f6d99c239cae63be1b1d908':

10 years agoam 26248749: (-s ours) am 00dbc7ba: am 46052913: Better error message
Andy McFadden [Thu, 5 Dec 2013 22:51:52 +0000 (22:51 +0000)]
am 26248749: (-s ours) am 00dbc7ba: am 46052913: Better error message

* commit '26248749a159d8a121b496cb48520873cf3e0a03':

10 years agoam 2b40124d: (-s ours) am 82278b2c: am fe9611bd: Merge "Fix potential leak of audio...
Jeff Brown [Thu, 5 Dec 2013 22:51:51 +0000 (22:51 +0000)]
am 2b40124d: (-s ours) am 82278b2c: am fe9611bd: Merge "Fix potential leak of audio input handle." into klp-dev

* commit '2b40124d81c84381b2b21313b4b6c7d0449883d1':

10 years agoam 69505439: (-s ours) am 4d9bc1a7: am b8689b31: Support for "request-sync" parameter...
Andreas Huber [Thu, 5 Dec 2013 22:50:05 +0000 (22:50 +0000)]
am 69505439: (-s ours) am 4d9bc1a7: am b8689b31: Support for "request-sync" parameter in ACodec

* commit '6950543979b2943c82c96cd232878c3e8aa7ab2c':

10 years agoam 71b6b571: (-s ours) am 60147776: (-s ours) am 7473e356: (-s ours) am 943917c4...
Glenn Kasten [Thu, 5 Dec 2013 22:50:04 +0000 (22:50 +0000)]
am 71b6b571: (-s ours) am 60147776: (-s ours) am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '71b6b57127ec245c55b1b13b07637957229ee25e':

10 years agoMerge "Add RecordThread media.log and deferred deallocation"
Glenn Kasten [Thu, 5 Dec 2013 22:49:46 +0000 (22:49 +0000)]
Merge "Add RecordThread media.log and deferred deallocation"

10 years agoMerge "Change mActiveTrack to mActiveTracks vector"
Glenn Kasten [Thu, 5 Dec 2013 22:16:25 +0000 (22:16 +0000)]
Merge "Change mActiveTrack to mActiveTracks vector"

10 years agoAdd RecordThread media.log and deferred deallocation
Glenn Kasten [Mon, 30 Sep 2013 21:39:28 +0000 (14:39 -0700)]
Add RecordThread media.log and deferred deallocation

This change allows a media.log buffer for RecordThread.

Unlike playback threads which stick around forever, the RecordThread comes
and goes for every capture session.  This means that the media.log buffer
for a RecordThread would disappear too, and so was useless.  Now when a
thread exits, it's associated media.log buffer is just marked for deferred
deallocation.  It is only actually freed when the memory is needed.

Other changes:
 - Fix bug in unregistering comparison, it was comparing the wrong pointers
 - Increased size of log area so we can log for RecordThread also

Change-Id: If45d4c03a793b86390a0112ec3acc5d41b2e3635

10 years agoam 8ec8a534: am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev
Andreas Huber [Thu, 5 Dec 2013 21:30:53 +0000 (21:30 +0000)]
am 8ec8a534: am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev

* commit '8ec8a5346831efa699d31274363da9cf516981db':

10 years agoam 00dbc7ba: am 46052913: Better error message
Andy McFadden [Thu, 5 Dec 2013 21:30:52 +0000 (21:30 +0000)]
am 00dbc7ba: am 46052913: Better error message

* commit '00dbc7ba6ba089c40ff1cbea370828b57a464b52':

10 years agoam 82278b2c: am fe9611bd: Merge "Fix potential leak of audio input handle." into...
Jeff Brown [Thu, 5 Dec 2013 21:29:06 +0000 (21:29 +0000)]
am 82278b2c: am fe9611bd: Merge "Fix potential leak of audio input handle." into klp-dev

* commit '82278b2ceeebbcf345ed81413eeffa82fa82e05b':

10 years agoPrint statistics after ctrl-C
Marco Nelissen [Thu, 5 Dec 2013 20:26:30 +0000 (12:26 -0800)]
Print statistics after ctrl-C

And exit cleanly when no audio or video track is found.
Change-Id: I3e030d60c774ad3ede839cba999ab32dd86bab5a

10 years agoMerge commit '2381f06f374ee0cb8bca0edf5388394432b00e6d' into HEAD
The Android Open Source Project [Thu, 5 Dec 2013 20:38:14 +0000 (12:38 -0800)]
Merge commit '2381f06f374ee0cb8bca0edf5388394432b00e6d' into HEAD

10 years agoam 4d9bc1a7: am b8689b31: Support for "request-sync" parameter in ACodec
Andreas Huber [Thu, 5 Dec 2013 19:46:23 +0000 (19:46 +0000)]
am 4d9bc1a7: am b8689b31: Support for "request-sync" parameter in ACodec

* commit '4d9bc1a742b386db4985ad1f973091a50207fdc2':

10 years agoam 60147776: (-s ours) am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix Sound...
Glenn Kasten [Thu, 5 Dec 2013 19:40:45 +0000 (19:40 +0000)]
am 60147776: (-s ours) am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '601477769cef254d3a95338e853a37ccf9aac63f':
  Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE

10 years agoIncrease kFastTrackMultiplier from 1 to 2
Glenn Kasten [Tue, 3 Dec 2013 17:06:43 +0000 (09:06 -0800)]
Increase kFastTrackMultiplier from 1 to 2

Change-Id: I158f147295eebcea96e4047d7618069bc48bdd7d

10 years agoam 7ecfe4ec: am 92630351: Merge "NuPlayer: Use a software renderer when using softwar...
Marco Nelissen [Mon, 2 Dec 2013 23:31:18 +0000 (23:31 +0000)]
am 7ecfe4ec: am 92630351: Merge "NuPlayer: Use a software renderer when using software codecs"

* commit '7ecfe4ec3f6842377f840513850ad31933bcea30':
  NuPlayer: Use a software renderer when using software codecs

10 years agoMerge "Code simplification and movement to prepare for mActiveTracks"
Glenn Kasten [Mon, 2 Dec 2013 18:37:46 +0000 (18:37 +0000)]
Merge "Code simplification and movement to prepare for mActiveTracks"

10 years agoam 92630351: Merge "NuPlayer: Use a software renderer when using software codecs"
Marco Nelissen [Thu, 28 Nov 2013 17:34:37 +0000 (09:34 -0800)]
am 92630351: Merge "NuPlayer: Use a software renderer when using software codecs"

* commit '92630351d265a61faae2dfe006a8bb330283aa7b':
  NuPlayer: Use a software renderer when using software codecs

10 years agoMerge "NuPlayer: Use a software renderer when using software codecs"
Marco Nelissen [Thu, 28 Nov 2013 17:26:16 +0000 (17:26 +0000)]
Merge "NuPlayer: Use a software renderer when using software codecs"

10 years agoAudioTrack: fix position callback after restore
Eric Laurent [Wed, 27 Nov 2013 22:29:13 +0000 (14:29 -0800)]
AudioTrack: fix position callback after restore

When restoring an AudioTrack, the next position callback point
should not be modified and set ahead of current buffer head.
Otherwise, as frames are dropped, the new position is never reached
and an application relying on position callbacks to reload the buffer
would be stalled.

Bug: 11868603.
Change-Id: I93b2a311642a0c89944b78bcc0482d4ceed98ae4

10 years agoMerge "camera2/3: Add protection for still capture path"
Zhijun He [Wed, 27 Nov 2013 19:05:24 +0000 (19:05 +0000)]
Merge "camera2/3: Add protection for still capture path"

10 years agocamera2/3: Add protection for still capture path
Zhijun He [Tue, 26 Nov 2013 23:11:05 +0000 (15:11 -0800)]
camera2/3: Add protection for still capture path

Jpeg stream in JpegProcessor could be deleted while process new capture is
ongoing, which unsafe to access a dead consumer endpoint.
Bug: 9316454
Change-Id: I2950f31ea28d0ba01f08502e2e3ba452bf8bb818

10 years agoam 616c2cf1: am 90892d1b: Merge "Fix SIGABRT when playing mp4 file"
Marco Nelissen [Tue, 26 Nov 2013 16:48:39 +0000 (08:48 -0800)]
am 616c2cf1: am 90892d1b: Merge "Fix SIGABRT when playing mp4 file"

* commit '616c2cf1507898a0de4228b95d435fd36ec1e029':
  Fix SIGABRT when playing mp4 file

10 years agoam 90892d1b: Merge "Fix SIGABRT when playing mp4 file"
Marco Nelissen [Tue, 26 Nov 2013 16:38:55 +0000 (08:38 -0800)]
am 90892d1b: Merge "Fix SIGABRT when playing mp4 file"

* commit '90892d1be84776f59a619ea4ef9ce51be5828ff8':
  Fix SIGABRT when playing mp4 file

10 years agoMerge "Avoid the call to CameraSourceTimeLapse::trySettingVideoSize if initialization...
Robert Shih [Tue, 26 Nov 2013 06:03:20 +0000 (06:03 +0000)]
Merge "Avoid the call to CameraSourceTimeLapse::trySettingVideoSize if initialization failed in the parent class ctor CameraSource::CameraSource."

10 years agoMerge "Fix SIGABRT when playing mp4 file"
Marco Nelissen [Tue, 26 Nov 2013 02:10:18 +0000 (02:10 +0000)]
Merge "Fix SIGABRT when playing mp4 file"

10 years agoam 97f6618f: am 11e71558: Merge "Fixed data offset at parsing IPMP Descriptors"
Marco Nelissen [Mon, 25 Nov 2013 17:45:31 +0000 (09:45 -0800)]
am 97f6618f: am 11e71558: Merge "Fixed data offset at parsing IPMP Descriptors"

* commit '97f6618fb3eae850945decda725151baa9388aca':
  Fixed data offset at parsing IPMP Descriptors

10 years agoam 11e71558: Merge "Fixed data offset at parsing IPMP Descriptors"
Marco Nelissen [Mon, 25 Nov 2013 17:39:47 +0000 (09:39 -0800)]
am 11e71558: Merge "Fixed data offset at parsing IPMP Descriptors"

* commit '11e715589e0f3f96389d0eedab677369da680fd4':
  Fixed data offset at parsing IPMP Descriptors

10 years agoFix SIGABRT when playing mp4 file
Marco Nelissen [Mon, 25 Nov 2013 16:39:56 +0000 (08:39 -0800)]
Fix SIGABRT when playing mp4 file

If the track duration was shorter than the segment duration, the calculated
encoder padding would be negative, resulting in a crash.
b/11823061
https://code.google.com/p/android/issues/detail?id=62610

Change-Id: I3989ad88caea38d212b61355c15aec13382c6116

10 years agoMerge "Fixed data offset at parsing IPMP Descriptors"
Marco Nelissen [Mon, 25 Nov 2013 16:34:06 +0000 (16:34 +0000)]
Merge "Fixed data offset at parsing IPMP Descriptors"

10 years agoFixed data offset at parsing IPMP Descriptors
Ichitaro Kohara [Thu, 6 Jun 2013 03:19:17 +0000 (12:19 +0900)]
Fixed data offset at parsing IPMP Descriptors

MPEG4Extractor::parseDrmSINF() miscalculated data offset in parsing
IPMP Descriptors. This commit makes it to take in 2 bytes which is
the size of IPMPS_Type field.

Change-Id: I42cbb6793af9d9b2f14dbfdd7a616096002793f9

10 years agoam 52716352: am 5bf2560c: Merge commit \'b2059ff384eee8ffb70a7ec8fc5570405201c734...
The Android Open Source Project [Sat, 23 Nov 2013 03:31:24 +0000 (19:31 -0800)]
am 52716352: am 5bf2560c: Merge commit \'b2059ff384eee8ffb70a7ec8fc5570405201c734\' into HEAD

* commit '52716352d4102767f862605997c1c49e157b2c4f':

10 years agoam 5bf2560c: Merge commit \'b2059ff384eee8ffb70a7ec8fc5570405201c734\' into HEAD
The Android Open Source Project [Sat, 23 Nov 2013 01:40:36 +0000 (17:40 -0800)]
am 5bf2560c: Merge commit \'b2059ff384eee8ffb70a7ec8fc5570405201c734\' into HEAD

* commit '5bf2560ce9b70bee077e0c264ac06648f0f63acc':

10 years agoAvoid the call to CameraSourceTimeLapse::trySettingVideoSize if initialization
Robert Shih [Fri, 22 Nov 2013 20:58:43 +0000 (12:58 -0800)]
Avoid the call to CameraSourceTimeLapse::trySettingVideoSize if initialization
failed in the parent class ctor CameraSource::CameraSource.

Bug: 11636771
Change-Id: I5e6bffc1ebeeb1c2b84d6ed2049b2b3676ac046a

10 years agoMerge "Check all server-provided sp<IMemory>"
Glenn Kasten [Fri, 22 Nov 2013 23:47:53 +0000 (23:47 +0000)]
Merge "Check all server-provided sp<IMemory>"

10 years agoMerge "Fix bug in creation of EffectHandle when out of memory"
Glenn Kasten [Fri, 22 Nov 2013 23:38:17 +0000 (23:38 +0000)]
Merge "Fix bug in creation of EffectHandle when out of memory"

10 years agoMerge "Consistent error checking for sp<IMemory> and pointer()"
Glenn Kasten [Fri, 22 Nov 2013 23:28:07 +0000 (23:28 +0000)]
Merge "Consistent error checking for sp<IMemory> and pointer()"

10 years agoMerge commit 'b2059ff384eee8ffb70a7ec8fc5570405201c734' into HEAD
The Android Open Source Project [Fri, 22 Nov 2013 18:35:20 +0000 (10:35 -0800)]
Merge commit 'b2059ff384eee8ffb70a7ec8fc5570405201c734' into HEAD

10 years agoaudioflinger: fix offload write buffer offset
Eric Laurent [Fri, 22 Nov 2013 17:29:56 +0000 (09:29 -0800)]
audioflinger: fix offload write buffer offset

Fix current audio HAL write buffer offset calculation
which assumes that the frame size is a multiple of 2.

Change-Id: I0195ed5cfef225a6f114e7dd405a02680bb7254e

10 years agoMerge "update offloaded audio track sampling rate"
Eric Laurent [Fri, 22 Nov 2013 18:12:29 +0000 (18:12 +0000)]
Merge "update offloaded audio track sampling rate"

10 years agoupdate offloaded audio track sampling rate
Eric Laurent [Sat, 27 Jul 2013 00:16:50 +0000 (17:16 -0700)]
update offloaded audio track sampling rate

AudioPlayer must read the sampling rate from offloaded audio sinks
whenever a new time position is computed as the decoder can update
the sampling rate on the fly.

Change-Id: I997e5248cfd4017aeceb4e11689324ded2a5bc88

10 years agoMerge "Camera3: Remove request from InFlightMap for error case"
Zhijun He [Thu, 21 Nov 2013 21:55:59 +0000 (21:55 +0000)]
Merge "Camera3: Remove request from InFlightMap for error case"

10 years agoCamera3: Remove request from InFlightMap for error case
Zhijun He [Thu, 21 Nov 2013 20:57:51 +0000 (12:57 -0800)]
Camera3: Remove request from InFlightMap for error case

We don't expect HAL send back valid result metadata if error occurs for a
request, such as during flush call. The request needs to be removed from in
flight request map accordingly.

Bug: 9758581
Change-Id: I51fe327337325ce72f11ce592778a2af02e98479

10 years agoMerge "Code simplification for timed allocate"
Glenn Kasten [Thu, 21 Nov 2013 18:02:27 +0000 (18:02 +0000)]
Merge "Code simplification for timed allocate"

10 years agoChange mActiveTrack to mActiveTracks vector
Glenn Kasten [Thu, 21 Nov 2013 00:37:38 +0000 (16:37 -0800)]
Change mActiveTrack to mActiveTracks vector

The size of mActiveTracks is still limited to 1 for now.

Change-Id: Ia6b06b25d8c4709f087110ae29c589999407a2a2

10 years agoCode simplification and movement to prepare for mActiveTracks
Glenn Kasten [Thu, 21 Nov 2013 00:40:08 +0000 (16:40 -0800)]
Code simplification and movement to prepare for mActiveTracks

Share code to acquire wake lock at entry to loop

Change-Id: I01fb645de9417055c0adfc6a4c4011bf22ea4f94

10 years agoCheck all server-provided sp<IMemory>
Glenn Kasten [Wed, 20 Nov 2013 22:37:13 +0000 (14:37 -0800)]
Check all server-provided sp<IMemory>

If the sp<IMemory> from server is non-0, make sure it also has
a non-NULL pointer().   If it is NULL, treat it as if the sp<> was 0.

Change-Id: I6d0bd786587eb73fac38af787c11eba541880685

10 years agoFix bug in creation of EffectHandle when out of memory
Glenn Kasten [Wed, 20 Nov 2013 21:54:52 +0000 (13:54 -0800)]
Fix bug in creation of EffectHandle when out of memory

If there is insufficient client memory to create the EffectHandle,
it was returning a handle which would be useless.  Now it correctly
reports the out-of-memory error back to client.

Change-Id: I894e65d5d17df39383032c1527be6ccd35f578bb

10 years agoConsistent error checking for sp<IMemory> and pointer()
Glenn Kasten [Tue, 24 Sep 2013 18:52:37 +0000 (11:52 -0700)]
Consistent error checking for sp<IMemory> and pointer()

There have been concerns that an sp<IMemory> could be non-0, but the
associated pointer() still be NULL.  There are rumors this may happen
when a non-0 sp<IMemory> is passed in by client but the shared memory cannot
be re-mapped into mediaserver.

There's also evidence in the early (2009/03/03) pre-git code of checking
pointer() for NULL, after a local allocate() returned a non-0 sp<IMemory>.
It's not clear if this is "cargo cult" paranoia, or if there was a
genuine reason for the check.

In any case, we now consistently check pointer() for sp<IMemory>
input parameters in createTrack() and queueTimedBuffer().

We also check after successful allocate().  If allocate() returns a
non-0 sp<> but NULL pointer(), then treat it as if the allocate() had
returned 0.

Change-Id: I3013ac5766b493d443ecef71711ec861076a623e

10 years agoCode simplification for timed allocate
Glenn Kasten [Wed, 20 Nov 2013 19:57:08 +0000 (11:57 -0800)]
Code simplification for timed allocate

Change-Id: I5acccd7418c5b4a4dc0112147c750fef9f74bf33

10 years agoOnly send a format change if the buffer has data
Marco Nelissen [Tue, 19 Nov 2013 00:35:17 +0000 (16:35 -0800)]
Only send a format change if the buffer has data

b/11696552

Change-Id: I31aba6e01a7b4d288f4d85d9e2ddec0aac1c2d1f

10 years agoFix the help text
Andy McFadden [Wed, 20 Nov 2013 00:48:50 +0000 (16:48 -0800)]
Fix the help text

Pesky bloggers.

Change-Id: Ia8677b054423db292a34e28337431b57804df259

10 years agoMerge "screenrecord fixes"
Andy McFadden [Tue, 19 Nov 2013 21:42:28 +0000 (21:42 +0000)]
Merge "screenrecord fixes"

10 years agoscreenrecord fixes
Andy McFadden [Tue, 19 Nov 2013 20:50:17 +0000 (12:50 -0800)]
screenrecord fixes

Fixes to issues identified during code review.

Change-Id: I2203694acb5c0544878f64f4347d29ad1a0725c4

10 years agoMerge "Camera3: add systraces for hal open/close"
Zhijun He [Tue, 19 Nov 2013 18:45:45 +0000 (18:45 +0000)]
Merge "Camera3: add systraces for hal open/close"

10 years agoCamera3: add systraces for hal open/close
Zhijun He [Tue, 19 Nov 2013 16:45:15 +0000 (08:45 -0800)]
Camera3: add systraces for hal open/close

Bug: 10901465
Change-Id: I32fb96aa0f9efd423bdb9a3d92c142a096a7a47f

10 years agoMerge "The member mRefreshState was removed in commit and the printout causes"
Andreas Huber [Tue, 19 Nov 2013 16:39:47 +0000 (16:39 +0000)]
Merge "The member mRefreshState was removed in commit and the printout causes"

10 years agoMerge "Add "--bugreport" option to screenrecord"
Andy McFadden [Tue, 19 Nov 2013 15:29:42 +0000 (15:29 +0000)]
Merge "Add "--bugreport" option to screenrecord"

10 years agoam 72afcd5d: am 5ea5b020: Merge "WA: Queue extra buffers on output port during reconf...
Lajos Molnar [Tue, 19 Nov 2013 01:37:08 +0000 (17:37 -0800)]
am 72afcd5d: am 5ea5b020: Merge "WA: Queue extra buffers on output port during reconfig if input EOS-ed" into klp-dev

* commit '72afcd5da296b1f5fb38ef037054855aaea88054':
  WA: Queue extra buffers on output port during reconfig if input EOS-ed

10 years agoam 5ea5b020: Merge "WA: Queue extra buffers on output port during reconfig if input...
Lajos Molnar [Tue, 19 Nov 2013 01:34:39 +0000 (17:34 -0800)]
am 5ea5b020: Merge "WA: Queue extra buffers on output port during reconfig if input EOS-ed" into klp-dev

* commit '5ea5b020b311a68f513d4a40aca5551abc6a07d8':
  WA: Queue extra buffers on output port during reconfig if input EOS-ed

10 years agoMerge "WA: Queue extra buffers on output port during reconfig if input EOS-ed" into...
Lajos Molnar [Tue, 19 Nov 2013 01:28:28 +0000 (01:28 +0000)]
Merge "WA: Queue extra buffers on output port during reconfig if input EOS-ed" into klp-dev

10 years agoThe member mRefreshState was removed in commit and the printout causes
Andreas Huber [Mon, 18 Nov 2013 23:55:21 +0000 (15:55 -0800)]
The member mRefreshState was removed in commit and the printout causes

build failure when verbose logging is enabled.

patch contributed by "Bertil Akesson" <bertil.akesson@sonymobile.com>

Change-Id: I1520e24be67d35cd42571ec6211c909a6be76604
related-to-bug: 11056200

10 years agoAdd "--bugreport" option to screenrecord
Andy McFadden [Fri, 18 Oct 2013 14:31:41 +0000 (07:31 -0700)]
Add "--bugreport" option to screenrecord

The --bugreport option adds two visible features: (1) a timestamp
overlay that (mostly) matches logcat, making it easier to match what
appears in the video with what's in the log, and (2) an "info page"
at the start of the video that shows the system configuration.

Enabling this option adds an additional composition step,
increasing the overhead of screenrecord.  Depending on the device
and circumstances, this may be unnoticeable or very pronounced.
If --bugreport is not enabled, the overhead of screenrecord is
unchanged.

We also now track device orientation changes.  This is currently
detected by polling surfaceflinger, which is suboptimal.  As a
result, we detect the rotation too late, and get a weird mixed
frame before the start of the animation for 90-degree changes.

Also, allow the bit rate to be specified as e.g. "4M" for 4Mbps.

Also, --rotate is now deprecated.

Bug 11220305
Bug 11136964

Change-Id: Ibb94b81d2f73547b95d7a47e027da75fab187a4f

10 years agoMerge "camera3: Remove BufferQueue::MIN_UNDEQUEUED_BUFFERS references"
Igor Murashkin [Mon, 18 Nov 2013 19:50:43 +0000 (19:50 +0000)]
Merge "camera3: Remove BufferQueue::MIN_UNDEQUEUED_BUFFERS references"

10 years agocamera3: Remove BufferQueue::MIN_UNDEQUEUED_BUFFERS references
Igor Murashkin [Mon, 18 Nov 2013 19:39:27 +0000 (11:39 -0800)]
camera3: Remove BufferQueue::MIN_UNDEQUEUED_BUFFERS references

Change-Id: I4730ac7849e915e88d3b8fc8aa869f53a8242501

10 years agoam 2381f06f: am 24605338: Merge "Fix metadata access" into klp-dev
Marco Nelissen [Fri, 15 Nov 2013 22:25:37 +0000 (14:25 -0800)]
am 2381f06f: am 24605338: Merge "Fix metadata access" into klp-dev

* commit '2381f06f374ee0cb8bca0edf5388394432b00e6d':
  Fix metadata access