summaryrefslogtreecommitdiff
path: root/media/java/android/media/MediaCodec.java
AgeCommit message (Collapse)Author
2015-05-01media: hook up MediaCodec.setSurfaceLajos Molnar
Bug: 11990461 Change-Id: Id2dc952594c21c6be68e4ffd039c7f74006a2374
2015-04-24Merge "ImageWriter: fix and cleanup the closed Image Handling"Zhijun He
2015-04-24ImageWriter: fix and cleanup the closed Image HandlingZhijun He
Attempting to access an Image after it is closed will result in an ISE. Also fixed some minor doc issues. Bug: 19872785 Change-Id: I91f037b2b2f243fcbd905d5a646b505bc9c10638
2015-04-23Merge "media: surface parity for MediaCodec & Recorder"Lajos Molnar
2015-04-23media: surface parity for MediaCodec & RecorderLajos Molnar
allow setting output surface dynamically on MediaCodec allow creating persistent input surface for MediaCodec and MediaRecorder Bug: 19127604 Bug: 19489395 Change-Id: I68d95ce012574f1cc161556fd7d016be104e5076
2015-04-23media: add OnFrameRenderedListener to MediaCodecLajos Molnar
Also allow setting the handler for async callbacks. Bug: 20503131 Change-Id: If9d24bce75c253a1c7f9c5d41ff5f6447b4622a1
2015-04-22media: add annotations to low-level Media* classesLajos Molnar
Also remove explicit runtime exception added to MediaExtractor.setDataSource, as other methods don't explicitly declare it. Includes MediaCodec, Crypto, Drm, Extractor, Muxer, Sync. Bug: 19756615 Bug: 19967103 Bug: 16906375 Change-Id: If511d85af7f61808fbe63fbdc6e04a3d2e7e262c
2015-04-15media: add reason to CodecException ctor.Ronghua Wu
Bug: 19620911 Change-Id: I3e9d1824c438253e9a7c303478f3cb75d0bb5c75
2015-04-15Merge "media: Add reason to CodecException."Ronghua Wu
2015-04-14media: Add reason to CodecException.Ronghua Wu
Bug: 19620911 Change-Id: Ic7244a2369a04bfd69e703415a8c9aacdcbf3c57
2015-04-14Revert "media: add new MediaCodec Callback onCodecReleased."Ronghua Wu
This reverts commit 4c302e8b141cd490733130e86e44fa4f216de457. Change-Id: I563ba6419cf61968bf356c5b096445dde55abac2
2015-04-09media: add new MediaCodec Callback onCodecReleased.Ronghua Wu
Bug: 19620911 Change-Id: I2912c570678861daf1516757dda2160ffddcfa8d
2015-03-24media: add undocumented exceptions to MediaCodec api.Ronghua Wu
Change-Id: Ibfbb136134573aa3ee696a7d853678f4444bbbfd
2015-02-28Remove unused imports in frameworks/base.John Spurlock
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2014-11-24media: add support for 160-byte image info in MediaCodecLajos Molnar
Some 64-bit compilers now create 160-byte image structures. Bug: 18513091 Change-Id: I355714affaac0fde0b03578d13ab8f373dd5aa81
2014-10-27MediaCodec/Image: handle null cropRect correctlyLajos Molnar
- allow Media.Image.setCropRect(null) to unset cropRect - use full image if cropRect is null in MediaCodec$Image Bug: 18124320 Change-Id: I7abb6175402a1fe913e16c0a682fabee79c55741
2014-09-24MediaCodec: revalidate cached queued input buffers if queue fails (2)Lajos Molnar
Handle the other ways queueBuffer can fail. Revalidate the buffers properly, e.g. without clearing them. Bug: 17630446 Change-Id: I22e0e89c2835eb6a461046a8cf3be03635088302
2014-09-24MediaCodec: revalidate cached queued input buffers if queue failsLajos Molnar
For legacy behavior (using getInputBuffers) input buffer needs to be made valid if queue fails. Otherwise, it becomes unusable, and the buffer still belongs to the user. In the new model, buffers obtained by getIn/OutputBuffer will become invalid even if queue/release fails. We do not do the same logic for output buffers, as these should not be accessed even if releaseBuffer fails (which really should not happen anyway unless codec is in bad state). Bug: 17630446 Change-Id: Ica72a168d8aea97a0ee3f3ef49c60d0ca5a9fa06
2014-09-23Implement API review feedback.Jeff Tinker
bug: 17607941 Change-Id: I136b5d7662a1c51395aa3cd545be40714cd4ac6b
2014-09-15Merge "Document retry behavior for MediaCodec.CryptoException" into lmp-devJeff Tinker
2014-09-15Document retry behavior for MediaCodec.CryptoExceptionJeff Tinker
bug: 17469693 Change-Id: I8cc204938b28451c638be017ebb499f525fcff50
2014-09-10MediaCodec.Image: use image.setCrop() in constructorLajos Molnar
This avoids the ReadOnlyBuffer exception for readonly images. Bug: 17059255 Change-Id: I83de487e8bf60ba09b1cba1c0106191dd741c217
2014-09-09MediaCodec/Drm: move from getErrorCode to getDiagnosticInfoLajos Molnar
Bug: 17059255 Change-Id: I9f5f0be61e94795d90ad29e94b3a1a6e6aedfb1d
2014-09-09Merge "Add support for max-res decode" into lmp-devJeff Tinker
2014-09-05Merge "MediaCodecInfo: allow getting info for secure codec" into lmp-devLajos Molnar
2014-08-30Merge "Tunneled Video Playback: Fixed missing AudioHwSync for provided Audio ↵Rachad
session ID" into lmp-dev
2014-08-28Tunneled Video Playback:Rachad
Fixed missing AudioHwSync for provided Audio session ID Bug: 17112525 Change-Id: I89509ada88462d4db7fc37007e0ffaea153da5cd
2014-08-29Add support for max-res decodeJeff Tinker
bug: 16034599 Change-Id: I12124aef03518600a27de45bae24eef9c9735be5
2014-08-28MediaCodecInfo: allow getting info for secure codecLajos Molnar
3 minor fixes: - return correct codec's info from MediaCodec.getCodecInfo() - treat required features supported - make feature spec optional in isFormatSupported Bug: 17154761 Change-Id: Ie98af35ec16caf48a76358fe178f9cc243abad4f
2014-08-27media: update MediaCodec/Info/List/Format APIs based on review commentsLajos Molnar
Bug: 17059255 Change-Id: Ifbba2a0799e7db5ae48190ba6b1e4ba13fffa167
2014-08-20MediaCodec: expand documentation on flush/EOS handling and adaptive playbackLajos Molnar
Bug: 11216198 Change-Id: I929954ec381511b9b97e53a91ff6fdff75ca1382
2014-08-09Added Tunneled video playback support to MediaCodecRachad
Bug:16132368 Change-Id: I8c28cd9fbf3ca2d441f5ffa6892fbc5f70184908
2014-07-30MediaCodec: clean up image/buffer cachingLajos Molnar
- cachedBuffers will be null in async mode - track dequeued buffers in a map - free dequeued buffers & bytebuffers Bug: 14297827 Bug: 11990118 Change-Id: I9f8255921de25d05bf2c11fdaeda45cc185b9dd7
2014-07-25Implement MediaCodec.getImage methodsLajos Molnar
Bug: 10706245 Change-Id: Icbac5538a27ffdb53d974e2e1f8dc5afe02fb391
2014-07-15MediaCodec: add reset() + documentation fixesLajos Molnar
Bug: 12034929 Change-Id: I38f89a2e4c41e0ceb3fdae4522b9c04f6c43a4f1
2014-07-15MediaExtractor: set buffer offset/limit in readSampleDataLajos Molnar
also fix setting offset/limit in MediaCodec's getBuffer. Bug: 13008204 Change-Id: Iadf0f006cfccc2546971cc5384058e1a2721780b
2014-07-11MediaCodec: change onError cb to send CodecExceptionChong Zhang
Bug: 11990118 Change-Id: I8b6112f126c2f473f64e2aad6ffcfbc3f1d6e64a
2014-07-12MediaCodec: add new buffer and format APIsLajos Molnar
Bug: 14562236 Bug: 14297827 Bug: 13008204 Bug: 10706245 Bug: 10672559 Bug: 9175531 Change-Id: Ia94d34f625e532619a9ed344eb27e0d26647982f
2014-07-11MediaCodec: update documentation on buffer metadata.Lajos Molnar
- Deprecated BUFFER_FLAG_SYNC_FRAME (as it actually marks key frames). - Clarified that BUFFER_FLAG_KEY_FRAME is used for encoded output buffers. - Clarified that presentationTimeUs is not an actual render timestamp (as opposed to releaseOutputBuffer's render timestamp). Bug: 12006531 Change-Id: Ia27b9f606a9d7eef9c0c2900cd864a4421c7cf31
2014-07-11MediaCodec async callbacksChong Zhang
Bug: 11990118 Change-Id: I210d4302e1fd7e1a48d2228fd3f4f20c16b18a75
2014-07-10Add MediaCodec.CodecExceptionAndy Hung
Also clarify MediaCodec exception handling in documentation. Bug: 12034929 Change-Id: Ie82a15cc6ee4b772191edaf128823487cad00d0a
2014-06-12Don't send unneeded messages.Marco Nelissen
This is significantly faster, and doesn't caused messages to pile up on a looper that might not be processing them. Change-Id: I2d3536d1f12c71a214c181523dcd60810de3029d
2014-05-28DO NOT MERGE: media.MediaCodec: hide NotificationCallback listenerLajos Molnar
Bug: 15091403 Change-Id: I1fd178b6872997055c2ee0b7edfa0264a7d6718b
2014-05-28media.MediaCodec: document and fix-up setNotificationCallbackLajos Molnar
change from interface to abstrace class Bug: 15091403 Change-Id: I5093672e36681670934a5ebaa49484441af5bcdd
2014-05-14Add HEVC decoder support ot MediaCodecRachad
bug: 14571712 Change-Id: Ic65e1ffd7583f7286728332686dbb92090b5a413
2014-05-09Added MediaCodec.releaseOutputBuffer() method with render timestampLajos Molnar
Bug: 11784827 Change-Id: I67097c8e69b40ef3baa436f0e7731d28c696735c
2014-02-14Update createInputSurface() docAndy McFadden
The Surface returned by MediaCodec#createInputSurface() is configured for HW_VIDEO_ENCODER by the consumer. Accessing the Surface through Surface#lockCanvas() sets SW_READ_OFTEN | SW_WRITE_OFTEN, and some devices choke on the combination. Bug 11418094 Change-Id: Ic182802386146d19b1bdecdb894c5130c563a3ed
2014-01-27Fix invocation of notification callback in case the callback is modifiedAndreas Huber
from a separate thread. Change-Id: I741c1f2f9c796ec977a742a69cedcca10c5218ad
2014-01-27API that allows usage of MediaCodec APIs without polling.Andreas Huber
Change-Id: Iebccdd3aec74a2cfa9ad0bf16c0c6006a3b72999 related-to-bug: 11990118
2014-01-21Merge "Add "throws IOException" to MediaCodec factory methods"Andy Hung