Search in sources :

Example 11 with Signature

use of androidx.media.filterfw.Signature in project android_frameworks_base by DirtyUnicorns.

the class BrightnessFilter 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("brightness", Signature.PORT_OPTIONAL, FrameType.single(float.class)).addOutputPort("image", Signature.PORT_REQUIRED, imageOut).disallowOtherPorts();
}
Also used : FrameType(androidx.media.filterfw.FrameType) Signature(androidx.media.filterfw.Signature)

Example 12 with Signature

use of androidx.media.filterfw.Signature in project android_frameworks_base by DirtyUnicorns.

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();
}
Also used : FrameType(androidx.media.filterfw.FrameType) Signature(androidx.media.filterfw.Signature)

Example 13 with Signature

use of androidx.media.filterfw.Signature in project android_frameworks_base by DirtyUnicorns.

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();
}
Also used : Quad(androidx.media.filterfw.geometry.Quad) FrameType(androidx.media.filterfw.FrameType) Signature(androidx.media.filterfw.Signature)

Example 14 with Signature

use of androidx.media.filterfw.Signature in project android_frameworks_base by DirtyUnicorns.

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();
}
Also used : FrameType(androidx.media.filterfw.FrameType) Signature(androidx.media.filterfw.Signature)

Example 15 with Signature

use of androidx.media.filterfw.Signature in project android_frameworks_base by DirtyUnicorns.

the class CSVWriterFilter method getSignature.

@Override
public Signature getSignature() {
    FrameType floatT = FrameType.single(float.class);
    FrameType stringT = FrameType.single(String.class);
    FrameType floatArrayT = FrameType.array(float.class);
    return new Signature().addInputPort("sharpness", Signature.PORT_REQUIRED, floatT).addInputPort("overExposure", Signature.PORT_REQUIRED, floatT).addInputPort("underExposure", Signature.PORT_REQUIRED, floatT).addInputPort("colorfulness", Signature.PORT_REQUIRED, floatT).addInputPort("contrastRating", Signature.PORT_REQUIRED, floatT).addInputPort("brightness", Signature.PORT_REQUIRED, floatT).addInputPort("motionValues", Signature.PORT_REQUIRED, floatArrayT).addInputPort("imageFileName", Signature.PORT_REQUIRED, stringT).addInputPort("csvFilePath", Signature.PORT_REQUIRED, stringT).disallowOtherPorts();
}
Also used : FrameType(androidx.media.filterfw.FrameType) Signature(androidx.media.filterfw.Signature)

Aggregations

FrameType (androidx.media.filterfw.FrameType)64 Signature (androidx.media.filterfw.Signature)64 Camera (android.hardware.Camera)4 Quad (androidx.media.filterfw.geometry.Quad)4