Searched refs:surfaces (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSurfaceUtils.java130 * Verify that that the surfaces are valid for high-speed recording mode,
133 * @param surfaces the surfaces to verify as valid in terms of size and format
137 public static void checkConstrainedHighSpeedSurfaces(Collection<Surface> surfaces, argument
139 if (surfaces == null || surfaces.size() == 0 || surfaces.size() > 2) {
158 for (Surface surface : surfaces) {
182 if (surfaces.size() == 2) {
184 Iterator<Surface> iterator = surfaces
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DGLThreadManager.java34 * GLThreadManager handles the thread used for rendering into the configured output surfaces.
62 public final Collection<Pair<Surface, Size>> surfaces; field in class:GLThreadManager.ConfigureHolder
66 Size>> surfaces, CaptureCollector collector) {
68 this.surfaces = surfaces;
89 mTextureRenderer.configureSurfaces(configure.surfaces);
185 * Queue a new call to draw into the surfaces specified in the next available preview
204 * Configure the GL renderer for the given set of output surfaces, and block until
207 * @param surfaces a collection of pairs of {@link android.view.Surface}s and their
211 public void setConfigurationAndWait(Collection<Pair<Surface, Size>> surfaces, argument
65 ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, Size>> surfaces, CaptureCollector collector) argument
[all...]
H A DSurfaceTextureRenderer.java457 private void configureEGLOutputSurfaces(Collection<EGLSurfaceHolder> surfaces) { argument
458 if (surfaces == null || surfaces.size() == 0) {
464 for (EGLSurfaceHolder holder : surfaces) {
471 private void configureEGLPbufferSurfaces(Collection<EGLSurfaceHolder> surfaces) { argument
472 if (surfaces == null || surfaces.size() == 0) {
477 for (EGLSurfaceHolder holder : surfaces) {
650 * @param surfaces a {@link Collection} of surfaces
652 configureSurfaces(Collection<Pair<Surface, Size>> surfaces) argument
[all...]
H A DLegacyCameraDevice.java273 * @return {@code true} if the surfaces uses {@link ImageFormat#YUV_420_888} or a compatible
314 * Configure the device with a set of output surfaces.
320 * @param outputs a list of surfaces to set. LegacyCameraDevice will take ownership of this
336 Log.e(TAG, "configureOutputs - invalid output surfaces are not allowed");
427 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
444 " device with valid surfaces before submitting requests");
447 " device with valid surfaces before submitting requests");
719 static List<Long> getSurfaceIds(SparseArray<Surface> surfaces) argument
721 if (surfaces == null) {
722 throw new NullPointerException("Null argument surfaces");
737 getSurfaceIds(Collection<Surface> surfaces) argument
[all...]
H A DRequestThreadManager.java119 public final Collection<Pair<Surface, Size>> surfaces; field in class:RequestThreadManager.ConfigureHolder
122 Size>> surfaces) {
124 this.surfaces = surfaces;
321 "Preview capture called with no preview surfaces configured.");
333 String outputsStr = outputs == null ? "null" : (outputs.size() + " surfaces");
404 // LegacyCameraDevice is the producer of JPEG output surfaces
405 // so LegacyCameraDevice needs to connect to the surfaces.
523 private void resetJpegSurfaceFormats(Collection<Surface> surfaces) { argument
524 if (!USE_BLOB_FORMAT_OVERRIDE || surfaces
121 ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, Size>> surfaces) argument
[all...]
H A DCameraDeviceUserShim.java516 SparseArray<Surface> surfaces = null;
524 surfaces = mSurfaces.clone();
528 mLegacyDevice.configureOutputs(surfaces);
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3SharedOutputStream.cpp24 const std::vector<sp<Surface>>& surfaces,
32 mSurfaces(surfaces) {
74 status_t Camera3SharedOutputStream::setConsumers(const std::vector<sp<Surface>>& surfaces) { argument
76 if (surfaces.size() == 0) {
77 ALOGE("%s: it's illegal to set zero consumer surfaces!", __FUNCTION__);
82 for (auto& surface : surfaces) {
23 Camera3SharedOutputStream(int id, const std::vector<sp<Surface>>& surfaces, uint32_t width, uint32_t height, int format, uint32_t consumerUsage, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
H A DCamera3SharedOutputStream.h32 * surfaces. A valid stream set id needs to be set to support buffer
35 Camera3SharedOutputStream(int id, const std::vector<sp<Surface>>& surfaces,
H A DCamera3StreamSplitter.cpp41 status_t Camera3StreamSplitter::connect(const std::vector<sp<Surface> >& surfaces, argument
63 // Add output surfaces. This has to be before creating internal buffer queue
65 for (size_t i = 0; i < surfaces.size(); i++) {
66 if (surfaces[i] == nullptr) {
70 res = addOutputLocked(surfaces[i]);
H A DCamera3StreamSplitter.h53 // with output surfaces.
54 status_t connect(const std::vector<sp<Surface> >& surfaces,
86 // Disconnect the buffer queue from output surfaces.
184 // Request surfaces for a particular buffer. And when the buffer becomes
185 // available from the input queue, the registered surfaces are used to decide
H A DCamera3Device.cpp1965 const std::vector<size_t>& surfaces = iter->second; local
1966 for (const auto& surface : surfaces) {
1973 newRequest->mOutputSurfaces[i] = surfaces;
/frameworks/base/core/java/android/hardware/camera2/params/
H A DOutputConfiguration.java120 * Maximum number of surfaces supported by one {@link OutputConfiguration}.
122 * <p>The combined number of surfaces added by the constructor and
134 * surface group is a group of output surfaces that are not intended to receive camera output
136 * by all the surfaces from the same surface group, therefore may reduce the overall memory
278 * Enable multiple surfaces sharing the same OutputConfiguration
285 * <p>Two surfaces are compatible in the below cases:</p>
292 * able to use the same buffer layout for both surfaces. The only way to discover if this is the
304 * <p>Up to 2 surfaces can be shared for an OutputConfiguration. The supported surfaces for
343 * details of compatible surfaces
[all...]
/frameworks/native/libs/vr/libvrflinger/
H A Dhardware_composer.cpp454 std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces) {
456 surfaces.size());
457 const bool display_idle = surfaces.size() == 0;
460 pending_surfaces_ = std::move(surfaces);
463 // Set idle state based on whether there are any surfaces to handle.
467 // Request control of the display based on whether there are any surfaces to
854 std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces;
860 surfaces = std::move(pending_surfaces_);
870 layer_index < std::min(surfaces.size(), kMaxHardwareLayers);
875 layers_[layer_index].Setup(surfaces[layer_inde
453 SetDisplaySurfaces( std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces) argument
[all...]
H A Dhardware_composer.h283 // Sets the display surfaces to compose the hardware layer stack.
285 std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces);
326 // 1. Idle: no work to do (no visible surfaces).
359 // Reconfigures the layer stack if the display surfaces changed since the last
389 // The surfaces displayed by the post thread. Used exclusively by the post
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java188 List<Surface> surfaces = new ArrayList<Surface>();
189 surfaces.add(mSurface);
194 mCamera.createCaptureSession(surfaces, blkSession, mHandler);
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp321 ALOGV("%s: ending configure (%d input stream, %zu output surfaces)",
395 std::vector<sp<IBinder>> surfaces; local
404 surfaces.push_back(mStreamMap.keyAt(i));
416 if (surfaces.empty() && dIndex == NAME_NOT_FOUND) {
436 for (auto& surface : surfaces) {
486 std::vector<sp<Surface>> surfaces; local
527 surfaces.push_back(surface);
531 err = mDevice->createStream(surfaces, deferredConsumer, streamInfo.width,
873 //At the native side, there isn't a way to check whether 2 surfaces come from the same
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraDeviceImpl.java382 * @param outputs a list of one or more surfaces, or {@code null} to unconfigure
732 final List<Surface> surfaces = mConfiguredOutputs.valueAt(i).getSurfaces();
733 if (surfaces.contains(surface)) {
912 // Make sure that there all requests have at least 1 surface; all surfaces are non-null
2038 final List<Surface> surfaces = output.getSurfaces();
2039 for (Surface surface : surfaces) {
2076 // Because 1 stream id could map to multiple surfaces, we need to specify both
2078 List<Surface> surfaces =
2080 for (Surface surface : surfaces) {

Completed in 1238 milliseconds