use of androidx.media.filterfw.Signature in project platform_frameworks_base by android.
the class ToGrayValuesFilter method getSignature.
@Override
public Signature getSignature() {
mImageInType = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU);
FrameType imageOut = FrameType.buffer2D(FrameType.ELEMENT_INT8);
return new Signature().addInputPort("image", Signature.PORT_REQUIRED, mImageInType).addOutputPort("image", Signature.PORT_REQUIRED, imageOut).disallowOtherPorts();
}
use of androidx.media.filterfw.Signature in project platform_frameworks_base by android.
the class RotateFilter method getSignature.
@Override
public Signature getSignature() {
FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU);
FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU);
return new Signature().addInputPort("image", Signature.PORT_REQUIRED, imageIn).addInputPort("rotateAngle", Signature.PORT_REQUIRED, FrameType.single(float.class)).addInputPort("sourceRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)).addOutputPort("image", Signature.PORT_REQUIRED, imageOut).disallowOtherPorts();
}
use of androidx.media.filterfw.Signature in project platform_frameworks_base by android.
the class AvgBrightnessFilter method getSignature.
@Override
public Signature getSignature() {
FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU);
FrameType floatT = FrameType.single(float.class);
return new Signature().addInputPort("image", Signature.PORT_REQUIRED, imageIn).addOutputPort("brightnessRating", Signature.PORT_OPTIONAL, floatT).disallowOtherPorts();
}
use of androidx.media.filterfw.Signature in project platform_frameworks_base by android.
the class ContrastRatioFilter method getSignature.
@Override
public Signature getSignature() {
FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU);
FrameType floatT = FrameType.single(float.class);
return new Signature().addInputPort("image", Signature.PORT_REQUIRED, imageIn).addOutputPort("contrastRatingToGoodness", Signature.PORT_REQUIRED, floatT).disallowOtherPorts();
}
use of androidx.media.filterfw.Signature in project platform_frameworks_base by android.
the class IfElseFilter method getSignature.
@Override
public Signature getSignature() {
FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU);
FrameType videoIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU);
FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU);
return new Signature().addInputPort("falseResult", Signature.PORT_REQUIRED, imageIn).addInputPort("trueResult", Signature.PORT_REQUIRED, videoIn).addInputPort("condition", Signature.PORT_REQUIRED, FrameType.single(boolean.class)).addOutputPort("output", Signature.PORT_REQUIRED, imageOut).disallowOtherPorts();
}