summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge change 22092 into eclairAndroid (Google) Code Review2009-08-202-1/+5
|\ | | | | | | | | * changes: Dynamically allocate a pair of MemoryHeaps according buffer count/sizes required by the OMX component, respect JPEG compressed size.
| * Dynamically allocate a pair of MemoryHeaps according buffer count/sizes ↵Andreas Huber2009-08-202-1/+5
| | | | | | | | required by the OMX component, respect JPEG compressed size.
* | Add offset handling in MemoryHeapBase classBenny Wong2009-08-201-2/+2
|/
* fix a bug that caused the PixelFormat viewed by Surface to be wrong.Mathias Agopian2009-08-191-0/+3
| | | | | what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly. in particular this caused query(FORMAT) to return the requested format instead of the effective format.
* The PV AVC software decoder expects each fragment of a NAL unit to be handed ↵Andreas Huber2009-08-193-19/+19
| | | | to the decoder unframed.
* Refactored "stagefright" commandline app, split off JPEGSource.Andreas Huber2009-08-181-0/+1
|
* Support for marshalling pointers / intptr_t in Parcel.Andreas Huber2009-08-172-0/+13
| | | | Some refactoring to eliminate code duplication in Parcel implementation.
* really be more friendly with CMathias Agopian2009-08-171-8/+8
|
* Squashed commit of the following:Andreas Huber2009-08-1715-68/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 5bb012f0065f7ffaaeb4f569d71f0e3a8d6b19c3 Author: Andreas Huber <andih@google.com> Date: Fri Aug 14 10:40:08 2009 -0700 An attempt at fixing export using the qcom encoders. More quirks. commit 0690e76bfa48118a68287ccf1bbfa82febaa620c Author: Andreas Huber <andih@google.com> Date: Fri Aug 14 09:08:28 2009 -0700 Callbacks are now dispatched from a separate thread in OMX. commit c6571a039526df29b6343f9a1971dbc019088c61 Author: Andreas Huber <andih@google.com> Date: Thu Aug 13 15:42:25 2009 -0700 Massive API changes throughout stagefright, smart pointers everywhere. commit 900612af6a0555664d9ba195112cd859491265f4 Author: Andreas Huber <andih@google.com> Date: Thu Aug 13 13:33:12 2009 -0700 OMXCodecs now properly shutdown. commit 96732f05e1b0603dcd1b11f16a23512592eeb4f5 Author: Andreas Huber <andih@google.com> Date: Thu Aug 13 12:04:04 2009 -0700 More work on JPEG decoding using the hardware OMX component. commit 63839a073ac393e3a130434ba467969053b694ad Author: Andreas Huber <andih@google.com> Date: Wed Aug 12 13:13:31 2009 -0700 An attempt to drive the JPEG decoder OMX node. commit 3ac2fe5ab2926eda81b2123610b2434c645294ff Author: Andreas Huber <andih@google.com> Date: Tue Aug 11 16:38:21 2009 -0700 Renamed StateMachine to OMXCodec and put it in its proper place. commit 247da75a96bf8881956413023dd49a84d5b4f5b2 Author: Andreas Huber <andih@google.com> Date: Tue Aug 11 16:06:19 2009 -0700 Statemachine is now a full-fledged MediaSource. commit 045244f6771fa0b9b329495c953afda900a84b71 Author: Andreas Huber <andih@google.com> Date: Fri Aug 7 09:16:54 2009 -0700 Properly setup the input format when exporting to AMR audio. commit 271b984cb32c5cd9e46e3f90ae121f334e4b8da9 Author: Andreas Huber <andih@google.com> Date: Thu Aug 6 09:59:38 2009 -0700 Added some code to test audio encoding to the OMX harness. commit 79af4748e4af33bd66d3fbac606e332a69741cf4 Author: Andreas Huber <andih@google.com> Date: Wed Aug 5 14:36:22 2009 -0700 Merge the old OMXDecoder and the new, shiny, StateMachine code. commit 91cf5dd77a8762bc10a0b2ffce35e3bbeb262231 Author: Andreas Huber <andih@google.com> Date: Tue Aug 4 17:41:43 2009 -0700 A new harness to test OMX node compliance (and quirks).
* Merge change 21401 into eclairAndroid (Google) Code Review2009-08-141-17/+35
|\ | | | | | | | | * changes: make sure to update a surface's usage bits when it changes, instead of only the first time.
| * make sure to update a surface's usage bits when it changes, instead of only ↵Mathias Agopian2009-08-141-17/+35
| | | | | | | | | | | | the first time. also fixed a few locking issues in Surface and commented how each member is protected.
* | DO NOT MERGE, ALready merged to master.Sahil Sachdeva2009-08-141-0/+1
|/ | | | 1440173 [NJ-1331] MetaData utility parse the wrong m4a meta data. Changes to Java, application side.
* be more friendly with CMathias Agopian2009-08-132-17/+17
|
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-131-2/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* ui: make native_window_set_usage be a static inlineDima Zavin2009-08-131-1/+1
| | | | Signed-off-by: Dima Zavin <dima@android.com>
* Modified the camera HAL interface to use the same generic callback ↵Benny Wong2009-08-132-74/+82
| | | | architecture as camera services
* am b8546001: Merge change 20878 into donutDianne Hackborn2009-08-121-0/+12
|\ | | | | | | | | | | | | Merge commit 'b8546001701405a76dad7e6235046e592296fac2' * commit 'b8546001701405a76dad7e6235046e592296fac2': Fix issue #2048263: More debugging information
| * Fix issue #2048263: More debugging informationDianne Hackborn2009-08-111-0/+12
| | | | | | | | | | We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
* | second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-114-4/+47
| | | | | | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* | Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-114-47/+4
| | | | | | | | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* | SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-114-4/+47
| | | | | | | | | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* | Expose a variation of the createRenderer API that works on a plain Surface.Andreas Huber2009-08-102-2/+13
| |
* | Deprecate/remove now unused socketpair ipc communication in favour of ↵Andreas Huber2009-08-102-36/+0
| | | | | | | | exclusive binder use.
* | Merge changes 20497,20498,20499Android (Google) Code Review2009-08-071-0/+2
|\ \ | | | | | | | | | | | | | | | | | | * changes: minor code clean-up added EGLUtils::strerror better error handling
| * | added EGLUtils::strerrorMathias Agopian2009-08-071-0/+2
| | |
* | | Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not ↵Eric Laurent2009-08-073-24/+24
|/ / | | | | | | | | | | | | use pointers as handles to inputs and outputs. Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces. AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
* | Merge changes 20345,20346,20347Android (Google) Code Review2009-08-062-1/+53
|\ \ | | | | | | | | | | | | | | | | | | * changes: update most gl tests to use EGLUtils added two EGL helpers for selecting a config matching a certain pixelformat or native window type added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
| * | added two EGL helpers for selecting a config matching a certain pixelformat ↵Mathias Agopian2009-08-061-0/+51
| | | | | | | | | | | | or native window type
| * | added NATIVE_WINDOW_FORMAT attribute to android_native_window_tMathias Agopian2009-08-061-1/+2
| | |
* | | EventHub: pass the name of each input device up to JavaIliyan Malchev2009-08-061-1/+1
|/ / | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | Merge change 9649Android (Google) Code Review2009-08-051-1/+4
|\ \ | | | | | | | | | | | | * changes: Finish implementation of multiple pointer support for MotionEvent.
| * | Finish implementation of multiple pointer support for MotionEvent.Dianne Hackborn2009-08-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major things going on here: - The MotionEvent API is now extended to included "pointer ID" information, for applications to keep track of individual fingers as they move up and down. PointerLocation has been updated to take advantage of this. - The input system now has logic to generate MotionEvents with the new ID information, synthesizing an identifier as new points are down and trying to keep pointer ids consistent across events by looking at the distance between the last and next set of pointers. - We now support the new multitouch driver protocol, and will use that instead of the old one if it is available. We do NOT use any finger id information coming from the driver, but always synthesize pointer ids in user space. (This is simply because we don't yet have a driver reporting this information from which to base an implementation on.) - Increase maximum number of fingers to 10. This code has only been used with a driver that reports up to 2, so no idea how more will actually work. - Oh and the input system can now detect and report physical DPAD devices.
* | | Recording/Export to .mp4/h.263 somewhat works on TI hardware.Andreas Huber2009-08-051-0/+4
|/ /
* | The IOMX interface now instantiates IOMXRenderers to hide the details of ↵Andreas Huber2009-07-315-53/+29
| | | | | | | | hardware accelerated blitting.
* | Merge change 9287Android (Google) Code Review2009-07-303-1/+21
|\ \ | | | | | | | | | | | | * changes: fixed some issues with the software renderer when surfaces are made current.
| * | fixed some issues with the software renderer when surfaces are made current.Mathias Agopian2009-07-303-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | there was several issues: - when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked - when a surface was made current the 2nd time, it would not dequeue a new buffer now, queue/dequeue are done when the surface is made current. for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
* | | am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-2/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
| * | Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* | | Merge change 9070Android (Google) Code Review2009-07-301-0/+6
|\ \ \ | | | | | | | | | | | | | | | | * changes: Adding resizeInput and setAttributes for overlay
| * | | Adding resizeInput and setAttributes for overlayBenny Wong2009-07-291-0/+6
| | |/ | |/|
* | | Remove hardcoded maximum frame rate limit from the frameworkJames Dong2009-07-301-4/+0
|/ / | | | | | | bug 1993400
* | While other OMX nodes appear to now have switched to using microseconds to ↵Andreas Huber2009-07-281-1/+2
| | | | | | | | timestamp buffers, at least the TI AAC and MP3 decoders still use milliseconds.
* | Squashed commit of the following:Andreas Huber2009-07-282-10/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 374ea382ee3a9e3ce17e4c6357fc40d02e362810 Author: Andreas Huber <andih@google.com> Date: Tue Jul 28 09:54:13 2009 -0700 PV's OMX implementation now uses (spec-compliant) microseconds instead of milliseconds in buffer timestamps. commit 8d02f8ab5d7b022ad4ad34db2a9bdeea6ce2acfe Author: Andreas Huber <andih@google.com> Date: Mon Jul 27 14:24:26 2009 -0700 Support for using an overlay for video playback on TI hardware. Appears to be currently constrained to CbYCrY 16-bit colorspace. commit d17f321cb4b15c1fea378f33a7ef5998f23dd0fc Author: Andreas Huber <andih@google.com> Date: Mon Jul 27 09:45:38 2009 -0700 Added '--audio-only' commandline option to stagefright tool. commit d8beef6be5c668c46451446d87e622933371cd75 Author: Andreas Huber <andih@google.com> Date: Fri Jul 24 13:35:00 2009 -0700 Generalize the various workarounds for OMX nodes with their own unique interpretation of the spec. commit c7dfd53eeadf8ed5a39bf2b19b014dcd62f3324d Author: Andreas Huber <andih@google.com> Date: Thu Jul 23 16:06:36 2009 -0700 Fixed erroneous TI AAC decoder behaviour wrt shutdown. The AAC decoder appears to not return out buffers on an Executing->Idle transition, implemented a workaround that does a flush on all ports followed by the Executing->Idle. Oh, and flush with OMX_ALL doesn't properly work either. Fun. commit d6377282e75060881336578f166f9c7feacf3f8f Author: Andreas Huber <andih@google.com> Date: Thu Jul 23 14:06:50 2009 -0700 Apparently the "channels" parameter in AudioTrack's constructor no longer counts channels but is a bitmask of enabled destinations, update the code accordingly. commit ff698c79e851a2e57d362e9c3a09828af4048087 Author: Andreas Huber <andih@google.com> Date: Wed Jul 22 16:54:44 2009 -0700 Fix MPEG4 decoding using TI's hardware decoder that I broke earlier... commit 2ef78bb87cd856eb7f0b3d7dd68782a8650c12bf Author: Andreas Huber <andih@google.com> Date: Wed Jul 22 15:43:18 2009 -0700 Now that the qcom decoder properly advertises its own custom colorspace, update dependent code to reflect this fact. commit bbaec96910727080fd7c8a6907c04facb9f5220f Author: Andreas Huber <andih@google.com> Date: Wed Jul 22 14:32:03 2009 -0700 Finishing up previous, incomplete change. commit 76f14a1ae816b6f434771f8d12bdad81196f351e Author: Andreas Huber <andih@google.com> Date: Wed Jul 22 14:25:17 2009 -0700 The TI video decoder now properly decoder AVC/H.264 content. commit e106130d8c100d5c94603e43864a7a93cca10252 Author: Andreas Huber <andih@google.com> Date: Wed Jul 22 08:56:04 2009 -0700 Experimental support for the TI H.264 decoder, various modifications to OMXDecoder, non-functional still. commit 241c3062dec3447db1a1ee74558cb4b9098fc404 Author: Andreas Huber <andih@google.com> Date: Tue Jul 21 12:13:09 2009 -0700 Enable TI hardware OMX decoders (except for AVC/H.264 which still has issues). This particular set of OMX nodes does not appear to properly return our buffers when sending the "disable" command on a port. Rather it reqires manually flushing that port and _then_ disabling it instead. commit 1c34506a46e32ce25f2a86f3b4250dcfc037356a Author: Andreas Huber <andih@google.com> Date: Tue Jul 21 08:51:35 2009 -0700 Make it simpler to switch between the stagefright player and PVPlayer. commit 249c6de05671d403f8dd51f095d49bf190430c9c Author: Andreas Huber <andih@google.com> Date: Mon Jul 20 14:38:15 2009 -0700 Prepare to use soon-to-be-available hardware decoders in the OMX decoder.
* | Fix issue 2001517: AudioTrack compatibility issue.Eric Laurent2009-07-271-23/+23
| | | | | | | | | | Modified enum values in AudioFormat.java and AudioSystem.h. Added code for backward compatibility in AudioTrack.java and AudioRecord.java.
* | Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-238-127/+522
| | | | | | | | | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* | Added native metadata support.niko2009-07-223-6/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Metadata.java: Fixed typo 8k != 8092. The comment was correct though. In Metadata.h, the new Metadata class is declared in the ns android::media to limit the chances of conflict with other packages. The MetadataType in MediaPlayerInterface is gone and moved to Metadata as an inner typedef. Similarly the SortedVector<MetadataType> instance have been replace by a new type Metadata::Filter. All the keys declared in the java counterpart are also in Metadata.h. Metadata.cpp: Contains the implementation of the native metadata packing. There an associated change in the opencore package that should go in at the same time as this one.
* | Merge change 7529Android (Google) Code Review2009-07-221-2/+3
|\ \ | | | | | | | | | | | | * changes: Make MemoryDealer's destructor protected instead of public.
| * | Make MemoryDealer's destructor protected instead of public.Andreas Huber2009-07-161-2/+3
| | | | | | | | | | | | MemoryDealer, like all other subclasses of RefBase,MUST NOT BE stack-allocated, a protected destructor prohibits stack-allocation while allowing the baseclass to properly invoke the subclass' destructor once the refcount drops to 0.
* | | am 9fc20b0e: Merge change 8126 into donutAndroid (Google) Code Review2009-07-211-27/+57
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf' * commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf': First pass at reworking screen density/size APIs.
| * | First pass at reworking screen density/size APIs.Dianne Hackborn2009-07-211-27/+57
| | | | | | | | | | | | | | | | | | | | | | | | This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.