Lines Matching defs:surface
196 * each output {@code surface} target may or may not itself support that {@code format}.
197 * Refer to the class which provides the surface for additional documentation.</p>
204 * {@code true} iff using a {@code surface} with this {@code format} will be
281 * Determine whether or not the {@code surface} in its current state is suitable to be included
285 * of that {@code surface} are compatible. Some classes that provide the {@code surface} are
288 * {@code surface} into a state that will be compatible with the {@link CameraDevice}.</p>
290 * <p>Reasons for a {@code surface} being specifically incompatible might be:
294 * <li>The {@code surface} itself is not in a state where it can service a new producer.</p>
308 * @param surface a non-{@code null} {@link Surface} object reference
311 * @throws NullPointerException if {@code surface} was {@code null}
317 public boolean isOutputSupportedFor(Surface surface) {
318 checkNotNull(surface, "surface must not be null");
323 surfaceSize = LegacyCameraDevice.getSurfaceSize(surface);
324 surfaceFormat = LegacyCameraDevice.detectSurfaceType(surface);
326 throw new IllegalArgumentException("Abandoned surface", e);
330 boolean isFlexible = LegacyCameraDevice.isFlexibleConsumer(surface);