use of android.filterfw.core.MutableFrameFormat in project android_frameworks_base by crdroidandroid.
the class PrimitiveFormat method createFormat.
private static MutableFrameFormat createFormat(int baseType, int target) {
MutableFrameFormat result = new MutableFrameFormat(baseType, target);
result.setDimensionCount(1);
return result;
}
use of android.filterfw.core.MutableFrameFormat in project android_frameworks_base by crdroidandroid.
the class FrameManager method duplicateFrameToTarget.
public Frame duplicateFrameToTarget(Frame frame, int newTarget) {
MutableFrameFormat newFormat = frame.getFormat().mutableCopy();
newFormat.setTarget(newTarget);
Frame result = newFrame(newFormat);
result.setDataFromFrame(frame);
return result;
}
use of android.filterfw.core.MutableFrameFormat in project android_frameworks_base by AOSPA.
the class FrameManager method duplicateFrameToTarget.
public Frame duplicateFrameToTarget(Frame frame, int newTarget) {
MutableFrameFormat newFormat = frame.getFormat().mutableCopy();
newFormat.setTarget(newTarget);
Frame result = newFrame(newFormat);
result.setDataFromFrame(frame);
return result;
}
use of android.filterfw.core.MutableFrameFormat in project android_frameworks_base by AOSPA.
the class ToRGBFilter method setupPorts.
@Override
public void setupPorts() {
MutableFrameFormat mask = new MutableFrameFormat(FrameFormat.TYPE_BYTE, FrameFormat.TARGET_NATIVE);
mask.setDimensionCount(2);
addMaskedInputPort("image", mask);
addOutputBasedOnInput("image", "image");
}
use of android.filterfw.core.MutableFrameFormat in project android_frameworks_base by AOSPA.
the class ToRGBFilter method getConvertedFormat.
public FrameFormat getConvertedFormat(FrameFormat format) {
MutableFrameFormat result = format.mutableCopy();
result.setMetaValue(ImageFormat.COLORSPACE_KEY, ImageFormat.COLORSPACE_RGB);
result.setBytesPerSample(3);
return result;
}
Aggregations