mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Rename INPUT_TYPE_TEXID, and cleanup.
PiperOrigin-RevId: 525761936
This commit is contained in:
parent
d7983f9485
commit
acbd340e84
2 changed files with 7 additions and 7 deletions
|
|
@ -48,22 +48,22 @@ public interface VideoFrameProcessor {
|
|||
// TODO(b/243036513): Allow effects to be replaced.
|
||||
/**
|
||||
* Specifies how the input frames are made available to the {@link VideoFrameProcessor}. One of
|
||||
* {@link #INPUT_TYPE_SURFACE}, {@link #INPUT_TYPE_BITMAP} or {@link #INPUT_TYPE_TEXID}.
|
||||
* {@link #INPUT_TYPE_SURFACE}, {@link #INPUT_TYPE_BITMAP} or {@link #INPUT_TYPE_TEXTURE_ID}.
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target(TYPE_USE)
|
||||
@IntDef({INPUT_TYPE_SURFACE, INPUT_TYPE_BITMAP, INPUT_TYPE_TEXID})
|
||||
public @interface InputType {}
|
||||
@IntDef({INPUT_TYPE_SURFACE, INPUT_TYPE_BITMAP, INPUT_TYPE_TEXTURE_ID})
|
||||
@interface InputType {}
|
||||
/** Input frames come from a {@link #getInputSurface surface}. */
|
||||
public static final int INPUT_TYPE_SURFACE = 1;
|
||||
int INPUT_TYPE_SURFACE = 1;
|
||||
/** Input frames come from a {@link Bitmap}. */
|
||||
public static final int INPUT_TYPE_BITMAP = 2;
|
||||
int INPUT_TYPE_BITMAP = 2;
|
||||
/**
|
||||
* Input frames come from a {@linkplain android.opengl.GLES10#GL_TEXTURE_2D traditional GLES
|
||||
* texture}.
|
||||
*/
|
||||
public static final int INPUT_TYPE_TEXID = 3;
|
||||
int INPUT_TYPE_TEXTURE_ID = 3;
|
||||
|
||||
/** A factory for {@link VideoFrameProcessor} instances. */
|
||||
interface Factory {
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
|||
new BitmapTextureManager(inputShaderProgram, videoFrameProcessingTaskExecutor);
|
||||
inputShaderProgram.setInputListener(inputBitmapTextureManager);
|
||||
break;
|
||||
case VideoFrameProcessor.INPUT_TYPE_TEXID: // fall through
|
||||
case VideoFrameProcessor.INPUT_TYPE_TEXTURE_ID: // fall through
|
||||
default:
|
||||
throw new VideoFrameProcessingException("Input type not supported yet");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue