Lines Matching defs:surface

287  surface} by calling {@link #setInputSurface}.
602 surface. You have three choices:
649 passed from the input surface to the codec. Calling {@link #dequeueInputBuffer
653 Call {@link #signalEndOfInputStream} to signal end-of-stream. The input surface will stop
805 <tr><td>&#9099;</td><td>Restricted to surface input mode</td></tr>
806 <tr><td>&#9094;</td><td>Restricted to surface output mode</td></tr>
1842 * @param surface Specify a surface on which to render the output of this
1843 * decoder. Pass {@code null} as {@code surface} if the
1852 * @throws IllegalArgumentException if the surface has been released (or is invalid),
1862 @Nullable Surface surface, @Nullable MediaCrypto crypto,
1864 configure(format, surface, crypto, null, flags);
1873 * @param surface Specify a surface on which to render the output of this
1874 * decoder. Pass {@code null} as {@code surface} if the
1882 * @throws IllegalArgumentException if the surface has been released (or is invalid),
1891 @Nullable MediaFormat format, @Nullable Surface surface,
1893 configure(format, surface, null,
1898 @Nullable MediaFormat format, @Nullable Surface surface,
1933 mHasSurface = surface != null;
1935 native_configure(keys, values, surface, crypto, descramblerBinder, flags);
1939 * Dynamically sets the output surface of a codec.
1941 * This can only be used if the codec was configured with an output surface. The
1942 * new output surface should have a compatible usage type to the original output surface.
1945 * @param surface the output surface to use. It must not be {@code null}.
1947 * surface in the current state.
1948 * @throws IllegalArgumentException if the new surface is not of a suitable type for the codec.
1950 public void setOutputSurface(@NonNull Surface surface) {
1952 throw new IllegalStateException("codec was not configured for an output surface");
1954 native_setSurface(surface);
1957 private native void native_setSurface(@NonNull Surface surface);
1960 * Create a persistent input surface that can be used with codecs that normally have an input
1961 * surface, such as video encoders. A persistent input can be reused by subsequent
1967 * @return an input surface that can be used with {@link #setInputSurface}.
1988 * Configures the codec (e.g. encoder) to use a persistent input surface in place of input
1991 * @param surface a persistent input surface created by {@link #createPersistentInputSurface}
1993 * surface.
1994 * @throws IllegalArgumentException if the surface was not created by
1997 public void setInputSurface(@NonNull Surface surface) {
1998 if (!(surface instanceof PersistentSurface)) {
2001 native_setInputSurface(surface);
2006 private static native final void native_releasePersistentInputSurface(@NonNull Surface surface);
2007 private native final void native_setInputSurface(@NonNull Surface surface);
2013 @Nullable Surface surface, @Nullable MediaCrypto crypto,
2093 * automatically if it is configured with an input surface. Otherwise, it
2301 * Similarly, since frame timestamps can be used by the destination surface for rendering
2313 * surface, this will be propagated as the {@link
2641 * or to render it on the output surface. If you configured the codec with an
2642 * output surface, setting {@code render} to {@code true} will first send the buffer
2643 * to that output surface. The surface will release the buffer back to the codec once
2653 * @param render If a valid surface was specified when configuring the codec,
2654 * passing true renders this output buffer to the surface.
2671 * If you are done with a buffer, use this call to update its surface timestamp
2672 * and return it to the codec to render it on the output surface. If you
2673 * have not specified an output surface when configuring this video codec,
2676 * The timestamp may have special meaning depending on the destination surface.
2978 * <em>Do not use this method if using an input surface.</em>
3009 * <em>Do not use this method if using an output surface.</em>
3037 * input buffer, or if the codec is configured for surface input.
3095 * output buffer, or the codec is configured with an output surface.
3123 * was configured with an output surface.
3139 * The content is scaled to the surface dimensions
3145 * surface area is used, content may be cropped.
3164 * If a surface has been specified in a previous call to {@link #configure}
3215 * in "surface-input" mode, as the client code has no control over the
3265 * even if an input surface was created.
3320 * Listener to be called when an output frame has rendered on the output surface
3327 * Called when an output frame has rendered on the output surface.
3348 * Registers a callback to be invoked when an output frame is rendered on the output surface.
3351 * Executing state for codecs that render buffers to the output surface.