use of androidx.media.filterfw.FrameType in project android_frameworks_base by crdroidandroid.
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.FrameType in project android_frameworks_base by crdroidandroid.
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();
}