OSDN Git Service

android-x86/frameworks-av.git
10 years agoStagefrightRecorder: add VIDEO_ENCODER_VP8 case in setupVideoEncoder
Robert Shih [Wed, 20 Aug 2014 17:51:07 +0000 (10:51 -0700)]
StagefrightRecorder: add VIDEO_ENCODER_VP8 case in setupVideoEncoder

Bug: 16329805
Change-Id: Ibc80cdeb1958f739dd67b65e57f6b7cc551a9db3

10 years agoMerge "stagefright: add codec capability info for google audio codecs" into lmp-dev
Lajos Molnar [Mon, 18 Aug 2014 17:33:37 +0000 (17:33 +0000)]
Merge "stagefright: add codec capability info for google audio codecs" into lmp-dev

10 years agostagefright: Fix race condition between MediaCodec and SoftwareRenderer
Ronghua Wu [Fri, 8 Aug 2014 22:24:55 +0000 (15:24 -0700)]
stagefright: Fix race condition between MediaCodec and SoftwareRenderer

* Set the buffer's format info when it's returned from OMX component.
* Move frame format meta from SoftwareRenderer's ctor to the render call.
  I.e. each frame sent to the renderer carries the format info.
* Reset renderer with the new format instead of re-creating
  SoftwareRenderer when incoming frame's format is changed.

Bug: 13842676
Change-Id: Ibab46f109200bcbdeab13a4cc1bcd0870f2a99fb

10 years agoMerge "use dedicated looper for GenericSource" into lmp-dev
Chong Zhang [Fri, 15 Aug 2014 19:13:23 +0000 (19:13 +0000)]
Merge "use dedicated looper for GenericSource" into lmp-dev

10 years agoMerge "stagefright: allow specifying flac copmression level by 'complexity'" into...
Lajos Molnar [Fri, 15 Aug 2014 14:55:50 +0000 (14:55 +0000)]
Merge "stagefright: allow specifying flac copmression level by 'complexity'" into lmp-dev

10 years agoMerge "stagefright/media: add support for codec features with text value" into lmp-dev
Lajos Molnar [Fri, 15 Aug 2014 14:48:45 +0000 (14:48 +0000)]
Merge "stagefright/media: add support for codec features with text value" into lmp-dev

10 years agoMerge "nuplayer: create AudioSink early to verify offload is possible" into lmp-dev
Andy Hung [Fri, 15 Aug 2014 05:34:52 +0000 (05:34 +0000)]
Merge "nuplayer: create AudioSink early to verify offload is possible" into lmp-dev

10 years agostagefright: add codec capability info for google audio codecs
Lajos Molnar [Fri, 15 Aug 2014 00:42:47 +0000 (17:42 -0700)]
stagefright: add codec capability info for google audio codecs

Bug: 11990470
Change-Id: I6a7d6758727cc205c636dfb19eb7fe99d67fb084

10 years agostagefright: allow specifying flac copmression level by 'complexity'
Lajos Molnar [Fri, 15 Aug 2014 02:55:25 +0000 (19:55 -0700)]
stagefright: allow specifying flac copmression level by 'complexity'

Bug: 11990470
Change-Id: I428961cc654b768773814078f753e2e67243f186

10 years agostagefright/media: add support for codec features with text value
Lajos Molnar [Fri, 15 Aug 2014 02:54:08 +0000 (19:54 -0700)]
stagefright/media: add support for codec features with text value

Bug: 11990470
Change-Id: I7600d999c5f4b6821d825d25fa7e8a2bb5a80c46

10 years agonuplayer: create AudioSink early to verify offload is possible
Andy Hung [Thu, 14 Aug 2014 22:56:34 +0000 (15:56 -0700)]
nuplayer: create AudioSink early to verify offload is possible

Offload audio playback is not guaranteed even if AudioSystem says it
is allowed.  Create AudioSink early to verify offload is really possible.
Move AudioSink open / close into functions.

Bug: 16732303
Bug: 16978805
Change-Id: Ie1c73a96656863c1281bed3280a84b86d3cbadf5

10 years agoMerge "make NuPlayer's http connection mechanism behave more like that of AwesomePlay...
Chong Zhang [Thu, 14 Aug 2014 21:17:50 +0000 (21:17 +0000)]
Merge "make NuPlayer's http connection mechanism behave more like that of AwesomePlayer's" into lmp-dev

10 years agouse dedicated looper for GenericSource
Chong Zhang [Wed, 13 Aug 2014 04:25:48 +0000 (21:25 -0700)]
use dedicated looper for GenericSource

- handle setVideoSurface in deferred action, and return
  to client immediately

- handle GenericSource's prepareAsync on its own looper,
  instead of sharing looper with NuPlayer

- let HTTPLiveSource share looper with LiveSession, instead
  of NuPlayer

- remove reflector in RTSPSource

Bug: 16892748
Change-Id: I1aed557320052012065f5a90adbcb03c238da988

10 years agomake NuPlayer's http connection mechanism behave
Chong Zhang [Wed, 13 Aug 2014 22:26:49 +0000 (15:26 -0700)]
make NuPlayer's http connection mechanism behave
more like that of AwesomePlayer's

- remove cache specific headers before connect

- read mime type before creating cached source on top
  of the http source

Bug: 16892521

Change-Id: Ie13a62dd8dd959be6095a42e2b41e3bc817efeb5

10 years agoMerge "cache up to 200K bytes (instead of 10 buffers) in DecoderPassThrough" into...
Chong Zhang [Wed, 13 Aug 2014 21:02:11 +0000 (21:02 +0000)]
Merge "cache up to 200K bytes (instead of 10 buffers) in DecoderPassThrough" into lmp-dev

10 years agocache up to 200K bytes (instead of 10 buffers) in DecoderPassThrough
Chong Zhang [Wed, 13 Aug 2014 20:48:10 +0000 (13:48 -0700)]
cache up to 200K bytes (instead of 10 buffers) in DecoderPassThrough

Bug: 16892521
Change-Id: I0e2da4134a37e632f9f2c29d1d27d8fded7a7863

10 years agoMerge "audiopolicy: add dump for audio patches" into lmp-dev
Jean-Michel Trivi [Wed, 13 Aug 2014 16:04:00 +0000 (16:04 +0000)]
Merge "audiopolicy: add dump for audio patches" into lmp-dev

10 years agoMerge "stagefright: allow scenarios when dequeueBufferFromNativeWindow fails" into...
Lajos Molnar [Wed, 13 Aug 2014 00:30:20 +0000 (00:30 +0000)]
Merge "stagefright: allow scenarios when dequeueBufferFromNativeWindow fails" into lmp-dev

10 years agoFix overruns when capturing with resampling
Glenn Kasten [Mon, 21 Jul 2014 18:22:03 +0000 (11:22 -0700)]
Fix overruns when capturing with resampling

Bug: 16658148
Change-Id: I2dd04b23a143e0948b299d408790e7a46b5a53b0

10 years agostagefright: allow scenarios when dequeueBufferFromNativeWindow fails
Lajos Molnar [Tue, 12 Aug 2014 17:28:12 +0000 (10:28 -0700)]
stagefright: allow scenarios when dequeueBufferFromNativeWindow fails

We can run out of native buffers when the bufferqueue is abandoned.

Bug: 16839124
Change-Id: If605f692b87082f1630e1da0fd44da0cb76133f5

10 years agoMerge "Camera API1: Ignore the video size change during recording" into lmp-dev
Zhijun He [Tue, 12 Aug 2014 17:37:53 +0000 (17:37 +0000)]
Merge "Camera API1: Ignore the video size change during recording" into lmp-dev

10 years agoMerge "MediaCodecList: handle errors gracefully" into lmp-dev
Lajos Molnar [Tue, 12 Aug 2014 17:05:56 +0000 (17:05 +0000)]
Merge "MediaCodecList: handle errors gracefully" into lmp-dev

10 years agoMediaCodecList: don't return references
Lajos Molnar [Tue, 12 Aug 2014 15:55:25 +0000 (08:55 -0700)]
MediaCodecList: don't return references

Bug: 16905025
Change-Id: I5b42b294f0cc785b8e4dda0e82c8f8377a46f487

10 years agoMediaCodecList: handle errors gracefully
Lajos Molnar [Mon, 11 Aug 2014 23:46:15 +0000 (16:46 -0700)]
MediaCodecList: handle errors gracefully

Handle missing OMX codecs, and codecs that do not load.
Fix NULL dereference when initializing codec with no type.

Bug: 16907578
Bug: 16905025
Change-Id: I5d103db36ebb029d1aab03222bf6e9324beb1566

10 years agoCamera API1: Ignore the video size change during recording
Zhijun He [Mon, 11 Aug 2014 21:47:47 +0000 (14:47 -0700)]
Camera API1: Ignore the video size change during recording

Ignore the video size parameter change when recording is active.

Bug: 16524513
Change-Id: I55b7c961c06199764486f48bc2187838c2279606

10 years agoMerge "Fix to support mono in effect buffer allocation." into lmp-dev
Ricardo Garcia [Tue, 12 Aug 2014 16:04:45 +0000 (16:04 +0000)]
Merge "Fix to support mono in effect buffer allocation." into lmp-dev

10 years agoFix to support mono in effect buffer allocation.
Ricardo Garcia [Mon, 11 Aug 2014 19:04:54 +0000 (12:04 -0700)]
Fix to support mono in effect buffer allocation.

Since effects are now enabled for recording, mono cases are possible
and needed to be correctly allocated.

Bug: 16917961
Change-Id: I760fc421f9f90fabb3f0deadd5f9dc61cd284371

10 years agoMerge "propogate heartbeat error code to app" into lmp-dev
Chong Zhang [Tue, 12 Aug 2014 00:22:47 +0000 (00:22 +0000)]
Merge "propogate heartbeat error code to app" into lmp-dev

10 years agopropogate heartbeat error code to app
Chong Zhang [Mon, 11 Aug 2014 22:14:10 +0000 (15:14 -0700)]
propogate heartbeat error code to app

Bug: 16885604
Change-Id: Ib6c60f0ef8cf72aa1aac67a75121142bff304018

10 years agoMerge "Extend downsampling ratios greater than 2:1" into lmp-dev
Andy Hung [Mon, 11 Aug 2014 20:26:28 +0000 (20:26 +0000)]
Merge "Extend downsampling ratios greater than 2:1" into lmp-dev

10 years agoMerge "camera: Allow Camera#getParameters to be called by mediaserver anytime" into...
Igor Murashkin [Mon, 11 Aug 2014 19:47:12 +0000 (19:47 +0000)]
Merge "camera: Allow Camera#getParameters to be called by mediaserver anytime" into lmp-dev

10 years agoExtend downsampling ratios greater than 2:1
Andy Hung [Thu, 7 Aug 2014 18:04:34 +0000 (11:04 -0700)]
Extend downsampling ratios greater than 2:1

Also improve robustness to choice of sampling rate or buffer size
such that increasing either by 10x does not cause overflow.

Bug: 12979141
Bug: 15933066
Change-Id: If7989bd745d1bee3bdf811b8b7c978543ccafb65

10 years agoMerge "Camera2/3: Cleanup the jpeg buffer size calcaulation logic" into lmp-dev
Zhijun He [Mon, 11 Aug 2014 17:33:48 +0000 (17:33 +0000)]
Merge "Camera2/3: Cleanup the jpeg buffer size calcaulation logic" into lmp-dev

10 years agoMerge "Update audio ports with profile capabilities" into lmp-dev
Jean-Michel Trivi [Mon, 11 Aug 2014 17:22:38 +0000 (17:22 +0000)]
Merge "Update audio ports with profile capabilities" into lmp-dev

10 years agoCamera2/3: Cleanup the jpeg buffer size calcaulation logic
Zhijun He [Fri, 8 Aug 2014 19:00:47 +0000 (12:00 -0700)]
Camera2/3: Cleanup the jpeg buffer size calcaulation logic

- Only one place calculating the jpeg size-the device layer, Camera2Device and
Camera3Device.
- Remove size argument for CameraDeviceBase and cleanup related code.

Bug: 14327010
Change-Id: I45d2ab4859ee0cc9273e579254f0569108c748f1

10 years agoUpdate audio ports with profile capabilities
Jean-Michel Trivi [Sun, 10 Aug 2014 21:30:48 +0000 (14:30 -0700)]
Update audio ports with profile capabilities

When opening an output, import the profile capabilities associated
  with the device into the AudioPort.

Bug 10549017

Change-Id: If102f5623457542d2c1407ada303c71e43d19a08

10 years agoaudiopolicy: add dump for audio patches
Eric Laurent [Sun, 10 Aug 2014 21:07:09 +0000 (14:07 -0700)]
audiopolicy: add dump for audio patches

Bug: 10549017.
Change-Id: I896c8e16c8cf7490bab75295903620a76236f571

10 years agoMerge changes Idc9808f7,If7bc8e5b into lmp-dev
Dan Albert [Sat, 9 Aug 2014 06:46:47 +0000 (06:46 +0000)]
Merge changes Idc9808f7,If7bc8e5b into lmp-dev

* changes:
  Fix the build after -Bsymbolic fix.
  Fix PIC relocations for non-Bsymbolic builds

10 years agoMerge "stagefright: set crop rect in SoftwareRenderer" into lmp-dev
Lajos Molnar [Sat, 9 Aug 2014 02:01:37 +0000 (02:01 +0000)]
Merge "stagefright: set crop rect in SoftwareRenderer" into lmp-dev

10 years agostagefright: set crop rect in SoftwareRenderer
Lajos Molnar [Fri, 8 Aug 2014 17:05:03 +0000 (10:05 -0700)]
stagefright: set crop rect in SoftwareRenderer

Bug: 9563986
Change-Id: Id66a21ef8cdd8350e3eb95d6359fe9c1b94c4f98

10 years agoMerge "NuPlayer: getSelectedTrack" into lmp-dev
Robert Shih [Sat, 9 Aug 2014 01:47:09 +0000 (01:47 +0000)]
Merge "NuPlayer: getSelectedTrack" into lmp-dev

10 years agoNuPlayer: getSelectedTrack
Robert Shih [Thu, 10 Jul 2014 01:53:31 +0000 (18:53 -0700)]
NuPlayer: getSelectedTrack

Change-Id: If5251f89b881e7f268e11a06cd3685d794c958b6

10 years agoMerge "Added Tunneled video playback support to ACodec" into lmp-dev
Rachad [Sat, 9 Aug 2014 04:56:42 +0000 (04:56 +0000)]
Merge "Added Tunneled video playback support to ACodec" into lmp-dev

10 years agoAdded Tunneled video playback support to ACodec
Rachad [Tue, 29 Jul 2014 23:47:56 +0000 (16:47 -0700)]
Added Tunneled video playback support to ACodec

Bug:16132368
Change-Id: I88d2d66b8548fc203f4a2c4797196af15e56ff38

10 years agoMerge "audio policy: enable more than one sink per audio patch." into lmp-dev
Eric Laurent [Sat, 9 Aug 2014 00:50:59 +0000 (00:50 +0000)]
Merge "audio policy: enable more than one sink per audio patch." into lmp-dev

10 years agoMerge "Fix WAVExtractor to output full audio frames only" into lmp-dev
Lajos Molnar [Sat, 9 Aug 2014 01:53:46 +0000 (01:53 +0000)]
Merge "Fix WAVExtractor to output full audio frames only" into lmp-dev

10 years agoaudio policy: enable more than one sink per audio patch.
Eric Laurent [Fri, 8 Aug 2014 22:13:39 +0000 (15:13 -0700)]
audio policy: enable more than one sink per audio patch.

Allow creation of audio patches with more than one sink.
More than one sink is enabled when:
- Connecting an input device to output devices on the same audio HW module.
- Connecting an output mix to output devices on the same audio HA module.

All other patches are limited to one sink.

Bug: 16879363.
Change-Id: I95be6948ef29df64e51e5b8ace38c2db7f3e89f2

10 years agoFix WAVExtractor to output full audio frames only
Andy Hung [Fri, 8 Aug 2014 22:52:38 +0000 (15:52 -0700)]
Fix WAVExtractor to output full audio frames only

Fixes NuPlayer crash from MediaBuffers ending in partial audio frames.

Bug: 16881623
Change-Id: Ia80a9910f99245e645860c00ae85118cc85bef57

10 years agosome clean up of video size change notification
Chong Zhang [Fri, 8 Aug 2014 22:22:35 +0000 (15:22 -0700)]
some clean up of video size change notification

need to consider rotation when notifying video size change after
initial prepare, in addition to after an output format change.

Bug: 16870964
Change-Id: Icd1c9e901ac932e720ce95b8a983c0edcf251c35

10 years agoMerge "some clean up of video size change notification" into lmp-dev
Chong Zhang [Fri, 8 Aug 2014 23:01:06 +0000 (23:01 +0000)]
Merge "some clean up of video size change notification" into lmp-dev

10 years agoMerge "AAC decoder: add support for controlling presentation parameters" into lmp-dev
Jean-Michel Trivi [Fri, 8 Aug 2014 21:05:14 +0000 (21:05 +0000)]
Merge "AAC decoder: add support for controlling presentation parameters" into lmp-dev

10 years agoAAC decoder: add support for controlling presentation parameters
Jean-Michel Trivi [Sat, 2 Aug 2014 05:17:48 +0000 (22:17 -0700)]
AAC decoder: add support for controlling presentation parameters

Control the dowmixing of the AAC decoder
Control the DRC processing of the AAC decoder

Bug 16740915

Change-Id: I9b06ea8785f56213ea120ed85eeb360c88223297

10 years agoMerge "libstagefright: foundation: Add syntactic sugar to the cast." into lmp-dev
Sasha Levitskiy [Fri, 8 Aug 2014 20:21:59 +0000 (20:21 +0000)]
Merge "libstagefright: foundation: Add syntactic sugar to the cast." into lmp-dev

10 years agolibstagefright: foundation: Add syntactic sugar to the cast.
Sasha Levitskiy [Fri, 8 Aug 2014 16:47:37 +0000 (09:47 -0700)]
libstagefright: foundation: Add syntactic sugar to the cast.

Change-Id: I0b6b3ae440addd4891c26b0639bd6e647a7b031e

10 years agoFix the build after -Bsymbolic fix.
Dan Albert [Fri, 8 Aug 2014 05:21:08 +0000 (22:21 -0700)]
Fix the build after -Bsymbolic fix.

Bug: 16853291
Change-Id: Idc9808f76e8be7afb70513c4036b57c91690728e
(cherry picked from commit 8173554d5b5e25215e9c591a0dbb92b8c0ff082e)

10 years agoFix PIC relocations for non-Bsymbolic builds
Ard Biesheuvel [Fri, 8 Aug 2014 09:43:41 +0000 (11:43 +0200)]
Fix PIC relocations for non-Bsymbolic builds

The ARM assembly contains a couple of hand-coded PC relative references
to data defined in other object files. Make sure the externs are tagged
as hidden so the linker knows that it can resolve the reference locally
at build time.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Bug: 16853291
Change-Id: If7bc8e5bb6a2c63b9df33666d56e6c42f398fd47
(cherry picked from commit 97e3e847179c17eb9059fb322413b6facd3e5a03)

10 years agodelay data source creation for GenericSource prepare time
Chong Zhang [Thu, 7 Aug 2014 22:35:07 +0000 (15:35 -0700)]
delay data source creation for GenericSource prepare time

Bug: 16708180

Change-Id: I9d578ef5e2edaed50279d28d3831c68556468f39

10 years agolibstagefright_foundation: fix build
Colin Cross [Fri, 8 Aug 2014 04:38:10 +0000 (21:38 -0700)]
libstagefright_foundation: fix build

Change-Id: If61766efa8834df175bd5758c760344364458d4a

10 years agocamera: Allow Camera#getParameters to be called by mediaserver anytime
Igor Murashkin [Fri, 8 Aug 2014 00:07:28 +0000 (17:07 -0700)]
camera: Allow Camera#getParameters to be called by mediaserver anytime

This fixes a crash if the camera was locked by the media recorder and
another process tried to get the legacy parameters (for the camera
characteristics).

Bug: 16695955
Change-Id: I945a16a686a6987150c8754b5296353e76e5afa0

10 years agoRevert "NuPlayer: don't feed decoder input data during flushing."
Wei Jia [Thu, 7 Aug 2014 06:11:39 +0000 (06:11 +0000)]
Revert "NuPlayer: don't feed decoder input data during flushing."

The previous patch results in MediaBuffer leakage.

This reverts commit 69a85b792c31033a99c8858e3b1a3c2ea68b6278.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Bug: 16849601
Change-Id: Ib1892b7603a97e12b7ee228fd5a4009700cdc988

10 years agoMerge "Fix effect and mono sink handling." into lmp-dev
Andy Hung [Fri, 8 Aug 2014 17:28:48 +0000 (17:28 +0000)]
Merge "Fix effect and mono sink handling." into lmp-dev

10 years agoFix effect and mono sink handling.
Andy Hung [Fri, 8 Aug 2014 00:49:53 +0000 (17:49 -0700)]
Fix effect and mono sink handling.

Do not permit mixing to mono sink in AudioFlinger.
Allow effects on mono sink if not Mixer thread (e.g. Record).

Bug: 16863095
Change-Id: I8b232fc1fb3f07bf017020c5d4f9ace644dec6d8

10 years agoMerge "Clarify and implement MediaCodec status codes" into lmp-dev
Andy Hung [Fri, 8 Aug 2014 16:12:22 +0000 (16:12 +0000)]
Merge "Clarify and implement MediaCodec status codes" into lmp-dev

10 years agoClarify and implement MediaCodec status codes
Andy Hung [Wed, 30 Jul 2014 22:46:04 +0000 (15:46 -0700)]
Clarify and implement MediaCodec status codes

Clarify MediaCodec status codes in MediaError.h
When appropriate, return OMX error codes for status.
Optionally return a status code from CreateByType() and
CreateByComponentName().

Bug: 12034929
Bug: 13976475
Change-Id: I7463dd08d101074f730481b26127a69c9186c97e

10 years agoMerge "delay data source creation for GenericSource prepare time" into lmp-dev
Chong Zhang [Fri, 8 Aug 2014 01:03:55 +0000 (01:03 +0000)]
Merge "delay data source creation for GenericSource prepare time" into lmp-dev

10 years agostagefright: support flexible YUV format
Lajos Molnar [Thu, 7 Aug 2014 21:16:23 +0000 (14:16 -0700)]
stagefright: support flexible YUV format

- Report flexible format for standard OMX formats that are flexible.
- Accept flexible format when specifying video port formats.

Bug: 10706245
Change-Id: I9e82bc895bb0d5d606eb05fdf83bec766eaa2046

10 years agomedia/playerservice: add getCodecList() to MediaPlayerService
Lajos Molnar [Thu, 7 Aug 2014 22:18:35 +0000 (15:18 -0700)]
media/playerservice: add getCodecList() to MediaPlayerService

Bug: 11990470
Change-Id: I8fa45946fd9b76f9b975fc59062819c57e6881ef

10 years agostagefright: rework media codec list and infos
Lajos Molnar [Wed, 6 Aug 2014 23:55:46 +0000 (16:55 -0700)]
stagefright: rework media codec list and infos

This is in preparation of serving the codec list and codec infos
from the mediaserver

Bug: 11990470
Change-Id: Ib8e2708679c9ce461a4ba179974a740cdcdf2731

10 years agodelay data source creation for GenericSource prepare time
Chong Zhang [Thu, 7 Aug 2014 22:35:07 +0000 (15:35 -0700)]
delay data source creation for GenericSource prepare time

Bug: 16708180

Change-Id: I9d578ef5e2edaed50279d28d3831c68556468f39

10 years agostagefright: add AString parceling, and equal/compareIgnoreCase
Lajos Molnar [Wed, 6 Aug 2014 18:32:00 +0000 (11:32 -0700)]
stagefright: add AString parceling, and equal/compareIgnoreCase

Bug: 11990470
Change-Id: If43ada5d2e768931f4409e499eaa268edade0500

10 years agoMerge "Camera: Need consider AF state for ZSL buffer selection" into lmp-dev
Zhijun He [Thu, 7 Aug 2014 21:15:38 +0000 (21:15 +0000)]
Merge "Camera: Need consider AF state for ZSL buffer selection" into lmp-dev

10 years agomerge in lmp-release history after reset to 0893eaf7d21e3a50b81324673eaa91a6b77a39c2
The Android Automerger [Thu, 7 Aug 2014 13:09:38 +0000 (06:09 -0700)]
merge in lmp-release history after reset to 0893eaf7d21e3a50b81324673eaa91a6b77a39c2

10 years agoCamera: Need consider AF state for ZSL buffer selection
Zhijun He [Thu, 7 Aug 2014 04:41:20 +0000 (21:41 -0700)]
Camera: Need consider AF state for ZSL buffer selection

Bug: 16569983
Change-Id: I65e604e382ac0b98777155ad480ec3f6071e1a76

10 years agoMerge "Revert "NuPlayer: don't feed decoder input data during flushing." " into lmp-dev
Wei Jia [Thu, 7 Aug 2014 16:52:10 +0000 (16:52 +0000)]
Merge "Revert "NuPlayer: don't feed decoder input data during flushing." " into lmp-dev

10 years agoRevert "NuPlayer: don't feed decoder input data during flushing."
Wei Jia [Thu, 7 Aug 2014 06:11:39 +0000 (06:11 +0000)]
Revert "NuPlayer: don't feed decoder input data during flushing."

The previous patch results in MediaBuffer leakage.

This reverts commit 69a85b792c31033a99c8858e3b1a3c2ea68b6278.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Bug: 16849601
Change-Id: Ib1892b7603a97e12b7ee228fd5a4009700cdc988

10 years agoMerge "audio policy: add support for USB devices for voice call" into lmp-dev
Eric Laurent [Thu, 7 Aug 2014 15:54:49 +0000 (15:54 +0000)]
Merge "audio policy: add support for USB devices for voice call" into lmp-dev

10 years agostagefright: move ARRAY_SIZE to foundation
Lajos Molnar [Wed, 6 Aug 2014 18:30:16 +0000 (11:30 -0700)]
stagefright: move ARRAY_SIZE to foundation

Bug: 11990470
Change-Id: Ifae790b774a0fb210acbe33a1310d3d6ba46e7fa

10 years agosome fixes for crash when extractor creation fails
Chong Zhang [Wed, 6 Aug 2014 03:54:44 +0000 (20:54 -0700)]
some fixes for crash when extractor creation fails

- prefetch data for sniffing

- notify error instead of crashing if extractor is NULL

Bug: 16818302

Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17

10 years agosome fixes for crash when extractor creation fails
Chong Zhang [Wed, 6 Aug 2014 03:54:44 +0000 (20:54 -0700)]
some fixes for crash when extractor creation fails

- prefetch data for sniffing

- notify error instead of crashing if extractor is NULL

Bug: 16818302

Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17

10 years agoaudio policy: add support for USB devices for voice call
Eric Laurent [Sun, 20 Jul 2014 22:47:07 +0000 (15:47 -0700)]
audio policy: add support for USB devices for voice call

Add possibility to use sink and source devices not on
the primary HW module for voice calls (e.g. USB headsets).

Bug: 15520724.

Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30

10 years agoMerge "some fixes for crash when extractor creation fails" into lmp-dev
Chong Zhang [Wed, 6 Aug 2014 22:29:12 +0000 (22:29 +0000)]
Merge "some fixes for crash when extractor creation fails" into lmp-dev

10 years agoMerge "AudioSystem: add API to query audio HW sync source" into lmp-dev
Eric Laurent [Wed, 6 Aug 2014 19:40:04 +0000 (19:40 +0000)]
Merge "AudioSystem: add API to query audio HW sync source" into lmp-dev

10 years agoMerge "MediaServer crashing and audio effects not applied to TTS." into lmp-dev
Ricardo Garcia [Wed, 6 Aug 2014 19:11:33 +0000 (19:11 +0000)]
Merge "MediaServer crashing and audio effects not applied to TTS." into lmp-dev

10 years agoMediaServer crashing and audio effects not applied to TTS.
Ricardo Garcia [Wed, 6 Aug 2014 18:43:46 +0000 (11:43 -0700)]
MediaServer crashing and audio effects not applied to TTS.

A memclear in the EffectChain was out of bounds.

Bug 15432115
Bug 16845751

Change-Id: Ib0adc7fa730d630bb71fb87d51163a26149b16e2

10 years agoMerge "httplive: timestamp reporting, track selection" into lmp-dev
Robert Shih [Wed, 6 Aug 2014 23:19:17 +0000 (23:19 +0000)]
Merge "httplive: timestamp reporting, track selection" into lmp-dev

10 years agomerge in lmp-release history after reset to 92ce4715315bddd158c7d4028556632f0547e3b9
The Android Automerger [Wed, 6 Aug 2014 13:09:11 +0000 (06:09 -0700)]
merge in lmp-release history after reset to 92ce4715315bddd158c7d4028556632f0547e3b9

10 years agohttplive: timestamp reporting, track selection
Robert Shih [Wed, 30 Jul 2014 01:34:36 +0000 (18:34 -0700)]
httplive: timestamp reporting, track selection

Bug: 15153976
Bug: 15763638
Bug: 16351654
Change-Id: I4462276d4b7342647286a0ca4be11692ce52ff6d

10 years agoAudioSystem: add API to query audio HW sync source
Eric Laurent [Fri, 1 Aug 2014 21:48:35 +0000 (14:48 -0700)]
AudioSystem: add API to query audio HW sync source

Add a method to query from the audio HAL the HW sync
source used for a given audio session.
Modify audio policy to select a direct output with HW sync
when requested.

Bug: 16132368.

Change-Id: I03038f9188f2d389f8a5fd76a671854013a4513e

10 years agoNuPlayer: don't feed decoder input data during flushing.
Wei Jia [Tue, 5 Aug 2014 01:32:43 +0000 (18:32 -0700)]
NuPlayer: don't feed decoder input data during flushing.

Bug: 14955925
Bug: 16303659
Bug: 16467066
Change-Id: I7c258b986ae711357bd7e636b79853f8f3959d32

10 years agoAAC encoder: add support for SBR mode selection
Jean-Michel Trivi [Fri, 1 Aug 2014 22:14:14 +0000 (15:14 -0700)]
AAC encoder: add support for SBR mode selection

Change-Id: Ibc07bff7710398929c135f38324dd29857fa0ea6

10 years agomerge in lmp-release history after reset to d0fded31e473e909c018f534d3019fb5168bdcd6
The Android Automerger [Tue, 5 Aug 2014 13:08:56 +0000 (06:08 -0700)]
merge in lmp-release history after reset to d0fded31e473e909c018f534d3019fb5168bdcd6

10 years agoMerge "audio: fix crashes upon USB device connection" into lmp-dev
Eric Laurent [Wed, 6 Aug 2014 00:37:58 +0000 (00:37 +0000)]
Merge "audio: fix crashes upon USB device connection" into lmp-dev

10 years agoaudio: fix crashes upon USB device connection
Eric Laurent [Tue, 5 Aug 2014 03:36:31 +0000 (20:36 -0700)]
audio: fix crashes upon USB device connection

- Audio policy:
Replace unknown device assertion by debug log in setDeviceConnectionState().
It is possible that some kernels indicate connection of a legacy device type
when a USB audio device is connected.
We should just ignore this device.

- Audio flinger:
Make sure FastMixer thread is idle before exiting the normal mixer thread and
closing the output stream.

Change-Id: Ia10a20176a60a8aa56765538093a555fc998508a

10 years agoMerge "cameraservice: disallow zsl/recording coexistentce" into lmp-dev
Yin-Chia Yeh [Wed, 6 Aug 2014 00:14:27 +0000 (00:14 +0000)]
Merge "cameraservice: disallow zsl/recording coexistentce" into lmp-dev

10 years agopolicy manager: recognize AUDIO_DEVICE_IN_AMBIENT from policy.conf
Eric Laurent [Wed, 30 Jul 2014 15:01:42 +0000 (10:01 -0500)]
policy manager: recognize AUDIO_DEVICE_IN_AMBIENT from policy.conf

Change-Id: If46b8d13f216bad4aa62598531d406d3303134f5

10 years agocameraservice: disallow zsl/recording coexistentce
Yin-Chia Yeh [Tue, 5 Aug 2014 20:35:58 +0000 (13:35 -0700)]
cameraservice: disallow zsl/recording coexistentce

Make sure ZSL and recording stream does not exist at the same
time.

Change-Id: I19e28dedd9dd5cc5118449860b612a5c950fdaec

10 years agoMerge "NuPlayer: don't feed decoder input data during flushing." into lmp-dev
Wei Jia [Tue, 5 Aug 2014 21:53:08 +0000 (21:53 +0000)]
Merge "NuPlayer: don't feed decoder input data during flushing." into lmp-dev

10 years agoMerge "set secure flag for secure file playback" into lmp-dev
Chong Zhang [Tue, 5 Aug 2014 21:21:49 +0000 (21:21 +0000)]
Merge "set secure flag for secure file playback" into lmp-dev

10 years agoaudio policy: support line output device
Jon Eklund [Mon, 28 Jul 2014 21:06:06 +0000 (16:06 -0500)]
audio policy: support line output device

Change-Id: Iddf1b6486430270d871a45c75615e54339a818e9

10 years agoset secure flag for secure file playback
Chong Zhang [Tue, 5 Aug 2014 18:58:21 +0000 (11:58 -0700)]
set secure flag for secure file playback

Bug: 16786456
Change-Id: I06f18b0e9c3f65e3e127369baa1f9ea8c9307762