History log of /frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
75d66023c8107bd803779139aece7f0cf4c7f88d 21-Feb-2017 Shuzhen Wang <shuzhenwang@google.com> Camera: Allow addSurface due to mismatched dataSpace for PRIVATE format

For surface with PRIVATE format, camera device may override the dataSpace.
So do not enforce matching dataSpaces for such surfaces within the same
OutputConfiguration.

Test: Camera CTS
Bug: 33777818
Change-Id: I1374511946c04ab158fa16ed6d596d747d31f385
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
476bea84959ca6f2a6ef304ab040cb16b4ac97c1 09-Feb-2017 Shuzhen Wang <shuzhenwang@google.com> Revert "Camera2: Temporarily remove surface size 0 check"

This reverts commit bdabb0f582ddc4d9fe3df63030bdbe8e0a74348e.
Bug: 35027811
Test: Use camera from hangouts
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
bdabb0f582ddc4d9fe3df63030bdbe8e0a74348e 06-Feb-2017 Shuzhen Wang <shuzhenwang@google.com> Camera2: Temporarily remove surface size 0 check

Temporarily remove surface size 0 check for deferred surface.

Test: Manual test of camera use case from Hangouts
Bug: 35027811
Change-Id: If1ecb1b322b9608dafb5784d5d9fb83e3517b8e5
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
f02913c4ea495d984cbfcdaa5ab793f8c2710910 01-Feb-2017 Shuzhen Wang <shuzhenwang@google.com> Camera: Fix the document on createCaptureSession error

When createCaptureSessionByOutputConfigurations fails, it doesn't throw
an exception. Instead, onConfigureFailed will be called.

Test: Compiles
Bug: 33777818
Change-Id: Ia0e139265bee0eda2118f903a6b46358a14c672c
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
21d63b2836e42133dd8856f260e0854018667780 28-Jan-2017 Shuzhen Wang <shuzhenwang@google.com> Camera2: Do not throw exception if addSurface size doesn't match

During addSurface, the surface size may not match the preconfigured
size, because the surface could be asynchronously changing its size.
Only log a warning in this case, and depend on native implementation
of createCaptureSession or finalizeOutputConfigurations to detect the
size mismatch.

This also reverts commit e56e606f82c94ab9adce1e6b69881653c225cf20,
and enforce the surfaceSize for deferred OutputConfiguration is not
0.

Test: Camera CTS
Bug: 34737377
Bug: 34697112
Change-Id: I4b66166a9a2739a09a16d635d2599a9bcf5c036b
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
e56e606f82c94ab9adce1e6b69881653c225cf20 25-Jan-2017 Shuzhen Wang <shuzhenwang@google.com> Camera2: Handle (0, 0) size for deferred OutputConfiguration

We need to handle below sequence of events:
1. OutputConfiguration(Size(0, 0), klass)
2. addSurface(surface)
3. createCameraCaptureSession

In this case, allow the addSurface() to succeed.

Test: camera works in keep/hangouts/contacts
Bug: 34697112
Change-Id: I726c60cce9a11c69b050aad47f4ed4a0a7a0870e
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
4bd7abe72a647ceb2175a4fe66aa640815c116f8 11-Jan-2017 Shuzhen Wang <shuzhenwang@google.com> Camera2: Combine API for deferred surface and shared surface

- Unhide API to enable sharing surfaces via OutputConfiguration.
- Combine the APIs for deferred surface and shared surfaces so that
same functions can be used for both use cases.
1. setDeferredSurface becomes addSurface.
2. finishDeferredConfiguration becomes finalizeOutputConfiguration.
- Better documentation on shared surface use cases.

Test: Camera CTS, and preview/video/capture with GCA
Bug: 33777818
Change-Id: I528b221492e07888a2da96658aaf8e7b9c4d1640
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
9c663d4415a077230924f40eaf291f51ff37e8b0 29-Oct-2016 Shuzhen Wang <shuzhenwang@google.com> Camera2: Add secondary surface to OutputConfiguration

Test: camera cts, and manually test camera preview/capture/recording.
Bug: 33777818
Change-Id: I853f2f48640e4b1ad20a468c152f7e9b536f7a3b
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
1a645803083b353bd41d51595dee1fa0a80eeab3 07-Sep-2016 Eino-Ville Talvala <etalvala@google.com> Camera2: Unhide deferred surface configuration APIs

To speed up camera startup, allow setting up a camera capture session
before all the output Surfaces are available (but their eventual sizes
and types are known). Also allow images to be captured to the
non-deferred outputs even before the deferred outputs are available.

This allows parallelizing of camera startup and UI layout.

Test: android.hardware.camera2.cts.SurfaceViewPreviewTest#testDeferrredSurfaces
passes
Bug: 31319716
Change-Id: I657efc39bb8cc2d4bf201e5d70807a227ef82dde
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
c8b181e95d17c00f9fe4a8338c4cdd0eeac3a0dc 30-May-2016 Zhijun He <zhijunhe@google.com> Camera2: add deferred output config support

Allow surfaces to be deferred during session creation. Once the surfaces are ready,
the application can finish the deferred output configuration to be able to submit
requests with these surface targets.

Bug: 28323863
Change-Id: Id6634c3ef2ecc84422a88f63de0a19a0cb496e96
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
fa5e2a156da99322a5e847ab2373c03784060119 11-Apr-2016 Eino-Ville Talvala <etalvala@google.com> Camera/Surface: Update OutputConfiguration API

- Rename "surface set ID" to "surface group ID"
- Remove setSurfaceSetId
- Use constructor overloads to set surface group ID, make
OutputConfiguration immutable
- Add Surface.getConsumerDescriptor to make it possible to verify
if two Surfaces have the same backing consumer
- Cache initial surface generation ID in OutputConfiguration so that
changes in a Surface's internals will label it is as a
new output
- Add sample use case for surface group IDs

Bug: 27950763
Bug: 28076469
Change-Id: I13251d1dd3d26a978ffbedc519966524e93bc61c
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
5d2d7788f1759b0f3d2c057af0b3ea61b0354fee 18-Dec-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: Switch to auto-gen C++ binder interfaces

- Move camera AIDL files to frameworks/av
- Update makefiles to point to new AIDL locations
- Adjust camera2 implementation to match modifications to AIDL needed
for native AIDL auto-generation
- Move Surface.aidl to frameworks/native to allow use in
native AIDL. Use android::view::Surface in Surface JNI to
serialize Surface objects to ensure parceling compatibility.
- Adjust service binder tests to new interface

Bug: 25091611
Change-Id: I85b817374b34a4540fa145328dbe4bbf7f746baf
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
445b316755923565c3b5b8ebb642db10de5d0ab7 19-Jan-2016 Zhijun He <zhijunhe@google.com> Camera2: add surface set ID

Add surface set ID to OutputConfiguration class,and make this class public.

Bug: 25088440
Change-Id: Ib5fd74aa2c7bc06aed70771765767d6fcfefa98f
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
828adbba24c430b09c48092ce05730a54e50756a 18-Aug-2015 Chien-Yu Chen <cychen@google.com> Camera2: Handle surface size change

When comparing if two OutputConfigurations are equal, also check
the width, height, format, dataspace when the output configurations
were created. With this, CameraDeviceImpl knows that the surface has
changed sizes and will reconfigure the stream.

Bug: 12250682
Change-Id: Ie5965d242b2017b87a76d26cdc2f6b700082e002
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
61f15366127752258aea05398c40182c5b174a29 03-Apr-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: add equals/hashCode to OutputConfiguration

Bug: 20057354
Change-Id: Ib9c2e26ac4c52c47ccab86a7f25363b164d36eb6
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
bfbbee756663aeeb38706bb1bd4841dcd050f91b 12-Mar-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: update createStream API to add new rotation field

Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java
49ea6ae76d78ff8d179c0957d4bc55f08cb98d0f 10-Mar-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: add @hide API for setting camera rotation

Only adding API header. Haven't filled in implementation.

Change-Id: I99a1c84d194dd20562845a0f566dd10ddb3041b7
/frameworks/base/core/java/android/hardware/camera2/params/OutputConfiguration.java