History log of /frameworks/base/media/jni/android_media_ImageReader.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4fb442617cdea52b11ed622b5cf0490337928ec1 23-Jan-2015 Lajos Molnar <lajos@google.com> ImageReader: add support for compatible flexYUV buffers

Bug: 17906609
Change-Id: Ia21aff632b9a92f4e391b3917a7774af46fd81a0
/frameworks/base/media/jni/android_media_ImageReader.cpp
f4a637d0be2e028d1e78c8bf90ad17ec3f84b5f3 21-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode.

Bug: 16030677
Change-Id: Ida04e04f41983b9126609522dd12064a7bf9645f
/frameworks/base/media/jni/android_media_ImageReader.cpp
2c34b5e8136eac0332dac294cb06a6a98eac1c14 04-Nov-2014 Dan Stoza <stoza@google.com> Add a BufferItem parameter to onFrameAvailable

Passes the BufferItem for the queued buffer to the onFrameAvailable
callback so the consumer can track the BufferQueue's contents.

Bug: 18111837
Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
/frameworks/base/media/jni/android_media_ImageReader.cpp
0c79884076405bc36c0fb4f1bce27f883b97d64c 30-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Use valid dimensions for RGBA8888 gralloc buffers.

Bug: 17675571

- All of the mistakes were made. Unmake them.

Change-Id: I23ff7a553347d4d9588c728219f4bf0604ba2e38
/frameworks/base/media/jni/android_media_ImageReader.cpp
31798f33184fd59dd3d3cc55e6373d9f91d220b6 26-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix native ImageReader test segfaults.

Bug: 17675571

- Check for JPEG footer in correct location from ImageReader
when using the RGBA override.
- Add additional error checks in produceFrame method.
- Avoid allocating extra space for jpeg buffers due to
incorrect width calculations.

Change-Id: I926f37e8b3e5c4bad24c16dcee48d52adb1706dd
/frameworks/base/media/jni/android_media_ImageReader.cpp
0fd198ad89ec9c600bb1761b10d938146c28bb98 24-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Hide JPEGs in RGBA gralloc buffers.

Bug: 17379185

- WAR for SW Write usage flags being unavailable on
certain devices for JPEG (blob) format buffers.

Change-Id: Ic7299785b743f35dd47264b9d1cea01a88b71d91
/frameworks/base/media/jni/android_media_ImageReader.cpp
4c4064fa66f551f49b7e1017b1ebe65a05f9df21 25-Jul-2014 Zhijun He <zhijunhe@google.com> ImageFormat: update raw10 spec to allow row padding

Change-Id: Id191b92037487f16538d111fc6171d3be9a02acf
/frameworks/base/media/jni/android_media_ImageReader.cpp
d1988a98ed69db8c33b77b5c085ab91d22ef3bbc 01-Jul-2014 Zhijun He <zhijunhe@google.com> Add RAW10 image format

- Add RAW10 format in ImageFormat
- Add ImageReader support for this format

Bug: 15989722
Change-Id: Ic38ae596d5a472e990389d1fa221a82bea97b715
/frameworks/base/media/jni/android_media_ImageReader.cpp
5096defdaa4716ce81047a855d6e5ce3f8263600 24-Jun-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Write the JPEG size as part of the blob transport

This fixes StillCaptureTest#testStillPreviewCombination

Change-Id: Ifbaae7828b2efcc1a768c77ce50718abd7f691d0
/frameworks/base/media/jni/android_media_ImageReader.cpp
91b9aabc9fa0c058ecc4a8b3f486540c28fe1cc0 20-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Switch to using YV12 for ImageReader.

Bug: 15116722

- Also fixes incorrect frame number for single captures.

Change-Id: I8552124d18ad176e6724f089a1e3a3f49a5eeec4
/frameworks/base/media/jni/android_media_ImageReader.cpp
feb50af361e4305a25758966b6b5df2738c00259 10-May-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add HAL1 compatibility shim skeleton.

This adds basic support for running the Camera2 API on a device running
a camera HAL version lower than CAMERA_MODULE_API_VERSION_2_0.

This CL includes support for:
- N-way preview output streams
- N-way jpeg output streams
- CameraDevice emulation at the binder interface
- Basic camera metadata querying in the CameraManager

Bug: 15117269
Bug: 15116722

Change-Id: I8322955034c91f34bb348d4b28c2b774dbef38f6
/frameworks/base/media/jni/android_media_ImageReader.cpp
a5e1528f80f0472701dcbfc42d2f45ffc4a16466 24-Apr-2014 Zhijun He <zhijunhe@google.com> ImageReader: remove RAW_SENSOR format translation

Really not needed to have this, as both native and managed values are matched.

Change-Id: I175cbafbf88a80781a478c7aa87471fb977625b6
/frameworks/base/media/jni/android_media_ImageReader.cpp
977ad8d26e701ed3902247852986d474e0e07f4d 09-Apr-2014 Zhijun He <zhijunhe@google.com> ImageReader: Fix raw buffer size calculation issue

Stride should be used to calculate the size rather than width.

Change-Id: I01051fdf4dd2978d56b9998d8bcd542c50458f56
/frameworks/base/media/jni/android_media_ImageReader.cpp
5b3c7c1e575a7fe1bc765e5d14690e1bfd971ffb 13-Mar-2014 Dan Stoza <stoza@google.com> Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: Ic661d515a94fd5fad39f2d07f0cdf25337fae67c
/frameworks/base/media/jni/android_media_ImageReader.cpp
334778981dc01b5f8f4e137eb3f78745e214cf4d 27-Jan-2014 lina.x.pi <lina.x.pi@sonymobile.com> Release locked buffer when it fails to acquire graphics buffer

The JNI buffer in ImageReader_imageSetup is not released when
it fails to acquire graphics buffer. After all JNI buffers are
exhausted, ACQUIRE_MAX_IMAGES will be returned and leads to
error. The JNI buffer should be released when it fails to acquire
graphics buffer.

Change-Id: I3319a58ac44e36c8593b404672a685c4b589a735
/frameworks/base/media/jni/android_media_ImageReader.cpp
4eda9f5359347c11914e47f477535c9533674d32 18-Sep-2013 Zhijun He <zhijunhe@google.com> ImageReader: disable NV21 support

Bug: 10787131
Change-Id: I5ff0a67144b5ec49eabde6129423a41c9597c2b8
/frameworks/base/media/jni/android_media_ImageReader.cpp
9e6d073a999d7934aa3f22a5877c6e8e2ce15766 17-Sep-2013 Zhijun He <zhijunhe@google.com> ImageReader: fix the 0 crop rect size issue

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
/frameworks/base/media/jni/android_media_ImageReader.cpp
5cf86aa7564eff8443158644e866a420d865b1bc 16-Sep-2013 Igor Murashkin <iam@google.com> Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into klp-dev
26cb5fd5fffb2204ec12994cacb3b32639eb4d59 16-Sep-2013 Igor Murashkin <iam@google.com> Merge "media: Update ImageReader APIs" into klp-dev
cfa553369fd8ef68db751fe1052cd17fd5763965 16-Sep-2013 Zhijun He <zhijunhe@google.com> ImageReader: get correct crop size

Bug: 10752797
Change-Id: I2e56d69cde7f5ca669a366646b876861b277a239
/frameworks/base/media/jni/android_media_ImageReader.cpp
e3351f1942bfe86682389b278e7ff128a72ea671 13-Sep-2013 Igor Murashkin <iam@google.com> media: Update ImageReader to remove MaxImagesAcquiredException

* acquiring images now throws IllegalStateException instead of
MaxImagesAcquiredException

Bug: 10691447
Change-Id: I7ce68f990fb96703705b9181012a28633fea0b7a
/frameworks/base/media/jni/android_media_ImageReader.cpp
5e712064dfe48992f8f732208fa4fc13f3455b30 30-Aug-2013 Igor Murashkin <iam@google.com> media: Update ImageReader APIs

Bug: 10461757
Change-Id: Ic04e4c41965e3d417b29004f3f08e0cd56b8f4cb
/frameworks/base/media/jni/android_media_ImageReader.cpp
37682135da2fd90e7bc6a89a418862d1f4ca15fd 11-Sep-2013 Zhijun He <zhijunhe@google.com> ImageReader: Skip size check for BLOB format

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
/frameworks/base/media/jni/android_media_ImageReader.cpp
d901c033756b01f5bd3c697fb3802331e9b45ad0 28-Aug-2013 Igor Murashkin <iam@google.com> media: ImageReader throws OutOfResourcesException when out of buffers

Bug: 10507939
Change-Id: I34c66485695ad6141388be85903cbecb9ebaa5ab
/frameworks/base/media/jni/android_media_ImageReader.cpp
af753a2dfc66c92bfcac64b77c7a4d89d9434ad8 23-Aug-2013 Zhijun He <zhijunhe@google.com> ImageReader: Fix API doc table misalignment issue

Also cleanup unused macro in ImageReader.

Bug: 10360518
Change-Id: I2332703c92df771a6339ff92069e92d50a6c5cd5
/frameworks/base/media/jni/android_media_ImageReader.cpp
dd0643202de80cc4ced37d1844e722c8a5e89154 15-Aug-2013 Igor Murashkin <iam@google.com> media: Fix ImageReader only using maxImages=1 no matter what

- 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
/frameworks/base/media/jni/android_media_ImageReader.cpp
f724c277d3362dbc8099fcbf8674609a424cd2ee 07-Aug-2013 Jeff Brown <jeffbrown@google.com> Add more virtual display tests.

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
/frameworks/base/media/jni/android_media_ImageReader.cpp
52a9a10b6b8c7b7a9f97777541841b94d4fd9754 02-Aug-2013 Mathias Agopian <mathias@google.com> Clearly separate consumer and producer interfaces

Bug: 9265647
Change-Id: Ic68e91788d0a05251e1d2fb9f9d4de403c7099bf
/frameworks/base/media/jni/android_media_ImageReader.cpp
445b5f460fd083a0f267669db450d2e2fa049f08 06-Aug-2013 Jeff Brown <jeffbrown@google.com> Merge "Minor style cleanups."
708e3595031fa15f4ac26c5675a53c1ed495b895 05-Aug-2013 Zhijun He <zhijunhe@google.com> ImageReader: Add RGB format support.

Bug: 10155122
Change-Id: Id53d6ec815488e73bde6ca62b42c92d16bc813c9
/frameworks/base/media/jni/android_media_ImageReader.cpp
ef961215599b1c154130d4e64e46a401d6bfef67 06-Aug-2013 Jeff Brown <jeffbrown@google.com> Minor style cleanups.

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
/frameworks/base/media/jni/android_media_ImageReader.cpp
7f4d3147d1851d2f0c544e45390c139bda9fd9aa 23-Jul-2013 Zhijun He <zhijunhe@google.com> camera2: Implement CameraDevice#waitUntilIdle

Also cleanup some logging/comments.

Change-Id: Id1a4dd853519802a2b74b8d2172095ba388329e6
/frameworks/base/media/jni/android_media_ImageReader.cpp
e32632682ca9207bd247ca27012cf670b5c23f54 17-Jul-2013 Mathias Agopian <mathias@google.com> update to new Consumer APIs

Change-Id: I8649f3add40e0aeeeb0396b98e2cb93312e8e990
/frameworks/base/media/jni/android_media_ImageReader.cpp
b550929b7a4b0d5f9645a7a1ebf287d3f13cf1af 13-Jul-2013 Mathias Agopian <mathias@google.com> always pass the BufferQueue explicitely to consumers

Change-Id: I32e380979a3f4c6b1dfb440cc5b5c3d30d7607db
/frameworks/base/media/jni/android_media_ImageReader.cpp
534046d2b12fd13776ad782b982649cb0bea9b79 01-Jul-2013 Zhijun He <zhijunhe@google.com> ImageReader: get correct jpeg size.

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
/frameworks/base/media/jni/android_media_ImageReader.cpp
212e78df9eb3bfff069de01aa7820cf4201c5f82 07-Jun-2013 Zhijun He <zhijunhe@google.com> ImageReader: Implementation of ImageReader and Image APIs

Used for direct image data access from producer like camera or video decoder.

Bug: 9254294
Change-Id: I1853af03f4487ac3585d86202f6140854471fa89
/frameworks/base/media/jni/android_media_ImageReader.cpp