OSDN Git Service

android-x86/frameworks-av.git
10 years agoMerge "Hook up event handling in NDK MediaDrm API"
Jeff Tinker [Thu, 15 May 2014 18:08:54 +0000 (18:08 +0000)]
Merge "Hook up event handling in NDK MediaDrm API"

10 years agoACodec: remove PTS log spam
Lajos Molnar [Thu, 15 May 2014 17:26:08 +0000 (10:26 -0700)]
ACodec: remove PTS log spam

Bug: 14976517
Bug: 11784827
Change-Id: Ibc1bbd80e7aac30b0f8f1e9ca2be1bb3e5e2ebbb

10 years agoHook up event handling in NDK MediaDrm API
Jeff Tinker [Thu, 15 May 2014 01:39:25 +0000 (18:39 -0700)]
Hook up event handling in NDK MediaDrm API

Change-Id: I48ac1d3ca5405c5909454c7a553917b31b9a50e5

10 years agoMerge "Send 64 bit OMX codec handling to 32 bit MediaServer"
Andy Hung [Thu, 15 May 2014 04:30:49 +0000 (04:30 +0000)]
Merge "Send 64 bit OMX codec handling to 32 bit MediaServer"

10 years agoSend 64 bit OMX codec handling to 32 bit MediaServer
Andy Hung [Wed, 14 May 2014 01:37:59 +0000 (18:37 -0700)]
Send 64 bit OMX codec handling to 32 bit MediaServer

This is a temporary fix for 64 bit OMX handling until 64 bit
codecs are more robust.

Bug: 13938273
Change-Id: Ifc79e360f9606f6c909b859d322b7dd5d416b26b
Signed-off-by: Andy Hung <hunga@google.com>
10 years agoMerge "Update OMX messages for 64 bit"
Andy Hung [Thu, 15 May 2014 03:18:48 +0000 (03:18 +0000)]
Merge "Update OMX messages for 64 bit"

10 years agoam 4b7c5444: am e32106fd: screenrecord: Add raw frames output format
Benoit Goby [Wed, 14 May 2014 23:47:13 +0000 (23:47 +0000)]
am 4b7c5444: am e32106fd: screenrecord: Add raw frames output format

* commit '4b7c5444f8af79f1f3e04e09bd03b84dec26facf':
  screenrecord: Add raw frames output format

10 years agoUpdate OMX messages for 64 bit
Andy Hung [Fri, 2 May 2014 18:05:04 +0000 (11:05 -0700)]
Update OMX messages for 64 bit

Change node_id and buffer_id to uint32_t.
Ensure IOMX messages are fixed size.
Remove 64 bit compile warnings in associated files.

Change-Id: Icdbef00aca575e5dc502ebb52e3ce7d0d7883203
Signed-off-by: Andy Hung <hunga@google.com>
10 years agoOnly export necessary symbols
Marco Nelissen [Wed, 14 May 2014 18:12:46 +0000 (11:12 -0700)]
Only export necessary symbols

Change-Id: I869d7124c8cc555f4b09801a898f4dd3ecb072ec

10 years agoMerge "Fix typos and pointer math."
Marco Nelissen [Wed, 14 May 2014 22:08:43 +0000 (22:08 +0000)]
Merge "Fix typos and pointer math."

10 years agoam e32106fd: screenrecord: Add raw frames output format
Benoit Goby [Wed, 14 May 2014 22:04:12 +0000 (22:04 +0000)]
am e32106fd: screenrecord: Add raw frames output format

* commit 'e32106fd5175afdf939ae397aece9caf378a4912':
  screenrecord: Add raw frames output format

10 years agoMerge "WIP: MediaDrm NDK APIs"
Jeff Tinker [Wed, 14 May 2014 21:34:06 +0000 (21:34 +0000)]
Merge "WIP: MediaDrm NDK APIs"

10 years agoFix typos and pointer math.
Marco Nelissen [Tue, 13 May 2014 23:22:19 +0000 (16:22 -0700)]
Fix typos and pointer math.

Change-Id: I07f33a57454d013844b56bc3e57fe0a271e8b38c

10 years agoMerge "Pull up mFlags and isFastTrack from Track to TrackBase"
Glenn Kasten [Wed, 14 May 2014 15:06:00 +0000 (15:06 +0000)]
Merge "Pull up mFlags and isFastTrack from Track to TrackBase"

10 years agoWIP: MediaDrm NDK APIs
Jeff Tinker [Tue, 13 May 2014 16:31:15 +0000 (09:31 -0700)]
WIP: MediaDrm NDK APIs

Change-Id: I3ac08a3b027135c3fd2a9e95c5e8b3fd722df019
TODO: hooking up event handler, testing

10 years agoMerge "Explicitly include Configuration.h"
Glenn Kasten [Tue, 13 May 2014 23:50:07 +0000 (23:50 +0000)]
Merge "Explicitly include Configuration.h"

10 years agoMerge "Fix memory corruption if increaseSamplingN is not called"
Glenn Kasten [Tue, 13 May 2014 23:49:30 +0000 (23:49 +0000)]
Merge "Fix memory corruption if increaseSamplingN is not called"

10 years agoscreenrecord: Add raw frames output format
Benoit Goby [Mon, 12 May 2014 22:59:50 +0000 (15:59 -0700)]
screenrecord: Add raw frames output format

This works like the frames output format but without a header so that
the output can be piped directly to mplayer:

adb shell screenrecord --output-format=raw-frames - | mplayer -demuxer
rawvideo -rawvideo w=320:h=240:format=rgb24 -

Change-Id: Ib5ed508fdca3a5d63e973c5189b3677c2d92b43f

10 years agoSome crypto stuff, error codes
Marco Nelissen [Fri, 9 May 2014 22:10:23 +0000 (15:10 -0700)]
Some crypto stuff, error codes

Add crypto/drm related functions, define some media errors
instead of using magic numbers in the code.

Change-Id: I5924cba0bfcdb3623073c9182a646b70f4ead5a5

10 years agoPull up mFlags and isFastTrack from Track to TrackBase
Glenn Kasten [Tue, 13 May 2014 18:30:28 +0000 (11:30 -0700)]
Pull up mFlags and isFastTrack from Track to TrackBase

Change-Id: I6bd48292310be4e05758a11f617f50585904422d

10 years agoExplicitly include Configuration.h
Glenn Kasten [Tue, 13 May 2014 17:55:33 +0000 (10:55 -0700)]
Explicitly include Configuration.h

Must include Configuration.h in any source file with #ifdef or #if that
depends on Configuration.h.  This avoid inconsistencies that could result
in subtle bugs.

Change-Id: I99fdf19d56e7c73de4e7d672b937336b932a2a00

10 years agoFix memory corruption if increaseSamplingN is not called
Glenn Kasten [Tue, 13 May 2014 17:57:40 +0000 (10:57 -0700)]
Fix memory corruption if increaseSamplingN is not called

Change-Id: Icbf9aaf68c25ba3330ceb79167bd776cf0342d0d

10 years agoAudioFlinger: add specific mutex for client lists
Eric Laurent [Tue, 13 May 2014 17:18:14 +0000 (10:18 -0700)]
AudioFlinger: add specific mutex for client lists

Add a specific mutex to protect access to mClients and
mNotificationClients lists. This avoids locking the main AudioFlinger
mutex from inside thread loops and allows not to worry about
cross deadlocks when sending a config event with status reply while
keeping the ThreadBase or AudioFlinger mutex locked.
As a way of consequence, remove notification client list passed to
processConfigEvents_l() and audioConfigChanged() as the list
can now be accessed by locking client mutex only.

Change-Id: I228022204b6709a8bb60cc96d9514a6ffe59b62e

10 years agoMerge "Add AMediaCodec callback"
Marco Nelissen [Tue, 13 May 2014 14:46:11 +0000 (14:46 +0000)]
Merge "Add AMediaCodec callback"

10 years agoam 4ae3cfd8: (-s ours) am 21bde57f: Add frame dump output
Andy McFadden [Tue, 13 May 2014 00:33:51 +0000 (00:33 +0000)]
am 4ae3cfd8: (-s ours) am 21bde57f: Add frame dump output

* commit '4ae3cfd801f0e62c2863d20a8ecc21369351c205':
  Add frame dump output

10 years agoam c1b0056e: (-s ours) am 2d11a203: Provide raw H.264 output from screenrecord
Andy McFadden [Tue, 13 May 2014 00:20:16 +0000 (00:20 +0000)]
am c1b0056e: (-s ours) am 2d11a203: Provide raw H.264 output from screenrecord

* commit 'c1b0056ea57978a77a6fac0ea80861b39140696f':
  Provide raw H.264 output from screenrecord

10 years agoam 21bde57f: Add frame dump output
Andy McFadden [Mon, 12 May 2014 23:18:30 +0000 (23:18 +0000)]
am 21bde57f: Add frame dump output

* commit '21bde57f0099fed5cca78d9357571dc015a63227':
  Add frame dump output

10 years agoam 2d11a203: Provide raw H.264 output from screenrecord
Andy McFadden [Mon, 12 May 2014 23:18:29 +0000 (23:18 +0000)]
am 2d11a203: Provide raw H.264 output from screenrecord

* commit '2d11a2031b99db9b503a7ad7efd1f18606af4012':
  Provide raw H.264 output from screenrecord

10 years agoAdd frame dump output
Andy McFadden [Wed, 26 Feb 2014 02:29:06 +0000 (18:29 -0800)]
Add frame dump output

This adds the ability to dump frames as RGB data with a minimal
frame header.  Only recommended for devices with small displays.
Enable with "--output-format=frames".

The "--raw" option is now selected with "--output-format=h264".

Change-Id: I18d3d4a87cd056d7acf0658985a90dc5895dbfb6

10 years agoProvide raw H.264 output from screenrecord
Andy McFadden [Fri, 20 Dec 2013 21:40:34 +0000 (13:40 -0800)]
Provide raw H.264 output from screenrecord

This adds an experimental (undocumented) "--raw" flag.  If set, we
output an H.264 byte stream rather than a .mp4 file.

If the filename is "-", we send the output to stdout.  If stdout is a
tty, we reconfigure it to avoid CRLF line termination over adb.

Change-Id: I5193f6193c9c1a59f92eefad0ed399f24afbf6de

10 years agoMerge "Camera: Don't enable log spew by default for eng build"
Zhijun He [Mon, 12 May 2014 21:31:28 +0000 (21:31 +0000)]
Merge "Camera: Don't enable log spew by default for eng build"

10 years agoCamera: Don't enable log spew by default for eng build
Zhijun He [Mon, 12 May 2014 17:33:51 +0000 (10:33 -0700)]
Camera: Don't enable log spew by default for eng build

Also replace assert with LOG_ALWAYS_FATAL_IF.

Change-Id: I528b97d9bc7a93dc3575ded28f6bf7e294d0a1e6

10 years agoMerge "audiopolicy: refactor audio command threads"
Eric Laurent [Mon, 12 May 2014 18:10:29 +0000 (18:10 +0000)]
Merge "audiopolicy: refactor audio command threads"

10 years agoaudiopolicy: refactor audio command threads
Eric Laurent [Sat, 10 May 2014 01:04:42 +0000 (18:04 -0700)]
audiopolicy: refactor audio command threads

- Use strong pointers for command data to avoid transfering
ownership of the object to receiver thread.
This avoids waiting for the command acknowlegement to proceed
with next command on server side.
- Use a separate mutex for each command condition.
- Factor in duplicated code to send commands.

Change-Id: Ib0526e7c4fa64a71ad4015f477c6361727c6f40a

10 years agoam 7fd1af85: am c36fbcdf: am f02f06c4: Merge "camera: check Intent entry count before...
Eino-Ville Talvala [Mon, 12 May 2014 17:41:42 +0000 (17:41 +0000)]
am 7fd1af85: am c36fbcdf: am f02f06c4: Merge "camera: check Intent entry count before reading it"

* commit '7fd1af85f8fb40f7cb4fcdba98418aeea61fb4f0':
  camera: check Intent entry count before reading it

10 years agoam c36fbcdf: am f02f06c4: Merge "camera: check Intent entry count before reading it"
Eino-Ville Talvala [Mon, 12 May 2014 17:36:42 +0000 (17:36 +0000)]
am c36fbcdf: am f02f06c4: Merge "camera: check Intent entry count before reading it"

* commit 'c36fbcdf37ec02314e7b8134bb0de5f624fa70fd':
  camera: check Intent entry count before reading it

10 years agoam f02f06c4: Merge "camera: check Intent entry count before reading it"
Eino-Ville Talvala [Mon, 12 May 2014 17:31:29 +0000 (17:31 +0000)]
am f02f06c4: Merge "camera: check Intent entry count before reading it"

* commit 'f02f06c422a58ddaca49d14f21a196eaa435d07b':
  camera: check Intent entry count before reading it

10 years agoMerge "camera: check Intent entry count before reading it"
Eino-Ville Talvala [Mon, 12 May 2014 17:27:54 +0000 (17:27 +0000)]
Merge "camera: check Intent entry count before reading it"

10 years agocamera: check Intent entry count before reading it
Yuvraj Pasi [Tue, 15 Apr 2014 13:33:26 +0000 (19:03 +0530)]
camera: check Intent entry count before reading it

In case when find() returns empty entry, blindly
reading the entry will cause segfault

Change-Id: Ib5be7fd855c409ba3b45f0d43e15237367172817

10 years agoFix bit rot in AudioStreamInSource
Glenn Kasten [Fri, 9 May 2014 21:50:48 +0000 (14:50 -0700)]
Fix bit rot in AudioStreamInSource

It obviously had not been compiled in a while.

Change-Id: If514f474808e557a67a671c3b833572ad4a88338

10 years agoAllow placement of Pipe buffer to be specified
Glenn Kasten [Fri, 9 May 2014 20:37:29 +0000 (13:37 -0700)]
Allow placement of Pipe buffer to be specified

Change-Id: I2f6b68089ecfe85cd975d29ad0d0afd13c487002

10 years agoExplicitly ignore return value of __futex_syscall3
Glenn Kasten [Fri, 9 May 2014 20:39:04 +0000 (13:39 -0700)]
Explicitly ignore return value of __futex_syscall3

Change-Id: Ic65f257bfc4a0eff7bdd3c44fab68a3f17e2bd08

10 years agoCache mCblk in local variable cblk
Glenn Kasten [Fri, 9 May 2014 20:38:09 +0000 (13:38 -0700)]
Cache mCblk in local variable cblk

This is the style used throughout the rest of AudioTrackShared.

Change-Id: I959a6be3064e087bb19eba41173fd130dfcb4a9a

10 years agoMerge "Remove obsolete IAudioRecord::getCblk()"
Glenn Kasten [Fri, 9 May 2014 23:19:23 +0000 (23:19 +0000)]
Merge "Remove obsolete IAudioRecord::getCblk()"

10 years agoMerge "audioflinger: refactor thread config events"
Eric Laurent [Fri, 9 May 2014 23:18:47 +0000 (23:18 +0000)]
Merge "audioflinger: refactor thread config events"

10 years agoRemove obsolete IAudioRecord::getCblk()
Glenn Kasten [Wed, 7 May 2014 15:42:25 +0000 (08:42 -0700)]
Remove obsolete IAudioRecord::getCblk()

Change-Id: Id20b5efd765b9796b0e391610e06dc928a829ebf

10 years agoMerge "IAudioFlinger::openRecord returns IMemory(s)"
Glenn Kasten [Fri, 9 May 2014 23:14:12 +0000 (23:14 +0000)]
Merge "IAudioFlinger::openRecord returns IMemory(s)"

10 years agoaudioflinger: refactor thread config events
Eric Laurent [Fri, 9 May 2014 01:49:52 +0000 (18:49 -0700)]
audioflinger: refactor thread config events

Merge config events and set parameters messaging mechanism.
- setting parameters now uses the config event mechanism
- config event now allow to wait for a condition and synchronize caller
binder thread with execution thread and return an execution status.
- simplify locking mechanism to avoid unlocking the thread
mutex while processing events.

Change-Id: Ia49cb3e617abec4bacb6c1f9a8cb304c4ed3902e

10 years agoMerge "Expose sample duration in MPEG4Extractor."
Robert Shih [Fri, 9 May 2014 19:08:24 +0000 (19:08 +0000)]
Merge "Expose sample duration in MPEG4Extractor."

10 years agoMerge "PlaylistFetcher: start queueing AUs after the 1st IDR nalu"
Robert Shih [Fri, 9 May 2014 19:07:13 +0000 (19:07 +0000)]
Merge "PlaylistFetcher: start queueing AUs after the 1st IDR nalu"

10 years agoIAudioFlinger::openRecord returns IMemory(s)
Glenn Kasten [Wed, 7 May 2014 16:16:09 +0000 (09:16 -0700)]
IAudioFlinger::openRecord returns IMemory(s)

openRecord() now explicitly returns the control block and data buffer
as separate IMemory references.  If the IMemory for data buffer
is 0, this means it immediately follows the control block.

Change-Id: Ic098f88f0e037f8fbe30006689e18cacacf09d06

10 years agoAdd AMediaCodec callback
Marco Nelissen [Thu, 8 May 2014 21:46:05 +0000 (14:46 -0700)]
Add AMediaCodec callback

Change-Id: I33b7ff3bcdcff6d3a5e1db385b900ae18b7e0f03

10 years agoMerge "stagefright: set PTS for SoftwareRenderer"
Lajos Molnar [Fri, 9 May 2014 02:34:25 +0000 (02:34 +0000)]
Merge "stagefright: set PTS for SoftwareRenderer"

10 years agoMediaCodec: add renderAndReleaseOutputBuffer() method with timestamp
Lajos Molnar [Wed, 7 May 2014 22:31:28 +0000 (15:31 -0700)]
MediaCodec: add renderAndReleaseOutputBuffer() method with timestamp

Bug: 11784827
Change-Id: Ia1dcbd6c1d1a4380db04b750c0eb3fa0bd58d7b4

10 years agoMerge "Allow BOM and space in WebVTT files"
Lajos Molnar [Fri, 9 May 2014 01:24:04 +0000 (01:24 +0000)]
Merge "Allow BOM and space in WebVTT files"

10 years agoAllow BOM and space in WebVTT files
Lajos Molnar [Thu, 8 May 2014 23:13:54 +0000 (16:13 -0700)]
Allow BOM and space in WebVTT files

Bug: 10900755
Change-Id: I47a7a33f749ea2470ce7d9d36d33c7484637d61c

10 years agoMerge "audio policy: fix mute delay when setting output device"
Eric Laurent [Thu, 8 May 2014 21:11:16 +0000 (21:11 +0000)]
Merge "audio policy: fix mute delay when setting output device"

10 years agoaudio policy: fix mute delay when setting output device
Eric Laurent [Thu, 8 May 2014 02:48:15 +0000 (19:48 -0700)]
audio policy: fix mute delay when setting output device

The duration of the temporary mute applied on each output
when switching device must be more than twice the actual delay
we wait for the mute to be effective at the output.
Otherwise some outputs with short latencies will be unmuted before the
device switch is actually executed.

This change makes sure that we take the maximum wait time into account
when requesting the delayed unmuting of each output.

Change-Id: Id92c201b47786082a44b6a5c1c8015273835a42e

10 years agoresolved conflicts for merge of cf79c7a5 to master
Ying Wang [Thu, 8 May 2014 20:48:00 +0000 (13:48 -0700)]
resolved conflicts for merge of cf79c7a5 to master

Change-Id: Ic4e75541193f733f477cfa4a2a87cce4c9e64f45

10 years agoMerge "Add client side support for more AUDIO_FORMAT_PCM_*"
Glenn Kasten [Thu, 8 May 2014 19:02:25 +0000 (19:02 +0000)]
Merge "Add client side support for more AUDIO_FORMAT_PCM_*"

10 years agoMerge "Make AMediaCodec_create* APIs more like their Java counterparts"
Marco Nelissen [Thu, 8 May 2014 17:43:04 +0000 (17:43 +0000)]
Merge "Make AMediaCodec_create* APIs more like their Java counterparts"

10 years agoMake AMediaCodec_create* APIs more like their Java counterparts
Marco Nelissen [Wed, 7 May 2014 23:03:54 +0000 (16:03 -0700)]
Make AMediaCodec_create* APIs more like their Java counterparts

and add configure flags.

Change-Id: Ibfb7f8cad724fa1db2320966828104d40b5e6590

10 years agoMerge "Add a per-thread heap that is read-only to clients"
Glenn Kasten [Thu, 8 May 2014 15:40:09 +0000 (15:40 +0000)]
Merge "Add a per-thread heap that is read-only to clients"

10 years agoam 02483465: am 1d2909b3: Merge "Remove unused LOCAL_LDLIBS."
Ying Wang [Thu, 8 May 2014 08:55:36 +0000 (08:55 +0000)]
am 02483465: am 1d2909b3: Merge "Remove unused LOCAL_LDLIBS."

* commit '02483465e294571a6a92fce4f38c933e77bf5e67':
  Remove unused LOCAL_LDLIBS.

10 years agoam 1d2909b3: Merge "Remove unused LOCAL_LDLIBS."
Ying Wang [Thu, 8 May 2014 07:27:53 +0000 (07:27 +0000)]
am 1d2909b3: Merge "Remove unused LOCAL_LDLIBS."

* commit '1d2909b38f76d9d866e61cf505b88518d3a52acf':
  Remove unused LOCAL_LDLIBS.

10 years agoMerge "Remove unused LOCAL_LDLIBS."
Ying Wang [Thu, 8 May 2014 07:25:00 +0000 (07:25 +0000)]
Merge "Remove unused LOCAL_LDLIBS."

10 years agoRemove unused LOCAL_LDLIBS.
Ying Wang [Thu, 8 May 2014 07:23:11 +0000 (00:23 -0700)]
Remove unused LOCAL_LDLIBS.

Change-Id: I14865bee99fbcc5188b64fbd22bb49a1947ec6ff

10 years agostagefright: set PTS for SoftwareRenderer
Lajos Molnar [Wed, 7 May 2014 22:30:51 +0000 (15:30 -0700)]
stagefright: set PTS for SoftwareRenderer

Change-Id: I08661a9eae09f919149aa5a58aa514d848de50a1

10 years agoMerge "audio policy: cleanup AudioPolicyService destructor"
Eric Laurent [Thu, 8 May 2014 02:35:04 +0000 (02:35 +0000)]
Merge "audio policy: cleanup AudioPolicyService destructor"

10 years agoMerge "Expand AMediaFormat"
Marco Nelissen [Wed, 7 May 2014 23:02:56 +0000 (23:02 +0000)]
Merge "Expand AMediaFormat"

10 years agoAdd a per-thread heap that is read-only to clients
Glenn Kasten [Wed, 7 May 2014 15:43:45 +0000 (08:43 -0700)]
Add a per-thread heap that is read-only to clients

Change-Id: I401263566ca20fbfb565689c8fa99458d3b283b2

10 years agoAdd client side support for more AUDIO_FORMAT_PCM_*
Glenn Kasten [Wed, 30 Apr 2014 22:50:31 +0000 (15:50 -0700)]
Add client side support for more AUDIO_FORMAT_PCM_*

As much as possible, the checks for specific formats are done on server
side.  The only exception is 8-bit, which needs a client side workaround.

Change-Id: I52fe086c039460c8dac009de03b67eb54c56a836

10 years agoExpand AMediaFormat
Marco Nelissen [Wed, 7 May 2014 19:55:18 +0000 (12:55 -0700)]
Expand AMediaFormat

Remove getDouble and getSize methods, since these are not used and/or
not present in the corresponding Java MediaFormat API.
Add setBuffer/getBuffer, needed for making formats for encoding, and
add other setters.

Change-Id: I528d51b4ed571d852b949637f7ae3a95d31da7c1

10 years agoMerge "Add NDK version of MediaMuxer"
Marco Nelissen [Wed, 7 May 2014 19:55:09 +0000 (19:55 +0000)]
Merge "Add NDK version of MediaMuxer"

10 years agoaudio policy: cleanup AudioPolicyService destructor
Eric Laurent [Wed, 7 May 2014 18:58:24 +0000 (11:58 -0700)]
audio policy: cleanup AudioPolicyService destructor

No need to clear strong pointers in the destuctor.
Add explicit exit() command to mOutputCommandThread.

Change-Id: I60bb248fe6a20bfd8a55358ef139692b93df0238

10 years agoMerge "Fix a couple of fast capture typo bugs"
Glenn Kasten [Wed, 7 May 2014 18:55:03 +0000 (18:55 +0000)]
Merge "Fix a couple of fast capture typo bugs"

10 years agoFix a couple of fast capture typo bugs
Glenn Kasten [Wed, 7 May 2014 18:17:52 +0000 (11:17 -0700)]
Fix a couple of fast capture typo bugs

AudioRecord constructor was not passing flags through to set().
Server-side check was using wrong kind of channel mask.

Change-Id: Ifaa880ec323771e9fd168262be05f3e539f53390

10 years agoMerge "Remove legacy omx_message variables"
Andy Hung [Wed, 7 May 2014 16:59:29 +0000 (16:59 +0000)]
Merge "Remove legacy omx_message variables"

10 years agoAdd NDK version of MediaMuxer
Marco Nelissen [Tue, 6 May 2014 23:08:19 +0000 (16:08 -0700)]
Add NDK version of MediaMuxer

and add some constness here and there.

Change-Id: Ib3caa8310691e8f27aaa1afcfaec0b384513d4f1

10 years agoaudio policy: fix typo in AudioPolicyManager constructor
Eric Laurent [Wed, 7 May 2014 16:10:01 +0000 (09:10 -0700)]
audio policy: fix typo in AudioPolicyManager constructor

Fix cut/paste error in new AudioPolicyManager constructor
causing the same index variable to be reused in nested for loops.

Change-Id: Id57ff19bf6dd8974486b07c8252029e377df2747

10 years agoMerge "audio policy: update from libhardware_legacy"
Eric Laurent [Wed, 7 May 2014 15:58:07 +0000 (15:58 +0000)]
Merge "audio policy: update from libhardware_legacy"

10 years agoRemove legacy omx_message variables
Andy Hung [Tue, 6 May 2014 22:05:53 +0000 (15:05 -0700)]
Remove legacy omx_message variables

Remove platform_private and data_ptr from omx_message.
These were used for legacy deferred buffer creation.
See OMXCodec quirks: kDefersOutputBufferAllocation and
kRequiresAllocateBufferOnOutputPorts.

Change-Id: I94da56bc64f3b46ee1276e93d67b36c1662e2eaf
Signed-off-by: Andy Hung <hunga@google.com>
10 years agoMerge "MediaFormat owns its strings"
Marco Nelissen [Tue, 6 May 2014 22:46:09 +0000 (22:46 +0000)]
Merge "MediaFormat owns its strings"

10 years agoMerge "Camera3: fix missing string in logging code"
Zhijun He [Tue, 6 May 2014 18:37:54 +0000 (18:37 +0000)]
Merge "Camera3: fix missing string in logging code"

10 years agoCamera3: fix missing string in logging code
Zhijun He [Tue, 6 May 2014 18:33:52 +0000 (11:33 -0700)]
Camera3: fix missing string in logging code

Change-Id: I15da6bb8b586b4641837f42d2145530fb45dd0bd

10 years agoaudio policy: update from libhardware_legacy
Eric Laurent [Tue, 6 May 2014 01:13:44 +0000 (18:13 -0700)]
audio policy: update from libhardware_legacy

Merge changes made to AudioPolicyManagerBase in libhardware_legacy
since it was forked here:

fd61179 Update policy handling for USB inputs
c7b6e3c audio: allow compiling for 64-bit
c26f454 Initial implementation of USB Audio output.
a7b1bc9 Audio policy is 32-bit only
26101ad audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable

Change-Id: I22bc883c20603a6598c6ee3ded636e9cc4d9ec03

10 years agoMediaFormat owns its strings
Marco Nelissen [Tue, 6 May 2014 17:33:07 +0000 (10:33 -0700)]
MediaFormat owns its strings

Have MediaFormat own the strings it returns from toString and getString,
reducing the chance of memory leaks.

Change-Id: I0ddd593874c8b3af0b7714f2d8a106edf8121108

10 years agoam 71171988: am f655acf1: am 8fb04d47: Merge "Fix memory leak when filtering commands...
Eric Laurent [Tue, 6 May 2014 15:35:34 +0000 (15:35 +0000)]
am 71171988: am f655acf1: am 8fb04d47: Merge "Fix memory leak when filtering commands in insertCommand_l()"

* commit '711719885d7563068579abf347c366cf6bc906f5':
  Fix memory leak when filtering commands in insertCommand_l()

10 years agoam f655acf1: am 8fb04d47: Merge "Fix memory leak when filtering commands in insertCom...
Eric Laurent [Tue, 6 May 2014 15:30:49 +0000 (15:30 +0000)]
am f655acf1: am 8fb04d47: Merge "Fix memory leak when filtering commands in insertCommand_l()"

* commit 'f655acf15e587dbf5d7120e9f2bf4b5bcb89941c':
  Fix memory leak when filtering commands in insertCommand_l()

10 years agoam 8fb04d47: Merge "Fix memory leak when filtering commands in insertCommand_l()"
Eric Laurent [Tue, 6 May 2014 15:28:39 +0000 (15:28 +0000)]
am 8fb04d47: Merge "Fix memory leak when filtering commands in insertCommand_l()"

* commit '8fb04d474ed9e0d1302ae223ee76fafbe5fb41a3':
  Fix memory leak when filtering commands in insertCommand_l()

10 years agoMerge "Fix memory leak when filtering commands in insertCommand_l()"
Eric Laurent [Tue, 6 May 2014 15:25:45 +0000 (15:25 +0000)]
Merge "Fix memory leak when filtering commands in insertCommand_l()"

10 years agoMerge "Remove warnings in recordvideo"
Andy Hung [Tue, 6 May 2014 00:45:15 +0000 (00:45 +0000)]
Merge "Remove warnings in recordvideo"

10 years agoRemove warnings in recordvideo
Andy Hung [Fri, 2 May 2014 01:47:58 +0000 (18:47 -0700)]
Remove warnings in recordvideo

Change-Id: I2ed72836210fd3a02c7bceeb5fccadf8dcb92fbc
Signed-off-by: Andy Hung <hunga@google.com>
10 years agoMerge "Fix audioloop test program"
Andy Hung [Tue, 6 May 2014 00:17:13 +0000 (00:17 +0000)]
Merge "Fix audioloop test program"

10 years agoFix audioloop test program
Andy Hung [Thu, 24 Apr 2014 01:34:02 +0000 (18:34 -0700)]
Fix audioloop test program

Change-Id: Ic31966095d719cf2b33322675d7d0a2e6a203268
Signed-off-by: Andy Hung <hunga@google.com>
10 years agoMerge "Don't build libmediandk for PDK"
Marco Nelissen [Mon, 5 May 2014 21:49:25 +0000 (21:49 +0000)]
Merge "Don't build libmediandk for PDK"

10 years agoDon't build libmediandk for PDK
Marco Nelissen [Mon, 5 May 2014 21:48:34 +0000 (14:48 -0700)]
Don't build libmediandk for PDK

Change-Id: I9b2e5f5c8cc0fad59d4a4268c8767f540d536d10

10 years agoMerge "WIP: MediaCodec and friends NDK APIs, plain C version"
Marco Nelissen [Mon, 5 May 2014 21:07:52 +0000 (21:07 +0000)]
Merge "WIP: MediaCodec and friends NDK APIs, plain C version"

10 years agoMerge "Use audio_is_linear_pcm()"
Glenn Kasten [Mon, 5 May 2014 17:57:57 +0000 (17:57 +0000)]
Merge "Use audio_is_linear_pcm()"

10 years agoWIP: MediaCodec and friends NDK APIs, plain C version
Marco Nelissen [Thu, 1 May 2014 17:14:44 +0000 (10:14 -0700)]
WIP: MediaCodec and friends NDK APIs, plain C version

Change-Id: I9ed6b9c5afb026a1b5fe8b652e75635bbcc223df