summaryrefslogtreecommitdiffstats
path: root/media/jni
Commit message (Collapse)AuthorAgeFilesLines
* Fix hangMarco Nelissen2013-09-251-1/+1
| | | | | | b/10855561 Change-Id: I29b046b835ce0ca3644e5c2e8f9bca5c0b380d4b
* Add audio level monitoring capabilities in Visualizer effectJean-Michel Trivi2013-09-231-0/+72
| | | | | | | | | | | | Extend the visualizer audio effect with the capability to query peak and RMS values for the currently playing audio. Values are expressed in mB and are retrieved as an array of int values in the native layer, and written directly as object fields for the JNI. Bug 8413913 Change-Id: I808075a18e61f85c566544a2bdaae10e5c4a644b
* ImageReader: disable NV21 supportZhijun He2013-09-181-3/+8
| | | | | Bug: 10787131 Change-Id: I5ff0a67144b5ec49eabde6129423a41c9597c2b8
* ImageReader: fix the 0 crop rect size issueZhijun He2013-09-161-1/+1
| | | | | | | | | Rect isValid actually include the zero size case, which we don't want to include in our case. This causes camera ImageReader test case fails at buffer size sanity check. Bug: 9802344 Change-Id: I561f5a049c6117c613df1e1b2789c43af9a19628
* Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into ↵Igor Murashkin2013-09-161-18/+17
|\ | | | | | | klp-dev
| * media: Update ImageReader to remove MaxImagesAcquiredExceptionIgor Murashkin2013-09-131-18/+17
| | | | | | | | | | | | | | | | * acquiring images now throws IllegalStateException instead of MaxImagesAcquiredException Bug: 10691447 Change-Id: I7ce68f990fb96703705b9181012a28633fea0b7a
* | Merge "media: Update ImageReader APIs" into klp-devIgor Murashkin2013-09-161-4/+4
|\ \ | |/
| * media: Update ImageReader APIsIgor Murashkin2013-09-121-4/+4
| | | | | | | | | | Bug: 10461757 Change-Id: Ic04e4c41965e3d417b29004f3f08e0cd56b8f4cb
* | ImageReader: get correct crop sizeZhijun He2013-09-161-5/+3
|/ | | | | Bug: 10752797 Change-Id: I2e56d69cde7f5ca669a366646b876861b277a239
* Merge "Remove dependency on JNIHelp header side effects." into klp-devRuben Brunk2013-09-1211-0/+23
|\
| * Remove dependency on JNIHelp header side effects.Ruben Brunk2013-09-1011-0/+23
| | | | | | | | | | Bug: 10680559 Change-Id: I47870d6c48906e0a420c52b7bc5945ffe29c68a2
* | ImageReader: Skip size check for BLOB formatZhijun He2013-09-111-7/+14
| | | | | | | | | | | | | | | | HAL_PIXEL_FORMAT_BLOB is for JPEG capture, the buffer width/height by definition shouldn't be the same as the image width/height. Bug: 10360518 Change-Id: I32146a0e8e15439bb8fe199403db4ff37d1ab1af
* | MediaMuxer: Add setLocation APIZhijun He2013-09-101-0/+15
|/ | | | | | | | This API could be used for camera recording when MediaMuxer is used to write output media file. Bug: 10594784 Change-Id: Ide2d6e1d87b246100a5def49bfb8646dc984a512
* media: ImageReader throws OutOfResourcesException when out of buffersIgor Murashkin2013-08-271-3/+6
| | | | | Bug: 10507939 Change-Id: I34c66485695ad6141388be85903cbecb9ebaa5ab
* ImageReader: Fix API doc table misalignment issueZhijun He2013-08-231-1/+0
| | | | | | | Also cleanup unused macro in ImageReader. Bug: 10360518 Change-Id: I2332703c92df771a6339ff92069e92d50a6c5cd5
* Merge "Add ability to test supported content types to MediaDrm" into klp-devJeff Tinker2013-08-222-6/+11
|\
| * Add ability to test supported content types to MediaDrmJeff Tinker2013-08-212-6/+11
| | | | | | | | | | bug: 10244066 Change-Id: Ic96c2e23f36809faf1c88ede500f4bc2bad4142a
* | Merge "Fix JNI method called with exception pending" into klp-devJeff Tinker2013-08-161-4/+12
|\ \ | |/
| * Fix JNI method called with exception pendingJeff Tinker2013-08-161-4/+12
| | | | | | | | | | bug: 10313912 Change-Id: I8390905334f2e37f210adced52c31e7a431d4f55
* | media: Fix ImageReader only using maxImages=1 no matter whatIgor Murashkin2013-08-161-2/+17
|/ | | | | | | | | - No longer return null when some bad error happens - Throws OutOfResourcesException when images need to be closed - Throws IllegalStateException when an unknown internal error happens Bug: 10333400 Change-Id: Ia53a5dd33f9ce53abd036e080e6fcc4ded9b251d
* Merge "Expose MediaCodec.setParameters API to" into klp-devAndreas Huber2013-08-142-0/+30
|\
| * Expose MediaCodec.setParameters API toAndreas Huber2013-08-122-0/+30
| | | | | | | | | | | | | | | | - change video target bitrate on the fly - request sync frames - temporarily suspend feeding input buffers to the encoder Change-Id: If5cf1162b2eeb28ac08288ecfa9f0e9823dd972e
* | MediaCodecInfo.java: Added isFeatureSupported method to CodecCapabilitiesLajos Molnar2013-08-131-1/+7
|/ | | | | | | | | | | | | | | Added isFeatureSupported method to CodecCapabilities, so that applications can query whether codecs support various features. For now added one video-decoder feature: FEATURE_AdaptivePlayback Media playback applications can query it to see if the codec supports seamless resolution changes during decoding. Change-Id: I56b2cf1429f39f9b9e0243a990c95e7a64dd7ff7 Signed-off-by: Lajos Molnar <lajos@google.com> Related-to-bug: 7093648
* Manage jclass objects (and most jobjects) in jni code using ScopedLocalRefAndreas Huber2013-08-122-76/+101
| | | | | | | | | | | | for safer refcounting. Previously jclass objects were not DeleteLocalRef'ed at all, leading us to exhaust the local ref pool quickly in certain circumstances. This change also makes sure we properly serialize int64_t entries when converting from AMessage to HashMap and boosts thread priority for java-instantiated MediaCodecs slightly from NORMAL to FOREGROUND. Change-Id: I4ebdd8a5ca6b3442698c9f86fcc31af8c199aaf5
* Add more virtual display tests.Jeff Brown2013-08-071-2/+3
| | | | | | | | We can't test everything in CTS because some features require system permissions. So this is another copy of the CTS test with more stuff that we can build with the system cert. Change-Id: Ied5a456a0810d38d307b6dfbad0f770cb480b4ee
* Merge "Define error codes for MediaCodec.CryptoException"Jeff Tinker2013-08-072-3/+47
|\
| * Define error codes for MediaCodec.CryptoExceptionJeff Tinker2013-08-032-3/+47
| | | | | | | | | | | | | | | | | | | | | | Define specific failure cases so apps have the information they need to deal with these conditions. Also adds a new ResourceBusyException to MediaDrm Change-Id: Iaecf269d58108f28179974b05671bf29b9fe4b7d related-to-bug: 10157154 related-to-bug: 9695816
* | Clearly separate consumer and producer interfacesMathias Agopian2013-08-061-5/+19
| | | | | | | | | | Bug: 9265647 Change-Id: Ic68e91788d0a05251e1d2fb9f9d4de403c7099bf
* | Merge "Minor style cleanups."Jeff Brown2013-08-061-40/+49
|\ \
| * | Minor style cleanups.Jeff Brown2013-08-051-40/+49
| |/ | | | | | | | | | | | | | | | | | | | | | | A few changes to demonstrate a slightly cleaner way to write JNI code in the framework especially when multiple types are involved. We use this pattern in many other places outside of the media stack. Added more detail to the UnsupportedOperationException that occurs when buffer formats don't match. Change-Id: Ic894dc1bd71b387f1be6ea1798fa59e533e9574f
* | ImageReader: Add RGB format support.Zhijun He2013-08-061-0/+48
|/ | | | | Bug: 10155122 Change-Id: Id53d6ec815488e73bde6ca62b42c92d16bc813c9
* camera2: Implement CameraDevice#waitUntilIdleZhijun He2013-07-231-2/+2
| | | | | | Also cleanup some logging/comments. Change-Id: Id1a4dd853519802a2b74b8d2172095ba388329e6
* update to new Consumer APIsMathias Agopian2013-07-161-1/+1
| | | | Change-Id: I8649f3add40e0aeeeb0396b98e2cb93312e8e990
* always pass the BufferQueue explicitely to consumersMathias Agopian2013-07-121-1/+2
| | | | Change-Id: I32e380979a3f4c6b1dfb440cc5b5c3d30d7607db
* ImageReader: get correct jpeg size.Zhijun He2013-07-012-3/+38
| | | | | | | | | | | the jpeg size was set to the buffer width, which is the max jpeg buffer size. the right size can be obtained by parsing the camera3_jpeg_blob data sent by hal. Also correct the buffer size check when crop is not set. Bug: 9254294 Change-Id: Ic73de47ef97efa4eb356a399c1576715e2eacbfd
* ImageReader: Implementation of ImageReader and Image APIsZhijun He2013-06-263-0/+754
| | | | | | | Used for direct image data access from producer like camera or video decoder. Bug: 9254294 Change-Id: I1853af03f4487ac3585d86202f6140854471fa89
* Remove unused MediaPlayer methodsMarco Nelissen2013-06-131-44/+0
| | | | Change-Id: Id63fdde7d0e4f096d3bb9eb4da5e0f37eb9dea21
* am c41a0eff: am be22605d: Merge "Listen for HTTP proxy changes and propagate ↵Andreas Huber2013-06-031-1/+63
|\ | | | | | | | | | | | | the information to the media" into jb-mr2-dev * commit 'c41a0eff938f825ef235b92efa7a31c3b7f8bfb4': Listen for HTTP proxy changes and propagate the information to the media
| * Listen for HTTP proxy changes and propagate the information to the mediaAndreas Huber2013-05-311-1/+63
| | | | | | | | | | | | | | | | framework. related-to-bug: 8873723 Change-Id: I2a34343f8006fa1b1448a1f047458fd58fe14fda (cherry picked from commit bfe9154142428aa8abecaf943dfeffc55f411ea7)
* | am eaa9ce70: am 606ab470: Merge "Improve exception error messages to help ↵Jeff Tinker2013-05-221-32/+70
|\ \ | |/ | | | | | | | | | | diagnose app errors" into jb-mr2-dev * commit 'eaa9ce7064ad4978d5acaafd4e797b5186ff03de': Improve exception error messages to help diagnose app errors
| * Merge "Improve exception error messages to help diagnose app errors" into ↵Jeff Tinker2013-05-221-32/+70
| |\ | | | | | | | | | jb-mr2-dev
| | * Improve exception error messages to help diagnose app errorsJeff Tinker2013-05-211-32/+70
| | | | | | | | | | | | | | | | | | bug: 9072051 Change-Id: I45057951d1a62b1b4a996e85f01601239e1b7161
* | | am 09d6ad37: am 2161b7cb: Merge "Fix invalid keyType translation in ↵Jeff Tinker2013-05-221-5/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | MediaDrm.getKeyRequest" into jb-mr2-dev * commit '09d6ad37f790f1e135c4dbe71109b33ae29a94cc': Fix invalid keyType translation in MediaDrm.getKeyRequest
| * | Fix invalid keyType translation in MediaDrm.getKeyRequestJeff Tinker2013-05-211-5/+29
| |/ | | | | | | | | bug: 9070897 Change-Id: Ib9b4174e08b1c828d0204e0ab65bc3d7c2efcedf
* | am 9ba564c7: am 48f2b548: Merge "MediaDrm API: Add two exceptions to handle ↵Jeff Tinker2013-05-011-7/+8
|\ \ | |/ | | | | | | | | | | error path scenarios" into jb-mr2-dev * commit '9ba564c7e205c4b278be61eec773a90a94451251': MediaDrm API: Add two exceptions to handle error path scenarios
| * Merge "MediaDrm API: Add two exceptions to handle error path scenarios" into ↵Jeff Tinker2013-05-011-7/+8
| |\ | | | | | | | | | jb-mr2-dev
| | * MediaDrm API: Add two exceptions to handle error path scenariosJeff Tinker2013-04-301-7/+8
| | | | | | | | | | | | | | | bug: 8725707 Change-Id: Ia00c495ac591cc2993f4d11ad3480b59833d009e
* | | am 94264d52: am 2f4cc8ea: Merge "Fix a crash case" into jb-mr2-devMike J. Chen2013-05-011-5/+6
|\ \ \ | |/ / | | | | | | | | | * commit '94264d522efcc21ac749a6444fbea90916f575c9': Fix a crash case
| * | Fix a crash caseMike J. Chen2013-04-261-5/+6
| |/ | | | | | | | | | | | | | | | | | | | | There's a runtime check for a bad argument, but it is after the usage of the bad argument. Move the usage after the check. Bug 8687716 Change-Id: Iddfa457951bac69b436a430cda21b5d7a563107b Signed-off-by: Mike J. Chen <mjchen@google.com>
* | am a393c2a2: am c884a08e: Merge "Improve error handling for DRM errors ↵Jeff Tinker2013-04-181-0/+53
|\ \ | |/ | | | | | | | | | | reported by plugins" into jb-mr2-dev * commit 'a393c2a2f7a6a3153b82b1e43bfffa1a040d56b5': Improve error handling for DRM errors reported by plugins