OSDN Git Service

android-x86/frameworks-av.git
12 years agoMerge "Less verbose logging, lots of references." into jb-mr1-dev
Andreas Huber [Fri, 7 Sep 2012 23:02:47 +0000 (16:02 -0700)]
Merge "Less verbose logging, lots of references." into jb-mr1-dev

12 years agoLess verbose logging, lots of references.
Andreas Huber [Fri, 7 Sep 2012 22:46:41 +0000 (15:46 -0700)]
Less verbose logging, lots of references.

Change-Id: Idcb76848883b113e956d7e6266da882771a053b8

12 years agoMerge "Make wfd code work with both old and new dongles." into jb-mr1-dev
Andreas Huber [Fri, 7 Sep 2012 22:08:22 +0000 (15:08 -0700)]
Merge "Make wfd code work with both old and new dongles." into jb-mr1-dev

12 years agoMake wfd code work with both old and new dongles.
Andreas Huber [Fri, 7 Sep 2012 22:05:53 +0000 (15:05 -0700)]
Make wfd code work with both old and new dongles.

Change-Id: Idc750dc334c47a171791587dd7e7281d565ff566

12 years agoMerge "audioflinger: changes for new audio devices enums" into jb-mr1-dev
Eric Laurent [Fri, 7 Sep 2012 21:53:06 +0000 (14:53 -0700)]
Merge "audioflinger: changes for new audio devices enums" into jb-mr1-dev

12 years agoMerge "Fix iTunSMPB parsing for AAC tracks encoded with Nero" into jb-mr1-dev
John Grossman [Fri, 7 Sep 2012 20:41:15 +0000 (13:41 -0700)]
Merge "Fix iTunSMPB parsing for AAC tracks encoded with Nero" into jb-mr1-dev

12 years agoFix iTunSMPB parsing for AAC tracks encoded with Nero
John Grossman [Fri, 7 Sep 2012 18:41:07 +0000 (11:41 -0700)]
Fix iTunSMPB parsing for AAC tracks encoded with Nero

Make sure to clear out the mean/name/data state when parsing
apple-style metadata from tracks every time we have a full set, not
just when we find an iTunSMPB set.

AAC tracks encoded from WAV by Nero tend to put in an additional apple
style metadata tag (cdec) before the iTunSMPB tag.  The sequence in
the file goes something like

mean : "com.apple.iTunes"
name : "cdec"
data : "ndaudio 1.5.4.0 / -2pass -br 320000"
mean : "com.apple.iTunes"
name : "iTunSMPB"
data : " 00000000 00000A40 000000B8 <etc...>"

If the internal state was not cleared after the first set, then when
the second instance of "name" is encountered, an attempt is made to
parse the previous data entry as an iTunSMPB tag when it is actually a
cdec tag.  Afterwards, mean, name and data are all cleared, and when
the second data is encountered there is no current mean or name
present, so the gapless metadata gets skipped.  By clearing the
metadata state every time we have a full set of mean/name/data, we
make sure that we are always interpreting the data field as the proper
type.

Change-Id: I196e2e3f83e434f15d5ee55ae40a74a92d5a1845

12 years agoMerge "Camera2: Increase zoom steps." into jb-mr1-dev
Alexander Ray [Fri, 7 Sep 2012 19:35:09 +0000 (12:35 -0700)]
Merge "Camera2: Increase zoom steps." into jb-mr1-dev

12 years agoCamera2: Use the recordingHint parameter.
Eino-Ville Talvala [Thu, 30 Aug 2012 01:06:32 +0000 (18:06 -0700)]
Camera2: Use the recordingHint parameter.

Use recordingHint to create recording and still capture streams up
front, and to use the recording template when doing preview.

Bug: 6243944

Change-Id: Ifeb624794849f734784b53a1a10ff2bfe8f1a357

12 years agoCamera2: Delete all streams and stop all threads during shutdown.
Eino-Ville Talvala [Thu, 6 Sep 2012 02:02:43 +0000 (19:02 -0700)]
Camera2: Delete all streams and stop all threads during shutdown.

Bug: 6243944
Change-Id: If13a1f91e8a07c1ec4f91183d1a4b261ec4f6d52

12 years agoMerge "Camera2: Play shutter and recording sounds." into jb-mr1-dev
Eino-Ville Talvala [Fri, 7 Sep 2012 17:55:30 +0000 (10:55 -0700)]
Merge "Camera2: Play shutter and recording sounds." into jb-mr1-dev

12 years agoaudioflinger: changes for new audio devices enums
Eric Laurent [Tue, 28 Aug 2012 21:26:53 +0000 (14:26 -0700)]
audioflinger: changes for new audio devices enums

The ThreadBase class now has a separate member for input
and output devices (mInDevice, mOutDevice).

Only query get_supported_devices() from audio HAL if the function
is exposed and if the audio policy manager did not specify the
audio module to open.

Also fixed bug in AEC preprocessing that would reset
to default output device when an input device was given.

Change-Id: I19d4d06aeb920b068e3ef31e6e6be6345ce5d67a

12 years agoMerge "AudioRecord: Fix minimum frame count calculation." into jb-mr1-dev
Eric Laurent [Fri, 7 Sep 2012 16:18:43 +0000 (09:18 -0700)]
Merge "AudioRecord: Fix minimum frame count calculation." into jb-mr1-dev

12 years agoCamera2: Play shutter and recording sounds.
Eino-Ville Talvala [Fri, 7 Sep 2012 01:26:58 +0000 (18:26 -0700)]
Camera2: Play shutter and recording sounds.

Bug: 6987540

Change-Id: Icd441a757c4b68fc4988b3bfbef428adb8d1ba28

12 years agoCamera2: Increase zoom steps.
Eino-Ville Talvala [Fri, 7 Sep 2012 01:08:16 +0000 (18:08 -0700)]
Camera2: Increase zoom steps.

10 is too low for smooth zoom; increase number to improve smoothness.

Bug: 7120794
Change-Id: I178cd3890ef37beeff97cadb9e92ceab6d2cad06

12 years agoMerge "AudioFlinger: send audio source to audio effects" into jb-mr1-dev
Eric Laurent [Fri, 7 Sep 2012 01:04:59 +0000 (18:04 -0700)]
Merge "AudioFlinger: send audio source to audio effects" into jb-mr1-dev

12 years agoAdd a small hook to support gapless in AAH.
John Grossman [Fri, 24 Aug 2012 21:47:25 +0000 (14:47 -0700)]
Add a small hook to support gapless in AAH.

Change-Id: Ie07eca6b45142bdd83412ee0e38d732a4c355630

12 years agoMerge "Fix calculations for an obscure combo of MPEG audio options." into jb-mr1-dev
John Grossman [Thu, 6 Sep 2012 19:32:37 +0000 (12:32 -0700)]
Merge "Fix calculations for an obscure combo of MPEG audio options." into jb-mr1-dev

12 years agoAudioRecord: Fix minimum frame count calculation.
Eric Laurent [Thu, 6 Sep 2012 18:52:36 +0000 (11:52 -0700)]
AudioRecord: Fix minimum frame count calculation.

AudioRecord::set() was calling getMinFrameCount() with
a channel count instead of a channel mask.

Change-Id: Iabace7686426430fd53deac0c71b0c36aa64171c

12 years agoCamera2: Move locked states out of AE/AWB mode
Eino-Ville Talvala [Mon, 3 Sep 2012 17:03:26 +0000 (10:03 -0700)]
Camera2: Move locked states out of AE/AWB mode

Bug: 6243944

Change-Id: I7b609cc6c04c957d1f48c1a996263fa9c7b94000

12 years agoCamera2: Basic ZSL and precapture trigger support.
Eino-Ville Talvala [Thu, 30 Aug 2012 00:37:16 +0000 (17:37 -0700)]
Camera2: Basic ZSL and precapture trigger support.

- Add capture sequencer to control still image capture process
- Use precapture trigger for standard capture in sequencer
- Add infrastructure for reprocessing streams
- Add ZSL processor to maintain ZSL queue
- Add ZSL capture sequence to sequencer

This patch sets up ZSL mode and precapture triggers.

For now, to enable zsl mode, set the system property camera.zsl_mode
to 1.

Bug: 6243944

Change-Id: Icf8cb1a83a7c11a152a11007c8f3c54f8ea1c70c

12 years agoFix calculations for an obscure combo of MPEG audio options.
John Grossman [Wed, 29 Aug 2012 21:51:01 +0000 (14:51 -0700)]
Fix calculations for an obscure combo of MPEG audio options.

MPEGv2 and MPEGv2.5 Layer 2 audio payloads should 1152 samples per
access unit, not 576.  Adjust the frame size and samples out
calculations accordingly.

Also, adjust the max frame size in the MP3Extractor's MediaSource to
be closer to the theoretical worst case max frame size.  The
theoretical worst case for MPEG audio is 2881 bytes per frame, but the
max frame size being used was 32kB.  It has been changed to be 4kB in
order to remain a power of 2 allocation, but to be the power of 2
closest to the worst case.

Change-Id: If11f5a843b06e70151bbe8298cc54f954938d9d7

12 years agoMerge "Update remote display API." into jb-mr1-dev
Jeff Brown [Thu, 6 Sep 2012 17:15:30 +0000 (10:15 -0700)]
Merge "Update remote display API." into jb-mr1-dev

12 years agoMerge "Fix an issue where the "mFrameCount" field was accessed without its containing...
James Dong [Thu, 6 Sep 2012 02:49:52 +0000 (19:49 -0700)]
Merge "Fix an issue where the "mFrameCount" field was accessed without its containing object" into jb-mr1-dev

12 years agoMerge "To make mimetype for WAV file consistent over SF." into jb-mr1-dev
Marco Nelissen [Thu, 6 Sep 2012 02:19:52 +0000 (19:19 -0700)]
Merge "To make mimetype for WAV file consistent over SF." into jb-mr1-dev

12 years agoMerge "To support .mxmf which is specified in Android CDD." into jb-mr1-dev
Marco Nelissen [Thu, 6 Sep 2012 02:19:23 +0000 (19:19 -0700)]
Merge "To support .mxmf which is specified in Android CDD." into jb-mr1-dev

12 years agoUpdate remote display API.
Jeff Brown [Thu, 6 Sep 2012 00:48:03 +0000 (17:48 -0700)]
Update remote display API.

Renamed disconnect() to dispose() to emphasize the fact that
this method is intended to clean up the IRemoteDisplay
completely, not just temporarily disconnect the current client
(which might be useful someday).

Other minor tweaks.

Change-Id: I1209639eb0cd8af09c724206642d7e52aab48257

12 years agoFix an issue where the "mFrameCount" field was accessed without its containing object
James Dong [Wed, 5 Sep 2012 23:46:36 +0000 (16:46 -0700)]
Fix an issue where the "mFrameCount" field was accessed without its containing object

Change-Id: I6077b61b3e718b9b44ff86ca669a59f96b0b256f

12 years agoMerge "Fragmented mp4 extractor" into jb-mr1-dev
Marco Nelissen [Wed, 5 Sep 2012 23:22:16 +0000 (16:22 -0700)]
Merge "Fragmented mp4 extractor" into jb-mr1-dev

12 years agoFragmented mp4 extractor
Marco Nelissen [Tue, 28 Aug 2012 22:09:49 +0000 (15:09 -0700)]
Fragmented mp4 extractor

Still experimental. Set property "media.stagefright.use-fragmp4" to true to
enable.

Change-Id: I210b9c5b5164b5c5eefc31309845ee881ac7db8e

12 years agoExpose an IRemoteDisplay to trigger wifi display connections setup and feedback.
Andreas Huber [Wed, 5 Sep 2012 17:26:52 +0000 (10:26 -0700)]
Expose an IRemoteDisplay to trigger wifi display connections setup and feedback.

Change-Id: I7602cda0e38073c9f0e63fa4de238ca0d4b4ce8e

12 years agoImplement remote display service stubs.
Jeff Brown [Wed, 5 Sep 2012 04:38:42 +0000 (21:38 -0700)]
Implement remote display service stubs.

Change-Id: I582ed000026bba6d116db8304e15a3c52f8a9a01

12 years agoMerge "Configure the SurfaceMediaSource to emit the same number of buffers" into...
Andreas Huber [Wed, 5 Sep 2012 15:36:11 +0000 (08:36 -0700)]
Merge "Configure the SurfaceMediaSource to emit the same number of buffers" into jb-mr1-dev

12 years agoTo make mimetype for WAV file consistent over SF.
Dongwon Kang [Wed, 5 Sep 2012 11:30:40 +0000 (20:30 +0900)]
To make mimetype for WAV file consistent over SF.

(audio/x-wav is chosen because it was also used in MediaFile.java.)
Tested: checked wav files plays well on Music app.

Change-Id: Ifc07bcbed681e509176b1c144626f6f1009e69be

12 years agoTo support .mxmf which is specified in Android CDD.
Dongwon Kang [Wed, 5 Sep 2012 10:37:13 +0000 (19:37 +0900)]
To support .mxmf which is specified in Android CDD.

Bug: 7082658
Change-Id: I21269d72d1d21627c6adb2e6fbcb078d0eda6020
Tested: checked MediaScanner scans .mxmf and Music app plays .mxmf file.

12 years agoAdd setVideoScalingMode support to NuPlayer
James Dong [Fri, 31 Aug 2012 19:18:27 +0000 (12:18 -0700)]
Add setVideoScalingMode support to NuPlayer

o related-to-bug: 7089195

Change-Id: Ic30d9312673f2d5837c779e023ac64468ecd4951

12 years agoConfigure the SurfaceMediaSource to emit the same number of buffers
Andreas Huber [Tue, 4 Sep 2012 23:30:49 +0000 (16:30 -0700)]
Configure the SurfaceMediaSource to emit the same number of buffers

as the video encoder allocates for its input. Do this before connecting
the bufferqueue through surface flinger.

Change-Id: Ibc81db1359afe2d88fdb75b23fadae65c8a6f7cc

12 years agoSupport for acting as a wifi display sink.
Andreas Huber [Fri, 31 Aug 2012 21:05:27 +0000 (14:05 -0700)]
Support for acting as a wifi display sink.

Change-Id: I0beac87025b93c60164daa865c89f16b72197a47

12 years agoMerge "Improvements to our MPEG2 Transport Stream parser" into jb-mr1-dev
Andreas Huber [Tue, 4 Sep 2012 16:31:11 +0000 (09:31 -0700)]
Merge "Improvements to our MPEG2 Transport Stream parser" into jb-mr1-dev

12 years agoAudioFlinger: send audio source to audio effects
Eric Laurent [Sat, 1 Sep 2012 00:44:06 +0000 (17:44 -0700)]
AudioFlinger: send audio source to audio effects

Added support for EFFECT_CMD_SET_AUDIO_SOURCE audio effect
command to inform preprocessings of current audio source
selection for capture.

Change-Id: Ib2418a9aa8114e8457fe828ecd43b230ed86cdd6

12 years agoMerge "Move fragmented mp4 parser to libstagefright" into jb-mr1-dev
Marco Nelissen [Fri, 31 Aug 2012 21:41:47 +0000 (14:41 -0700)]
Merge "Move fragmented mp4 parser to libstagefright" into jb-mr1-dev

12 years agoMove fragmented mp4 parser to libstagefright
Marco Nelissen [Fri, 31 Aug 2012 18:07:37 +0000 (11:07 -0700)]
Move fragmented mp4 parser to libstagefright

and rename it from Parser to FragmentedMP4Parser
Change-Id: I986f50d0c5c93648aac675d6160e18623b031541

12 years agoMerge "Added an additional virtual method IStreamSource::flags()." into jb-mr1-dev
Andreas Huber [Fri, 31 Aug 2012 21:03:25 +0000 (14:03 -0700)]
Merge "Added an additional virtual method IStreamSource::flags()." into jb-mr1-dev

12 years agoMerge "Special mode for ESQueue that allows for earlier dequeuing of access units...
Andreas Huber [Fri, 31 Aug 2012 20:57:32 +0000 (13:57 -0700)]
Merge "Special mode for ESQueue that allows for earlier dequeuing of access units" into jb-mr1-dev

12 years agoImprovements to our MPEG2 Transport Stream parser
Andreas Huber [Fri, 31 Aug 2012 20:55:24 +0000 (13:55 -0700)]
Improvements to our MPEG2 Transport Stream parser

Verifies the continuity counter
Parses and associates PCR time with streams
Allows for a absolute time anchor to be signalled via discontinuity.

Change-Id: I4bc88c78382c9cc6380f28df584cc6c254e0a8f9

12 years agoSpecial mode for ESQueue that allows for earlier dequeuing of access units
Andreas Huber [Fri, 31 Aug 2012 17:36:25 +0000 (10:36 -0700)]
Special mode for ESQueue that allows for earlier dequeuing of access units

if it's know beforehand that each PES packet contains exactly one access unit.
Currently this optimization is only supported for H.264 video.

Change-Id: I0888027cc7e9850307484b11dba1191cf6bfac83

12 years agoAdded an additional virtual method IStreamSource::flags().
Andreas Huber [Fri, 31 Aug 2012 20:40:12 +0000 (13:40 -0700)]
Added an additional virtual method IStreamSource::flags().

Change-Id: I89e62d84328e12f08c8f73cbfd53cfb42569de97

12 years agoMerge "Add support for mpeg2 transport streams to the RTSP implementation." into...
Andreas Huber [Fri, 31 Aug 2012 20:07:31 +0000 (13:07 -0700)]
Merge "Add support for mpeg2 transport streams to the RTSP implementation." into jb-mr1-dev

12 years agoCamera: set vendor_ops on camera metadata.
Shuzhen Wang [Fri, 31 Aug 2012 17:24:22 +0000 (10:24 -0700)]
Camera: set vendor_ops on camera metadata.

This makes sure that vendor specific metadata can propogate through
the framework.

Change-Id: I3bd0ae4b889eb907caf7b305dbcb16abbbef0ea3

12 years agoam 371e1217: (-s ours) am 8b152566: Merge "OMXCodec: enhance error handling of OMX...
Jean-Baptiste Queru [Fri, 31 Aug 2012 18:26:10 +0000 (11:26 -0700)]
am 371e1217: (-s ours) am 8b152566: Merge "OMXCodec: enhance error handling of OMX IL client"

* commit '371e121745c2e43e3c26fd1a854eaf6d3324f057':
  OMXCodec: enhance error handling of OMX IL client

12 years agoam 8b152566: Merge "OMXCodec: enhance error handling of OMX IL client"
Jean-Baptiste Queru [Fri, 31 Aug 2012 18:19:38 +0000 (11:19 -0700)]
am 8b152566: Merge "OMXCodec: enhance error handling of OMX IL client"

* commit '8b1525663322685ff34d9c09176feebd102e1c3d':
  OMXCodec: enhance error handling of OMX IL client

12 years agoMerge "OMXCodec: enhance error handling of OMX IL client"
Jean-Baptiste Queru [Fri, 31 Aug 2012 18:01:18 +0000 (11:01 -0700)]
Merge "OMXCodec: enhance error handling of OMX IL client"

12 years agoAdd support for mpeg2 transport streams to the RTSP implementation.
Andreas Huber [Fri, 31 Aug 2012 17:27:46 +0000 (10:27 -0700)]
Add support for mpeg2 transport streams to the RTSP implementation.

Change-Id: I409d7133a53a71e62523b1acc2b03302fcf824a5

12 years agoMerge "Documentation on pipes" into jb-mr1-dev
Glenn Kasten [Fri, 31 Aug 2012 16:19:13 +0000 (09:19 -0700)]
Merge "Documentation on pipes" into jb-mr1-dev

12 years agoMerge "Update audio comments" into jb-mr1-dev
Glenn Kasten [Fri, 31 Aug 2012 16:17:54 +0000 (09:17 -0700)]
Merge "Update audio comments" into jb-mr1-dev

12 years agoMerge "Implement the source->sink(!) keep alive the wfd specs mandate..." into jb...
Andreas Huber [Fri, 31 Aug 2012 15:34:32 +0000 (08:34 -0700)]
Merge "Implement the source->sink(!) keep alive the wfd specs mandate..." into jb-mr1-dev

12 years agoOMXCodec: enhance error handling of OMX IL client
Weian Chen [Fri, 27 Jul 2012 08:55:11 +0000 (04:55 -0400)]
OMXCodec: enhance error handling of OMX IL client

Original design doesn't handle event EMPTY_BUFFER_DONE and
FILL_BUFFER_DONE which leads to buffer status mess issue,
and in turn leads to mediaserver crash.
Here we will handle those 2 events anyway to fix this.

Change-Id: Ia90b46ea7ec6026d6fda5d33fef6773435788b04
Author: Tianmi Chen<tianmi.chen@intel.com>
Signed-off-by: Tianmi Chen<tianmi.chen@intel.com>
Signed-off-by: Weian Chen <weian.chen@intel.com>
Signed-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: 49066, 27054

12 years agoMerge "Don't hard code the number of buffers for SurfaceMediaSource" into jb-mr1-dev
Jamie Gennis [Fri, 31 Aug 2012 01:25:35 +0000 (18:25 -0700)]
Merge "Don't hard code the number of buffers for SurfaceMediaSource" into jb-mr1-dev

12 years agoImplement the source->sink(!) keep alive the wfd specs mandate...
Andreas Huber [Thu, 30 Aug 2012 23:04:34 +0000 (16:04 -0700)]
Implement the source->sink(!) keep alive the wfd specs mandate...

Change-Id: I388d9911ebd243aa9c13a13ec3683e76898470a6

12 years agoUpdate audio comments
Glenn Kasten [Mon, 30 Jul 2012 17:59:30 +0000 (10:59 -0700)]
Update audio comments

Change-Id: Ie7504d0ddb252f7e4d4f99ed0b44cfc7b1049816

12 years agoDocumentation on pipes
Glenn Kasten [Wed, 29 Aug 2012 19:25:28 +0000 (12:25 -0700)]
Documentation on pipes

Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d

12 years agoMerge "Remove dead code" into jb-mr1-dev
Glenn Kasten [Thu, 30 Aug 2012 22:20:56 +0000 (15:20 -0700)]
Merge "Remove dead code" into jb-mr1-dev

12 years agoRemove dead code
Glenn Kasten [Thu, 2 Aug 2012 23:37:07 +0000 (16:37 -0700)]
Remove dead code

RecordThread::isValidSyncEvent() returns false, so most of
RecordThread::setSyncEvent() is never executed.

Change-Id: I0cf848beb46a367a45126d2df3073c5afa2ca59c

12 years agoMerge "Only run the wifi display RTSP server on demand, and only on the wifi direct...
Andreas Huber [Thu, 30 Aug 2012 22:12:29 +0000 (15:12 -0700)]
Merge "Only run the wifi display RTSP server on demand, and only on the wifi direct" into jb-mr1-dev

12 years agoMerge "Move libnbaio out of AudioFlinger" into jb-mr1-dev
Glenn Kasten [Thu, 30 Aug 2012 22:05:00 +0000 (15:05 -0700)]
Merge "Move libnbaio out of AudioFlinger" into jb-mr1-dev

12 years agoOnly run the wifi display RTSP server on demand, and only on the wifi direct
Andreas Huber [Thu, 30 Aug 2012 21:51:40 +0000 (14:51 -0700)]
Only run the wifi display RTSP server on demand, and only on the wifi direct

interface.

Change-Id: I7d3c44cb79cd40e73499f2d7ccf35c69b628e6d7

12 years agoDon't hard code the number of buffers for SurfaceMediaSource
James Dong [Thu, 23 Aug 2012 16:23:07 +0000 (09:23 -0700)]
Don't hard code the number of buffers for SurfaceMediaSource

Change-Id: I9ce17b3dc82a5d3e4a66569c76ad9745ceedacd6

12 years agoaudio effects: fix bug in sample rate control.
Eric Laurent [Thu, 30 Aug 2012 18:16:51 +0000 (11:16 -0700)]
audio effects: fix bug in sample rate control.

Fix a bug in LVM bundle wrapper preventing audio framework sample rate
from being sent to the effect bundle instance.

Change-Id: I912027f866d3beac91b977bba869ff96a92d2a62

12 years agoMerge "Camera2: Require 2 JPEG thumbnail resolutions." into jb-mr1-dev
Eino-Ville Talvala [Thu, 30 Aug 2012 18:37:19 +0000 (11:37 -0700)]
Merge "Camera2: Require 2 JPEG thumbnail resolutions." into jb-mr1-dev

12 years agoMerge changes I7bef5694,Id38e2a52 into jb-mr1-dev
Eino-Ville Talvala [Thu, 30 Aug 2012 18:37:01 +0000 (11:37 -0700)]
Merge changes I7bef5694,Id38e2a52 into jb-mr1-dev

* changes:
  Camera2: Move preview callback processing to its own thread.
  Camera2: Move still capture processing to separate thread.

12 years agoMerge "Prepare for transmitting audio through AudioSource." into jb-mr1-dev
Andreas Huber [Thu, 30 Aug 2012 18:01:13 +0000 (11:01 -0700)]
Merge "Prepare for transmitting audio through AudioSource." into jb-mr1-dev

12 years agoPrepare for transmitting audio through AudioSource.
Andreas Huber [Thu, 30 Aug 2012 17:56:14 +0000 (10:56 -0700)]
Prepare for transmitting audio through AudioSource.

AudioSource can now be configured to output buffers timestamped based
on looper time (absolute) instead of based on systemTime() relative to
start time.

Change-Id: I8eca42648eb50033ac4aafbe5daac64a98a40690

12 years agoMerge "Transmit frames at a higher frame rate for smoother updates, increase" into...
Andreas Huber [Thu, 30 Aug 2012 17:54:41 +0000 (10:54 -0700)]
Merge "Transmit frames at a higher frame rate for smoother updates, increase" into jb-mr1-dev

12 years agoMerge "Optionally log the transport stream transmitted to the sink." into jb-mr1-dev
Andreas Huber [Thu, 30 Aug 2012 17:54:27 +0000 (10:54 -0700)]
Merge "Optionally log the transport stream transmitted to the sink." into jb-mr1-dev

12 years agoMove libnbaio out of AudioFlinger
Glenn Kasten [Wed, 29 Aug 2012 18:10:32 +0000 (11:10 -0700)]
Move libnbaio out of AudioFlinger

libnbaio is now a separate shared library from AudioFlinger, rather
than a static library used only by AudioFlinger.

AudioBufferProvider interface is now also independent of AudioFlinger,
moved to include/media/

Change-Id: I9bb62ffbc38d42a38b0af76e66da5e9ab1e0e21b

12 years agoTransmit frames at a higher frame rate for smoother updates, increase
Andreas Huber [Thu, 30 Aug 2012 17:01:17 +0000 (10:01 -0700)]
Transmit frames at a higher frame rate for smoother updates, increase

video bandwidth to 5 Mbit/sec.

Change-Id: Ieb9051b0f29d5a20004d1b3befdb745bc67769c7

12 years agoCamera2: Require 2 JPEG thumbnail resolutions.
Eino-Ville Talvala [Tue, 28 Aug 2012 20:38:23 +0000 (13:38 -0700)]
Camera2: Require 2 JPEG thumbnail resolutions.

Include (0,0) as a required thumbnail resolution, to allow turning off
thumbnails.

Change-Id: I3c4efe2d6a4f576a11ce5b75a3d573812a100b80

12 years agoCamera2: Move preview callback processing to its own thread.
Eino-Ville Talvala [Tue, 28 Aug 2012 18:34:14 +0000 (11:34 -0700)]
Camera2: Move preview callback processing to its own thread.

To reduce delays for HAL callbacks, manage preview callbacks in their
own thread.

Bug: 6243944
Change-Id: I7bef56949ac889ffce4e031bf40291a771a46f3e

12 years agoCamera2: Move still capture processing to separate thread.
Eino-Ville Talvala [Tue, 28 Aug 2012 08:25:43 +0000 (01:25 -0700)]
Camera2: Move still capture processing to separate thread.

To avoid stalling HAL when it queues up new buffers for still capture,
process still captures in a separate thread. Also move Camera2Heap to
its own class so it can be used by the CaptureProcessor.

Bug: 6243944
Change-Id: Id38e2a52367c0985812fcd4fd9af3ef90beef43f

12 years agoMerge "Camera2: Factor out FrameProcessor." into jb-mr1-dev
Eino-Ville Talvala [Thu, 30 Aug 2012 16:41:02 +0000 (09:41 -0700)]
Merge "Camera2: Factor out FrameProcessor." into jb-mr1-dev

12 years agoOptionally log the transport stream transmitted to the sink.
Andreas Huber [Thu, 30 Aug 2012 16:13:54 +0000 (09:13 -0700)]
Optionally log the transport stream transmitted to the sink.

Change-Id: I5d392e7997d6beb09ba6eca70d6899747098d2b3

12 years agoMerge "Fix wifi display shutdown deadlock." into jb-mr1-dev
Andreas Huber [Wed, 29 Aug 2012 23:10:01 +0000 (16:10 -0700)]
Merge "Fix wifi display shutdown deadlock." into jb-mr1-dev

12 years agoFix wifi display shutdown deadlock.
Andreas Huber [Wed, 29 Aug 2012 23:08:08 +0000 (16:08 -0700)]
Fix wifi display shutdown deadlock.

Change-Id: I77eed39f39c0de6b427c425248ff7d21c051c074

12 years agoMerge "Initial checkin of support for acting as a wifi display source" into jb-mr1-dev
Andreas Huber [Wed, 29 Aug 2012 22:29:11 +0000 (15:29 -0700)]
Merge "Initial checkin of support for acting as a wifi display source" into jb-mr1-dev

12 years agoInitial checkin of support for acting as a wifi display source
Andreas Huber [Wed, 29 Aug 2012 18:41:50 +0000 (11:41 -0700)]
Initial checkin of support for acting as a wifi display source

Change-Id: I08f17efa0c7d007e17408feb7d4fbef0a19f531a

12 years agoMerge "Preliminary support for HDCP as a binder service for wifi display support...
Andreas Huber [Wed, 29 Aug 2012 21:21:02 +0000 (14:21 -0700)]
Merge "Preliminary support for HDCP as a binder service for wifi display support." into jb-mr1-dev

12 years agoPreliminary support for HDCP as a binder service for wifi display support.
Andreas Huber [Wed, 29 Aug 2012 18:34:22 +0000 (11:34 -0700)]
Preliminary support for HDCP as a binder service for wifi display support.

Change-Id: Ie0de1c086c629a668d1c7863992eef56fb94157c

12 years agoam 8836f8e0: am 5b15adfe: Merge "MPEG2TSWriter: Read more immediately if an empty...
Jean-Baptiste Queru [Wed, 29 Aug 2012 17:58:24 +0000 (10:58 -0700)]
am 8836f8e0: am 5b15adfe: Merge "MPEG2TSWriter: Read more immediately if an empty buffer is received"

* commit '8836f8e0bfc64dce81963db89dfc5d0f11c29483':
  MPEG2TSWriter: Read more immediately if an empty buffer is received

12 years agoam bf30787f: am 735d1b92: Merge "avcenc: Don\'t erase the InputBufferInfo before...
Jean-Baptiste Queru [Wed, 29 Aug 2012 17:58:22 +0000 (10:58 -0700)]
am bf30787f: am 735d1b92: Merge "avcenc: Don\'t erase the InputBufferInfo before reading info from it"

* commit 'bf30787f2694057e775f3b527b649a9f8074237b':
  avcenc: Don't erase the InputBufferInfo before reading info from it

12 years agoam 0924dd88: am 2aa37a7d: Merge "recordvideo: Add an option for choosing software...
Jean-Baptiste Queru [Wed, 29 Aug 2012 17:58:21 +0000 (10:58 -0700)]
am 0924dd88: am 2aa37a7d: Merge "recordvideo: Add an option for choosing software encoders"

* commit '0924dd88790ba9cda0d5a86df7d68b7446470fc7':
  recordvideo: Add an option for choosing software encoders

12 years agoam 3f9e843d: am 9ce74352: Merge "recordvideo: Sleep while waiting for the encoding...
Jean-Baptiste Queru [Wed, 29 Aug 2012 17:58:19 +0000 (10:58 -0700)]
am 3f9e843d: am 9ce74352: Merge "recordvideo: Sleep while waiting for the encoding to finish"

* commit '3f9e843d924f220f6094241bc765cd69d8fc6d7b':
  recordvideo: Sleep while waiting for the encoding to finish

12 years agoam 5b15adfe: Merge "MPEG2TSWriter: Read more immediately if an empty buffer is received"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:45:24 +0000 (09:45 -0700)]
am 5b15adfe: Merge "MPEG2TSWriter: Read more immediately if an empty buffer is received"

* commit '5b15adfe9e5ee9a92b5f0a2853246fce170d4eef':
  MPEG2TSWriter: Read more immediately if an empty buffer is received

12 years agoam 735d1b92: Merge "avcenc: Don\'t erase the InputBufferInfo before reading info...
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:45:23 +0000 (09:45 -0700)]
am 735d1b92: Merge "avcenc: Don\'t erase the InputBufferInfo before reading info from it"

* commit '735d1b926fa3e057c92d74cebacca2f243ead274':
  avcenc: Don't erase the InputBufferInfo before reading info from it

12 years agoam 2aa37a7d: Merge "recordvideo: Add an option for choosing software encoders"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:45:22 +0000 (09:45 -0700)]
am 2aa37a7d: Merge "recordvideo: Add an option for choosing software encoders"

* commit '2aa37a7d15f5e2246b8996d2600269684904c581':
  recordvideo: Add an option for choosing software encoders

12 years agoam 9ce74352: Merge "recordvideo: Sleep while waiting for the encoding to finish"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:45:22 +0000 (09:45 -0700)]
am 9ce74352: Merge "recordvideo: Sleep while waiting for the encoding to finish"

* commit '9ce74352d23d833f9627b7be58be964206e6ff6d':
  recordvideo: Sleep while waiting for the encoding to finish

12 years agoMerge "MPEG2TSWriter: Read more immediately if an empty buffer is received"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:35:10 +0000 (09:35 -0700)]
Merge "MPEG2TSWriter: Read more immediately if an empty buffer is received"

12 years agoMerge "avcenc: Don't erase the InputBufferInfo before reading info from it"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:07:41 +0000 (09:07 -0700)]
Merge "avcenc: Don't erase the InputBufferInfo before reading info from it"

12 years agoMerge "recordvideo: Add an option for choosing software encoders"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:07:26 +0000 (09:07 -0700)]
Merge "recordvideo: Add an option for choosing software encoders"

12 years agoMerge "recordvideo: Sleep while waiting for the encoding to finish"
Jean-Baptiste Queru [Wed, 29 Aug 2012 16:07:19 +0000 (09:07 -0700)]
Merge "recordvideo: Sleep while waiting for the encoding to finish"

12 years agoavcenc: Don't erase the InputBufferInfo before reading info from it
Martin Storsjo [Wed, 29 Aug 2012 12:22:18 +0000 (15:22 +0300)]
avcenc: Don't erase the InputBufferInfo before reading info from it

Previously, the timestamp and flags were read from the InputBufferInfo
struct after it had been erased.

This fixes cases where the output timestamp from the avc encoder
could spuriously be garbage every now and then.

Change-Id: I21acf23cfac93bcc201a603feace6499ec6d8e76