summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: synchronously change nativewindow cropLajos Molnar2013-06-111-1/+1
| | | | | | | | | Only change the nativewindow crop before queuing frames with the new crop. Change-Id: Icd8a84c82e66a8be3d6bc1675c777b1de8dc39b9 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 9395753
* MediaMuxer: Remove SAMPLE_FLAG_SYNC flagLajos Molnar2013-05-281-6/+0
| | | | | | | | | | | | MediaMuxer.writeSampleData() uses MediaCodec.BufferInfo objects to specify the flags, so use directly the MediaCodec flags. This is more intuitive and avoids users of the MediaMuxer API having to create translations between MediaMuxer's and MediaCodec's flag constants. Change-Id: I18e12a6839ffb2c63da62516a4dc4c94e8bb3d17 Signed-off-by: Lajos Molnar <lajos@google.com> Bug: 9169479
* Support MediaCodec::getOutputFormat for encodersAndreas Huber2013-04-301-0/+4
| | | | | | | codec specific data is provided as part of the MediaFormat if available. Change-Id: I5a79c936e2411fe66ebc694791071faefc33941e related-to-bug: 8616651
* Merge "3rd time's the charm, right? Fix another instance where MediaCodec ↵Andreas Huber2013-04-221-0/+1
|\ | | | | | | would" into jb-mr2-dev
| * 3rd time's the charm, right? Fix another instance where MediaCodec wouldAndreas Huber2013-04-191-0/+1
| | | | | | | | | | | | | | | | not return from a stop() or release() call if mediaserver dies at just the right moment. Change-Id: I7728f8df82d62602d4d272f8023aa88678dd7d95 related-to-bug: 8397711
* | A flush of a video decoder connected to a native window must reclaimAndreas Huber2013-04-191-1/+5
|/ | | | | | | | | | output buffers already queued for rendering before considering a flush completed. Otherwise the decoder may not have enough output buffers to continue decoding after the discontinuity and we'll never dequeue more from the native window. Change-Id: I42e275dc336568e180081c6d7c0dc05fc9637c79 related-to-bug: 8578467
* Add new error codes for DRM to improve error reportingJeff Tinker2013-04-171-0/+2
| | | | | bug: 8621516 Change-Id: I9a06c9ea5bfde924906d3876a417b9451b6abde8
* Merge "MediaMuxer prefer not to use the MPEG4Writer in real time recording ↵ztenghui2013-04-152-1/+9
|\ | | | | | | mode." into jb-mr2-dev
| * MediaMuxer prefer not to use the MPEG4Writer in real time recording mode.ztenghui2013-04-152-1/+9
| | | | | | | | | | | | | | | | By default, MPEG4Write will keep running in real time recording mode. bug:8598944 Change-Id: Idf7fbd4e0feb7763660a74279ba8817b79098aaf
* | ACodec now signals an error if the mediaserver died while it is inAndreas Huber2013-04-111-0/+2
| | | | | | | | | | | | | | anything other than "uninitialized" state. Change-Id: Id133d897ac65b455b34e5de17ff9c39b47285630 related-to-bug: 8397711
* | Add support for common encryptionMarco Nelissen2013-04-083-0/+7
|/ | | | | | b/7465749 Change-Id: I5403b74a5ae428ad28b382863a09daafc400b137
* Identify network servers and clients with a OS version related stringAndreas Huber2013-03-261-0/+3
| | | | | | and put the logic to create that string in one location instead of many... Change-Id: I1f729f2e7376cd3b45eea0e48f7bd10084b41b39
* Add the presentation rotation supportztenghui2013-03-151-2/+12
| | | | | | bug:7991013 Change-Id: I10cb034b432876c724baa4974efcb3d67b8a99b6
* Merge "Make limitations of MPEG4Writer explicit" into jb-mr2-devTenghui Zhu2013-03-141-0/+6
|\
| * Make limitations of MPEG4Writer explicitJames Dong2013-03-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | o No more than 2 tracks will be supported o No more than one video and/or one audio tracks will be supported o Only take video and/or audio track (for instance, no text tracks) o If there is no track before start() is called, bail out. At the same time, make sure the errors from addSource() report to addTrack(), not to start(). Bug: 7991013 Change-Id: I1ca35aaeb75b5448d75ed2c6c10dd12ecea720ab
* | remove uses of Surface in favor or IGraphicBufferProducerMathias Agopian2013-03-122-5/+5
|/ | | | Change-Id: I13d7a9553aa335bca790a3a59d389d7533c83d57
* Merge "Clean up the native code to match Java update" into jb-mr2-devztenghui2013-03-081-2/+17
|\
| * Clean up the native code to match Java updateztenghui2013-03-081-2/+17
| | | | | | | | | | | | | | | | | | 1. Add flags to match the java side change. 2. Update the interface. bug:7991013 Change-Id: I8ffe84c466b2a68e2e1e48b35b78db9e44640265
* | Correct MediaCodec + Surface behaviorAndy McFadden2013-03-052-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assorted tweaks: - Allow signalEndOfInputStream() before ACodec is in Executing state (added message to two more states). - Return an error if signalEndOfInputStream() is called a second time on the same stream. - Require AndroidOpaque color format in createInputSurface(). - Disallow dequeueInputBuffer() after an input surface has been created (boolean flag in MediaCodec tracks it). - Discard input surface when encoder is re-configure()ed (drop OMXNodeInstance's ref when we go back to Loaded). Bug 7991062 Change-Id: Iff30f3036e14eb5a2f6536910dcf11aba33031ee
* | Implement Surface input to MediaCodec.Andy McFadden2013-03-043-0/+58
|/ | | | | | | | | Also, renamed a CHECK_INTERFACE macro that was clashing with the Binder version. Bug 7991062 Change-Id: If5e6ed0a06d9f67975497676e4b05abe3aa3d6c0
* CameraService and Stagefright: Support AppOpsEino-Ville Talvala2013-02-252-8/+25
| | | | | | | | | | | | | Camera: - Signal to AppOpsService when camera usage starts and stops - Listen to permissions revocations and act on them - Currently just kill camera connection when permissions lost Stagefright: - Pass on client name, UID to camera as needed Bug: 8181262 Change-Id: I9e33c9d05e9daa77dbb2d795045d08eb887ec8f0
* Refactoring: Rename SurfaceTextureClient to SurfaceMathias Agopian2013-02-153-12/+12
| | | | Change-Id: I4e8a8b20914cb64edc37abe68233fbc9f2b5d830
* Add support for fragmented mp4 to MPEG4ExtractorMarco Nelissen2013-02-151-0/+2
| | | | | | | This makes FragmentedMP4Extractor obsolete. It will be removed in a separate change. Change-Id: Ida74c07ccf84983e20a1320ee24ffc7a5c083859
* Add the native MediaMuxer support.ztenghui2013-02-122-0/+185
| | | | | | | | | MediaAdapter: a helper class to convert the push model to pull model. MediaMuxer: the real muxer. bug:7991013 Change-Id: If3b79551bc6332bc81f5c2740885e579a5c4abf9
* Allow for dynamic reconfiguration of the video bitrate usedAndreas Huber2013-02-072-0/+9
| | | | | | to encode video while running as a wfd source. Change-Id: I44f7b2350c88fc5807047c61bfe594ef8fa79275
* Rename ISurfaceTexture and SurfaceTextureAndy McFadden2012-12-182-5/+5
| | | | | | | | | | The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: I64520a55f8c09fe6215382ea361c539a9940cba5
* Respect sample aspect ratio in NuPlayer.Andreas Huber2012-12-051-0/+2
| | | | | related-to-bug: 7569402 Change-Id: I302de95d83b180bd2dc72ddd0c69a665dbce2527
* am 296cb9dd: am 0dbe5a93: Added optional intra macroblock refresh support ↵James Dong2012-11-291-0/+1
|\ | | | | | | | | | | | | for encoding * commit '296cb9ddd916c43983bfb4ddab9c69ed555d4cc4': Added optional intra macroblock refresh support for encoding
| * am 0dbe5a93: Added optional intra macroblock refresh support for encodingJames Dong2012-11-291-0/+1
| |\ | | | | | | | | | | | | * commit '0dbe5a9321b24b6883fbb2fe97cd9d525128b0b5': Added optional intra macroblock refresh support for encoding
| | * Added optional intra macroblock refresh support for encodingJames Dong2012-11-281-0/+1
| | | | | | | | | | | | | | | | | | o related-to-bug: 7524791 Change-Id: I95ac4ee925e2dbeb00b3cfb2e29c611698c5cc9f
* | | am 9abbd0fb: am 3eb46d17: Merge "Fix of uninitialized mIsDrm variable."Andreas Huber2012-11-271-1/+1
|\ \ \ | |/ / | | | | | | | | | * commit '9abbd0fb822aa0076f6de03f2092db47760b924d': Fix of uninitialized mIsDrm variable.
| * | Merge "Fix of uninitialized mIsDrm variable."Andreas Huber2012-11-271-1/+1
| |\ \
| | * | Fix of uninitialized mIsDrm variable.Henrik B Andersson2012-11-271-1/+1
| | |/ | | | | | | | | | | | | | | | | | | The mIsDrm is a bool that isn't initialized. This causes it to be true in most default cases. Change-Id: I41b534514bf6a3ca88a9f0994b814d55fcd7453b
* | | am 5bc5bf39: am 79fd6853: Merge "MediaCodec: Add a method for getting the ↵Andreas Huber2012-11-261-0/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | component name" * commit '5bc5bf39120ae27ef46a8b13f85bf44ea19c7d5e': MediaCodec: Add a method for getting the component name
| * | MediaCodec: Add a method for getting the component nameMartin Storsjo2012-11-191-0/+4
| |/ | | | | | | | | | | | | | | | | If the codec was chosen based on mime type, the caller does not know what component actually was chosen. This allows getting essential information (such as supported color formats, for a video encoder) for this component. Change-Id: Ie471f40f8104b37d27ced3dba5a54facc6504b1b
* | Add GSM 6.10 decoderMarco Nelissen2012-11-161-0/+1
|/ | | | | | | | Supports Microsoft frame packing only, since that's what the sample file used. b/6620569 Change-Id: Ia89d95bcbf0f8dcbaad42148a7401728f60e079d
* Make video encoders' bitrate mode (constant, variable, ...) configurableAndreas Huber2012-11-011-1/+4
| | | | | | | | through the desired output format. Configure the video encoder to use constant bitrate mode for WFD. Change-Id: Id7bd619598153c13448a9c5acd69d80f8a01f333 related-to-bug: 7459597
* Better power savings with wifi display code.Andreas Huber2012-10-031-16/+26
| | | | | | | | No more polling the encoder for work to do, the encoder instead notifies if there's activity. Change-Id: Ia707211b4f5c5a6e6b70d750233d204a2d6bb778 related-to-bug: 7248248
* ALooper::GetNowUs() now relies on systemTime instead of gettimeofday.Andreas Huber2012-10-012-10/+0
| | | | | Change-Id: Ia31eb0940b02581327a8bf51af6df135f9ab6de3 related-to-bug: 7266324
* Optionally have SurfaceMediaSource return absolute timestampsAndreas Huber2012-10-011-0/+5
| | | | | | | based on systemTime(). Change-Id: I2eff15dd149a4b737d6e7473d1907cf0c80b6b38 related-to-bug: 7266706
* Remove double negatives from SurfaceMediaSourceAndreas Huber2012-10-011-2/+2
| | | | | | | ensure mStarted actually reflects the state of SurfaceMediaSource Change-Id: I92557896993ad8da23fe6940e997402ad63b8cbc related-to-bug: 7258622
* Various improvements to a cleaner shutdown of the wifi display connection.Andreas Huber2012-09-281-0/+6
| | | | | Change-Id: Id029a89939e53c2bd1d20e572d3975ec2795c239 related-to-bug: 7247918
* Merge "Allow OMXCodec to specify an output color format for OMX decoder ↵James Dong2012-09-141-1/+1
|\ | | | | | | component" into jb-mr1-dev
| * Allow OMXCodec to specify an output color format for OMX decoder componentJames Dong2012-09-101-1/+1
| | | | | | | | | | | | | | | | The output color format is specified via the meta argument in OMXCodec::Create() o related-to-bug: 7122195 Change-Id: Id3247686b893af25cc190685201e53ad34b0399c
* | Support IDR requests in wifi display, MediaCodec and ACodec.Andreas Huber2012-09-132-0/+8
| | | | | | | | Change-Id: I596cf8dd61b63465437f78413186fad2be287244
* | Throttle SurfaceMediaSource.Andreas Huber2012-09-131-0/+6
|/ | | | Change-Id: I214ce60f8d94df9c07041577e34ed1ad5e199fdb
* Fragmented mp4 extractorMarco Nelissen2012-09-051-0/+2
| | | | | | | Still experimental. Set property "media.stagefright.use-fragmp4" to true to enable. Change-Id: I210b9c5b5164b5c5eefc31309845ee881ac7db8e
* Configure the SurfaceMediaSource to emit the same number of buffersAndreas Huber2012-09-041-0/+3
| | | | | | | as the video encoder allocates for its input. Do this before connecting the bufferqueue through surface flinger. Change-Id: Ibc81db1359afe2d88fdb75b23fadae65c8a6f7cc
* Prepare for transmitting audio through AudioSource.Andreas Huber2012-08-301-5/+14
| | | | | | | | 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
* Initial checkin of support for acting as a wifi display sourceAndreas Huber2012-08-291-0/+11
| | | | Change-Id: I08f17efa0c7d007e17408feb7d4fbef0a19f531a