Lines Matching refs:surface
111 * @param surface The destination Surface this writer produces Image data
121 public static ImageWriter newInstance(Surface surface, int maxImages) {
122 return new ImageWriter(surface, maxImages, ImageFormat.UNKNOWN);
137 * from the {@code surface} will be overridden with this format. For example,
138 * if the surface is obtained from a {@link android.graphics.SurfaceTexture}, the default
140 * with this surface and {@link ImageFormat#PRIVATE}, this ImageWriter will be able to operate
153 * @param surface The destination Surface this writer produces Image data
167 public static ImageWriter newInstance(Surface surface, int maxImages, int format) {
171 return new ImageWriter(surface, maxImages, format);
177 protected ImageWriter(Surface surface, int maxImages, int format) {
178 if (surface == null || maxImages < 1) {
179 throw new IllegalArgumentException("Illegal input argument: surface " + surface
186 format = SurfaceUtils.getSurfaceFormat(surface);
190 mNativeContext = nativeInit(new WeakReference<>(this), surface, maxImages, format);
198 Size surfSize = SurfaceUtils.getSurfaceSize(surface);
851 private synchronized native long nativeInit(Object weakSelf, Surface surface, int maxImgs,