/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameType.java | 83 public final class FrameType { class 112 private static SimpleCache<String, FrameType> mTypeCache = 113 new SimpleCache<String, FrameType>(64); 119 public static FrameType any() { in any() 120 return FrameType.fetchType(ELEMENT_DONTCARE, -1, ACCESS_UNKNOWN); in any() 128 public static FrameType single() { in single() 129 return FrameType.fetchType(null, 0); in single() 137 public static FrameType single(Class<?> clazz) { in single() 138 return FrameType.fetchType(clazz, 0); in single() 145 public static FrameType array() { in array() [all …]
|
D | ResizeFilter.java | 31 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 32 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 35 .addInputPort("outputWidth", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature() 36 .addInputPort("outputHeight", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature() 37 .addInputPort("useMipmaps", Signature.PORT_OPTIONAL, FrameType.single(boolean.class)) in getSignature()
|
D | ScaleFilter.java | 20 import androidx.media.filterfw.FrameType; 35 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 36 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 39 .addInputPort("scale", Signature.PORT_OPTIONAL, FrameType.single(float.class)) in getSignature() 40 .addInputPort("useMipmaps", Signature.PORT_OPTIONAL, FrameType.single(boolean.class)) in getSignature()
|
D | TransformUtils.java | 21 import androidx.media.filterfw.FrameType; 46 FrameType imageType = FrameType.image2D(FrameType.ELEMENT_RGBA8888, in makeMipMappedFrame() 47 FrameType.READ_GPU | FrameType.WRITE_GPU); in makeMipMappedFrame() 57 FrameType imageType = FrameType.image2D(FrameType.ELEMENT_RGBA8888, in makeTempFrame() 58 FrameType.READ_GPU | FrameType.WRITE_GPU); in makeTempFrame()
|
D | RotateFilter.java | 21 import androidx.media.filterfw.FrameType; 41 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 42 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 45 .addInputPort("rotateAngle", Signature.PORT_REQUIRED, FrameType.single(float.class)) in getSignature() 46 .addInputPort("sourceRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)) in getSignature()
|
D | FrameQueue.java | 23 private FrameType mReadType = null; 24 private FrameType mWriteType = null; 30 public void setWriteType(FrameType type) { in setWriteType() 34 public void setReadType(FrameType type) { in setReadType() 43 FrameType type = buildType(); in build() 56 private FrameType buildType() { in buildType() 57 FrameType result = FrameType.merge(mWriteType, mReadType); in buildType() 59 result = FrameType.merge(result, queue.mType); in buildType() 139 private FrameType mType; 142 public FrameType getType() { in getType() [all …]
|
D | BrightnessFilter.java | 21 import androidx.media.filterfw.FrameType; 55 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 56 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 59 .addInputPort("brightness", Signature.PORT_OPTIONAL, FrameType.single(float.class)) in getSignature()
|
D | SobelFilter.java | 22 import androidx.media.filterfw.FrameType; 89 private FrameType mImageType; 98 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 99 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 112 mImageType = FrameType.image2D( in onPrepare() 113 FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU | FrameType.WRITE_GPU); in onPrepare()
|
D | NewChromaHistogramFilter.java | 24 import androidx.media.filterfw.FrameType; 55 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU); in getSignature() 56 FrameType dataOut = FrameType.buffer2D(FrameType.ELEMENT_FLOAT32); in getSignature() 60 .addInputPort("huebins", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature() 61 .addInputPort("saturationbins", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature() 63 FrameType.single(int.class)) in getSignature() 64 .addInputPort("valuethreshold", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
|
D | CropFilter.java | 26 import androidx.media.filterfw.FrameType; 49 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 50 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 53 .addInputPort("cropRect", Signature.PORT_REQUIRED, FrameType.single(Quad.class)) in getSignature() 54 .addInputPort("outputWidth", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature() 55 .addInputPort("outputHeight", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature() 56 .addInputPort("useMipmaps", Signature.PORT_OPTIONAL, FrameType.single(boolean.class)) in getSignature()
|
D | ToGrayValuesFilter.java | 23 import androidx.media.filterfw.FrameType; 58 private FrameType mImageInType; 66 mImageInType = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 67 FrameType imageOut = FrameType.buffer2D(FrameType.ELEMENT_INT8); in getSignature()
|
D | GraphOutputTarget.java | 7 import androidx.media.filterfw.FrameType; 14 private FrameType mType = FrameType.any(); 21 public void setType(FrameType type) { in setType() 25 public FrameType getType() { in getType()
|
D | StatsFilter.java | 27 import androidx.media.filterfw.FrameType; 63 FrameType inputFrame = FrameType.buffer2D(FrameType.ELEMENT_INT8); in getSignature() 64 FrameType floatT = FrameType.single(float.class); in getSignature() 67 .addInputPort("cropRect", Signature.PORT_OPTIONAL, FrameType.single(Quad.class)) in getSignature()
|
D | ThroughputFilter.java | 39 FrameType throughputType = FrameType.single(Throughput.class); in getSignature() 41 .addInputPort("frame", Signature.PORT_REQUIRED, FrameType.any()) in getSignature() 43 .addOutputPort("frame", Signature.PORT_REQUIRED, FrameType.any()) in getSignature() 44 .addInputPort("period", Signature.PORT_OPTIONAL, FrameType.single(int.class)) in getSignature()
|
D | BackingStore.java | 54 private final FrameType mType; 74 public BackingStore(FrameType type, int[] dimensions, FrameManager frameManager) { in BackingStore() 80 public FrameType getFrameType() { in getFrameType() 339 public abstract void allocate(FrameType frameType); in allocate() 404 protected void assertImageCompatible(FrameType type) { in assertImageCompatible() 405 if (type.getElementId() != FrameType.ELEMENT_RGBA8888) { in assertImageCompatible() 419 public void allocate(FrameType frameType) { in allocate() 492 public void allocate(FrameType frameType) { in allocate() 586 public void allocate(FrameType frameType) { in allocate() 699 public void allocate(FrameType frameType) { in allocate() [all …]
|
D | ColorfulnessFilter.java | 26 import androidx.media.filterfw.FrameType; 47 FrameType dataIn = FrameType.buffer2D(FrameType.ELEMENT_FLOAT32); in getSignature() 50 .addOutputPort("score", Signature.PORT_REQUIRED, FrameType.single(float.class)) in getSignature()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | ImageGoodnessFilterTest.java | 20 import androidx.media.filterfw.FrameType; 41 FrameValue sharpnessFrame = createFrame(FrameType.single(), new int[] { 1 }). in testAwfulPicture() 44 FrameValue oEFrame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testAwfulPicture() 46 FrameValue uEFrame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testAwfulPicture() 48 FrameValue colorFrame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testAwfulPicture() 50 FrameValue contrastFrame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testAwfulPicture() 52 FrameValue motionFrame = createFrame(FrameType.array(), new int[] { 1 }).asFrameValue(); in testAwfulPicture() 69 FrameValue sharpnessFrame = createFrame(FrameType.single(), new int[] { 1 }). in testBadPicture() 72 FrameValue oEFrame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testBadPicture() 74 FrameValue uEFrame = createFrame(FrameType.single(), new int[] { 1 }).asFrameValue(); in testBadPicture() [all …]
|
D | IfElseFilterTest.java | 27 import androidx.media.filterfw.FrameType; 52 createFrame(FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU), in testIfElseFilterTrue() 55 createFrame(FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU), in testIfElseFilterTrue() 68 FrameValue conditionFrame = createFrame(FrameType.single(boolean.class), new int[] {1}). in testIfElseFilterTrue() 83 createFrame(FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU), in testIfElseFilterFalse() 86 createFrame(FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU), in testIfElseFilterFalse() 100 FrameValue conditionFrame = createFrame(FrameType.single(boolean.class), new int[] {1}). in testIfElseFilterFalse()
|
D | AvgBrightnessFilterTest.java | 27 import androidx.media.filterfw.FrameType; 44 createFrame(FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU), in testBrightnessFilter()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | IfElseFilter.java | 23 import androidx.media.filterfw.FrameType; 41 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 42 FrameType videoIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 43 FrameType imageOut = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.WRITE_GPU); in getSignature() 47 .addInputPort("condition", Signature.PORT_REQUIRED, FrameType.single(boolean.class)) in getSignature()
|
D | AvgBrightnessFilter.java | 23 import androidx.media.filterfw.FrameType; 42 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU); in getSignature() 43 FrameType floatT = FrameType.single(float.class); in getSignature()
|
D | ContrastRatioFilter.java | 23 import androidx.media.filterfw.FrameType; 42 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_CPU); in getSignature() 43 FrameType floatT = FrameType.single(float.class); in getSignature()
|
D | ExposureFilter.java | 23 import androidx.media.filterfw.FrameType; 33 private FrameType mImageType; 44 FrameType imageIn = FrameType.image2D(FrameType.ELEMENT_RGBA8888, FrameType.READ_GPU); in getSignature() 45 FrameType floatT = FrameType.single(float.class); in getSignature()
|
D | FloatArrayToSizeFilter.java | 22 import androidx.media.filterfw.FrameType; 44 FrameType intT = FrameType.single(int.class); in getSignature() 45 FrameType floatType = FrameType.array(float.class); in getSignature()
|
D | CSVWriterFilter.java | 28 import androidx.media.filterfw.FrameType; 50 FrameType floatT = FrameType.single(float.class); in getSignature() 51 FrameType stringT = FrameType.single(String.class); in getSignature() 52 FrameType floatArrayT = FrameType.array(float.class); in getSignature()
|