OSDN Git Service

android-x86/frameworks-av.git
11 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

11 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

11 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

11 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

11 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

11 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

11 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.

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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"

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

Change-Id: Ie7504d0ddb252f7e4d4f99ed0b44cfc7b1049816

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

Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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.

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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"

11 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"

11 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"

11 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"

11 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

11 years agoMPEG2TSWriter: Read more immediately if an empty buffer is received
Martin Storsjo [Wed, 29 Aug 2012 11:49:28 +0000 (14:49 +0300)]
MPEG2TSWriter: Read more immediately if an empty buffer is received

If writing encoded data from an OMXCodec, the last buffer can be
an empty buffer (with the EOS flag set, which isn't propagated to
MediaBuffer). If we don't retry reading, we won't ever get the
EOS error and thus won't properly signal that the source is done.

Change-Id: Ibe01dbcd0637fbf0c2529a277e9f208c48e0e8ab

11 years agorecordvideo: Sleep while waiting for the encoding to finish
Martin Storsjo [Wed, 29 Aug 2012 10:41:01 +0000 (13:41 +0300)]
recordvideo: Sleep while waiting for the encoding to finish

This avoids busy looping while e.g. waiting for the software encoder
to finish.

This is similar to what the 'record' and 'stagefright' test apps
do.

Change-Id: Idce55b15396ce78b621a521229603bec1e799f33

11 years agorecordvideo: Add an option for choosing software encoders
Martin Storsjo [Wed, 29 Aug 2012 10:28:33 +0000 (13:28 +0300)]
recordvideo: Add an option for choosing software encoders

This is similar to the same option in the 'stagefright' test
application.

Change-Id: I2a2e5201bd93460df0911ef12865c9030c0183e5

11 years agoCamera2: Factor out FrameProcessor.
Eino-Ville Talvala [Tue, 28 Aug 2012 06:41:56 +0000 (23:41 -0700)]
Camera2: Factor out FrameProcessor.

Move FrameProcessor to its own file, add necessary interfaces to
Camera2Client.

Bug: 6243944
Change-Id: I8d1b8280a65d2822461ebe6b6c9de17992b34276

11 years agoMerge "Camera2: Factor out Camera2Client::Parameters" into jb-mr1-dev
Eino-Ville Talvala [Tue, 28 Aug 2012 19:28:24 +0000 (12:28 -0700)]
Merge "Camera2: Factor out Camera2Client::Parameters" into jb-mr1-dev

11 years agoMerge "Fix retries when server doesn't support range requests." into jb-mr1-dev
Andreas Huber [Tue, 28 Aug 2012 18:11:47 +0000 (11:11 -0700)]
Merge "Fix retries when server doesn't support range requests." into jb-mr1-dev

11 years agoFix retries when server doesn't support range requests.
Andreas Huber [Tue, 28 Aug 2012 16:48:40 +0000 (09:48 -0700)]
Fix retries when server doesn't support range requests.

Change-Id: I2d137f3e799b87af36a279473c0077d860c14477
related-to-bug: 7021436

11 years agoMerge "Test to measure UDP roundtrip time between two devices on the same network...
Andreas Huber [Tue, 28 Aug 2012 17:22:44 +0000 (10:22 -0700)]
Merge "Test to measure UDP roundtrip time between two devices on the same network." into jb-mr1-dev

11 years agoTest to measure UDP roundtrip time between two devices on the same network.
Andreas Huber [Tue, 28 Aug 2012 16:47:45 +0000 (09:47 -0700)]
Test to measure UDP roundtrip time between two devices on the same network.

Change-Id: I4c9a5190efe18da8b6be7d68bda91df878c4118c

11 years agoCamera2: Factor out Camera2Client::Parameters
Eino-Ville Talvala [Sun, 26 Aug 2012 16:29:28 +0000 (09:29 -0700)]
Camera2: Factor out Camera2Client::Parameters

Move the parameter structure and the various utility methods using it
to its own class. Rename LockedParameters to SharedParameters to match
the Mutex naming convention.

Also move CameraMetadata to camera2 directory for organization.

No functional changes.

Bug: 6243944
Change-Id: Ie60b535936ecfda9bf23361d52604abf515c83d0

11 years agoMerge "Use new surface flinger API." into jb-mr1-dev
Jeff Brown [Tue, 28 Aug 2012 00:15:59 +0000 (17:15 -0700)]
Merge "Use new surface flinger API." into jb-mr1-dev

11 years agoMerge "Camera2: Fix metering/focusing region coordinates, minor bugs" into jb-mr1-dev
Eino-Ville Talvala [Mon, 27 Aug 2012 19:19:52 +0000 (12:19 -0700)]
Merge "Camera2: Fix metering/focusing region coordinates, minor bugs" into jb-mr1-dev

11 years agoMerge "Camera2: Move frame processing to its own thread." into jb-mr1-dev
Eino-Ville Talvala [Mon, 27 Aug 2012 19:19:40 +0000 (12:19 -0700)]
Merge "Camera2: Move frame processing to its own thread." into jb-mr1-dev

11 years agoMerge "Camera2: Use CameraMetadata wrapper class." into jb-mr1-dev
Eino-Ville Talvala [Mon, 27 Aug 2012 17:33:35 +0000 (10:33 -0700)]
Merge "Camera2: Use CameraMetadata wrapper class." into jb-mr1-dev

11 years agoMerge "Fixed a potential/rare race condtion in MediaPlayerService::Client::notify...
James Dong [Mon, 27 Aug 2012 17:14:29 +0000 (10:14 -0700)]
Merge "Fixed a potential/rare race condtion in MediaPlayerService::Client::notify() method" into jb-mr1-dev

11 years agoMerge "Fixed a native crash due to unexpected state at destroy time when encoder...
James Dong [Mon, 27 Aug 2012 17:14:23 +0000 (10:14 -0700)]
Merge "Fixed a native crash due to unexpected state at destroy time when encoder component's source fails to start" into jb-mr1-dev

11 years agoCamera2: Fix metering/focusing region coordinates, minor bugs
Eino-Ville Talvala [Sun, 26 Aug 2012 00:12:18 +0000 (17:12 -0700)]
Camera2: Fix metering/focusing region coordinates, minor bugs

- Use active pixel array-based coordinates instead of the normalized
  camera API coordinates for ae/awb/af regions
- Fix calculation of UV stride for YV12 format

Bug: 6243944
Change-Id: I80cbd989858b0a3cb75c6f536c145e16e44fdb25

11 years agoCamera2: Move frame processing to its own thread.
Eino-Ville Talvala [Fri, 24 Aug 2012 23:30:44 +0000 (16:30 -0700)]
Camera2: Move frame processing to its own thread.

To avoid blocking the HAL on possibly long-running binder calls,
move frame receiption and processing to its own thread.

Bug: 6243944
Change-Id: I6385be4410b2f68e2331755027afc10c342187cf

11 years agoCamera2: Use CameraMetadata wrapper class.
Eino-Ville Talvala [Fri, 24 Aug 2012 18:29:22 +0000 (11:29 -0700)]
Camera2: Use CameraMetadata wrapper class.

Wrap the use of the camera_metadata library inside a CameraMetadata
class to avoid memory leaks, improve code clarity, and increase type
safety.

Bug: 6243944
Change-Id: I90ca592b5875e27e4c58ea1ca680582dc3c3b56a

11 years agoMerge "SurfaceMediaSource: a few fixes / cleanups" into jb-mr1-dev
Jamie Gennis [Sun, 26 Aug 2012 23:28:14 +0000 (16:28 -0700)]
Merge "SurfaceMediaSource: a few fixes / cleanups" into jb-mr1-dev

11 years agoSurfaceMediaSource: a few fixes / cleanups
Jamie Gennis [Fri, 24 Aug 2012 03:24:09 +0000 (20:24 -0700)]
SurfaceMediaSource: a few fixes / cleanups

- Remove the setting of mStopped to true in onBuffersReleased
- Cleaned up a few function call logs
- Removed the 'reset' method.

Change-Id: I56bab1d5cb2f3e6d59d54698c2e045d796d1849f

11 years agoFixed a potential/rare race condtion in MediaPlayerService::Client::notify() method
James Dong [Sun, 26 Aug 2012 23:13:03 +0000 (16:13 -0700)]
Fixed a potential/rare race condtion in MediaPlayerService::Client::notify() method

o The mClient could be disconnected before the notify message is sent out. Use
  a local reference could help resolve this issue.

o related-to-bug: 6782035

Change-Id: Ia2047bd7f2666100fed83c6e5417a3bf2e20cd2c

11 years agoUse new surface flinger API.
Jeff Brown [Sat, 25 Aug 2012 05:34:11 +0000 (22:34 -0700)]
Use new surface flinger API.

Change-Id: I594c6e15db5f617d2feaac1a65b5316daa3812d0

11 years agoMerge "Fix deadlock" into jb-mr1-dev
Marco Nelissen [Sat, 25 Aug 2012 00:18:25 +0000 (17:18 -0700)]
Merge "Fix deadlock" into jb-mr1-dev

11 years agoFix deadlock
Marco Nelissen [Sat, 25 Aug 2012 00:10:17 +0000 (17:10 -0700)]
Fix deadlock

I wanted to save some space, and ended up with a deadlock.
This change basically restores setDataSource(fd, offset, size) to the
way it was before I added the new setDataSource(DataSource) method,
instead of calling through to it.

Change-Id: Iacf4627c8745369fa84b467530189a9f64f8726b

11 years agoMerge "Reduce THD when equalizer is ON." into jb-mr1-dev
Eric Laurent [Fri, 24 Aug 2012 21:29:56 +0000 (14:29 -0700)]
Merge "Reduce THD when equalizer is ON." into jb-mr1-dev

11 years agoReduce THD when equalizer is ON.
Eric Laurent [Fri, 24 Aug 2012 21:17:34 +0000 (14:17 -0700)]
Reduce THD when equalizer is ON.

Increase headroom in LVM bundle to reduce THD when equalizer is ON
with high band gains.

Also add a workaround for a bug in headroom parameter control.

Change-Id: I1d67c9ae475f6cf852c2e0e49bacfc82a5e484fd

11 years agoFixed a native crash due to unexpected state at destroy time when encoder component...
James Dong [Fri, 24 Aug 2012 17:53:31 +0000 (10:53 -0700)]
Fixed a native crash due to unexpected state at destroy time when encoder component's source fails to start

o Encoder component initializes to be in the state of EXECUTING before its source gets started, because we wanted to be able
  to configure the source to use the advertised number of input buffers. However, if the source fails to start, then the encoder
  ends up in the state of EXECUTING when OMXCodec object gets destroyed. As a result, the assertion on the expected state in
  OMXCodec's constructor fails. The fix is to stop the video encoder component right way when its source fails to start so to
  bring the state of the encoder component back to the expected state.

o related-to-bug: 7045494

Change-Id: I6d4a221eb809d7137f53e58098a04816998f7a25

11 years agoMerge "Allow directly setting a DataSource for NuMediaExtractor" into jb-mr1-dev
Marco Nelissen [Fri, 24 Aug 2012 17:37:39 +0000 (10:37 -0700)]
Merge "Allow directly setting a DataSource for NuMediaExtractor" into jb-mr1-dev