/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
D | PrimitiveFormat.java | 20 import android.filterfw.core.FrameFormat; 29 return createFormat(FrameFormat.TYPE_BYTE, count, target); in createByteFormat() 33 return createFormat(FrameFormat.TYPE_INT16, count, target); in createInt16Format() 37 return createFormat(FrameFormat.TYPE_INT32, count, target); in createInt32Format() 41 return createFormat(FrameFormat.TYPE_FLOAT, count, target); in createFloatFormat() 45 return createFormat(FrameFormat.TYPE_DOUBLE, count, target); in createDoubleFormat() 49 return createFormat(FrameFormat.TYPE_BYTE, target); in createByteFormat() 53 return createFormat(FrameFormat.TYPE_INT16, target); in createInt16Format() 57 return createFormat(FrameFormat.TYPE_INT32, target); in createInt32Format() 61 return createFormat(FrameFormat.TYPE_FLOAT, target); in createFloatFormat() [all …]
|
D | ImageFormat.java | 21 import android.filterfw.core.FrameFormat; 42 MutableFrameFormat result = new MutableFrameFormat(FrameFormat.TYPE_BYTE, target); in create() 46 if (target == FrameFormat.TARGET_SIMPLE) { in create() 66 return create(FrameFormat.SIZE_UNSPECIFIED, in create() 67 FrameFormat.SIZE_UNSPECIFIED, in create() 75 return create(FrameFormat.SIZE_UNSPECIFIED, in create() 76 FrameFormat.SIZE_UNSPECIFIED, in create() 79 FrameFormat.TARGET_UNSPECIFIED); in create()
|
D | ObjectFormat.java | 20 import android.filterfw.core.FrameFormat; 31 MutableFrameFormat result = new MutableFrameFormat(FrameFormat.TYPE_OBJECT, target); in fromClass() 33 if (count != FrameFormat.SIZE_UNSPECIFIED) { in fromClass() 41 return fromClass(clazz, FrameFormat.SIZE_UNSPECIFIED, target); in fromClass() 46 ? new MutableFrameFormat(FrameFormat.TYPE_OBJECT, target) in fromObject() 47 : fromClass(object.getClass(), FrameFormat.SIZE_UNSPECIFIED, target); in fromObject() 52 ? new MutableFrameFormat(FrameFormat.TYPE_OBJECT, target) in fromObject() 59 if (target == FrameFormat.TARGET_NATIVE) { in bytesPerSampleForClass() 72 return FrameFormat.BYTES_PER_SAMPLE_UNSPECIFIED; in bytesPerSampleForClass()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | SimpleFrameManager.java | 21 import android.filterfw.core.FrameFormat; 37 public Frame newFrame(FrameFormat format) { in newFrame() 42 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { in newBoundFrame() 45 case FrameFormat.TARGET_GPU: { in newBoundFrame() 54 + FrameFormat.targetToString(format.getTarget()) + "!"); in newBoundFrame() 59 private Frame createNewFrame(FrameFormat format) { in createNewFrame() 62 case FrameFormat.TARGET_SIMPLE: in createNewFrame() 66 case FrameFormat.TARGET_NATIVE: in createNewFrame() 70 case FrameFormat.TARGET_GPU: { in createNewFrame() 77 case FrameFormat.TARGET_VERTEXBUFFER: { in createNewFrame() [all …]
|
D | SimpleFrame.java | 21 import android.filterfw.core.FrameFormat; 35 SimpleFrame(FrameFormat format, FrameManager frameManager) { in SimpleFrame() 42 FrameFormat format = ObjectFormat.fromObject(object, FrameFormat.TARGET_SIMPLE); in wrapObject() 48 private void initWithFormat(FrameFormat format) { in initWithFormat() 52 case FrameFormat.TYPE_BYTE: in initWithFormat() 55 case FrameFormat.TYPE_INT16: in initWithFormat() 58 case FrameFormat.TYPE_INT32: in initWithFormat() 61 case FrameFormat.TYPE_FLOAT: in initWithFormat() 64 case FrameFormat.TYPE_DOUBLE: in initWithFormat() 142 FrameFormat format = getFormat(); in setGenericObjectValue()
|
D | FrameFormat.java | 28 public class FrameFormat { class 63 protected FrameFormat() { in FrameFormat() method in FrameFormat 66 public FrameFormat(int baseType, int target) { in FrameFormat() method in FrameFormat 72 public static FrameFormat unspecified() { in unspecified() 73 return new FrameFormat(TYPE_UNSPECIFIED, TARGET_UNSPECIFIED); in unspecified() 179 if (!(object instanceof FrameFormat)) { in equals() 183 FrameFormat format = (FrameFormat)object; in equals() 196 public boolean isCompatibleWith(FrameFormat specification) { in isCompatibleWith() 252 public boolean mayBeCompatibleWith(FrameFormat specification) { in mayBeCompatibleWith() 389 return FrameFormat.TARGET_NATIVE; in readTargetString() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | ToPackedGrayFilter.java | 23 import android.filterfw.core.FrameFormat; 37 private int mOWidth = FrameFormat.SIZE_UNSPECIFIED; 39 private int mOHeight = FrameFormat.SIZE_UNSPECIFIED; 66 FrameFormat.TARGET_GPU)); in setupPorts() 71 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 82 private FrameFormat convertInputFormat(FrameFormat inputFormat) { in convertInputFormat() 87 if (mOWidth == FrameFormat.SIZE_UNSPECIFIED) { in convertInputFormat() 90 if (mOHeight == FrameFormat.SIZE_UNSPECIFIED) { in convertInputFormat() 107 FrameFormat.TARGET_NATIVE); in convertInputFormat() 118 FrameFormat inputFormat = input.getFormat(); in process() [all …]
|
D | ToRGBFilter.java | 23 import android.filterfw.core.FrameFormat; 36 private FrameFormat mLastFormat = null; 44 MutableFrameFormat mask = new MutableFrameFormat(FrameFormat.TYPE_BYTE, in setupPorts() 45 FrameFormat.TARGET_NATIVE); in setupPorts() 52 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 56 public FrameFormat getConvertedFormat(FrameFormat format) { in getConvertedFormat() 63 public void createProgram(FilterContext context, FrameFormat format) { in createProgram()
|
D | ToRGBAFilter.java | 23 import android.filterfw.core.FrameFormat; 36 private FrameFormat mLastFormat = null; 44 MutableFrameFormat mask = new MutableFrameFormat(FrameFormat.TYPE_BYTE, in setupPorts() 45 FrameFormat.TARGET_NATIVE); in setupPorts() 52 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 56 public FrameFormat getConvertedFormat(FrameFormat format) { in getConvertedFormat() 63 public void createProgram(FilterContext context, FrameFormat format) { in createProgram()
|
D | CropFilter.java | 23 import android.filterfw.core.FrameFormat; 38 private FrameFormat mLastFormat = null; 74 addMaskedInputPort("box", ObjectFormat.fromClass(Quad.class, FrameFormat.TARGET_SIMPLE)); in setupPorts() 79 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 83 outputFormat.setDimensions(FrameFormat.SIZE_UNSPECIFIED, FrameFormat.SIZE_UNSPECIFIED); in getOutputFormat() 87 protected void createProgram(FilterContext context, FrameFormat format) { in createProgram() 93 case FrameFormat.TARGET_GPU: in createProgram()
|
D | BitmapOverlayFilter.java | 22 import android.filterfw.core.FrameFormat; 43 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 67 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 73 case FrameFormat.TARGET_GPU: in initProgram() 98 FrameFormat inputFormat = input.getFormat(); in process() 127 FrameFormat format = ImageFormat.create(mBitmap.getWidth(), in createBitmapFrame() 130 FrameFormat.TARGET_GPU); in createBitmapFrame()
|
D | ResizeFilter.java | 23 import android.filterfw.core.FrameFormat; 48 private FrameFormat mLastFormat = null; 64 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 68 protected void createProgram(FilterContext context, FrameFormat format) { in createProgram() 72 case FrameFormat.TARGET_NATIVE: in createProgram() 76 case FrameFormat.TARGET_GPU: in createProgram() 94 FrameFormat inputFormat = input.getFormat(); in process()
|
D | SimpleImageFilter.java | 23 import android.filterfw.core.FrameFormat; 34 protected int mCurrentTarget = FrameFormat.TARGET_UNSPECIFIED; 58 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 66 FrameFormat inputFormat = input.getFormat(); in process() 87 case FrameFormat.TARGET_NATIVE: in updateProgramWithTarget() 91 case FrameFormat.TARGET_GPU: in updateProgramWithTarget()
|
D | AutoFixFilter.java | 22 import android.filterfw.core.FrameFormat; 153 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 169 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 175 case FrameFormat.TARGET_GPU: in initProgram() 209 FrameFormat densityFormat = ImageFormat.create(densityDim, 1, in prepare() 211 FrameFormat.TARGET_GPU); in prepare() 240 FrameFormat inputFormat = input.getFormat(); in process() 297 FrameFormat shaderHistFormat = ImageFormat.create(histDims, 1, in createHistogramFrame() 299 FrameFormat.TARGET_GPU); in createHistogramFrame()
|
D | CrossProcessFilter.java | 22 import android.filterfw.core.FrameFormat; 35 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 82 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 88 case FrameFormat.TARGET_GPU: in initProgram() 105 FrameFormat inputFormat = input.getFormat(); in process()
|
D | NegativeFilter.java | 22 import android.filterfw.core.FrameFormat; 35 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 57 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 63 case FrameFormat.TARGET_GPU: in initProgram() 80 FrameFormat inputFormat = input.getFormat(); in process()
|
D | DrawOverlayFilter.java | 23 import android.filterfw.core.FrameFormat; 42 FrameFormat imageFormatMask = ImageFormat.create(ImageFormat.COLORSPACE_RGBA, in setupPorts() 43 FrameFormat.TARGET_GPU); in setupPorts() 46 addMaskedInputPort("box", ObjectFormat.fromClass(Quad.class, FrameFormat.TARGET_SIMPLE)); in setupPorts() 51 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat()
|
D | PosterizeFilter.java | 22 import android.filterfw.core.FrameFormat; 34 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 60 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 66 case FrameFormat.TARGET_GPU: in initProgram() 83 FrameFormat inputFormat = input.getFormat(); in process()
|
D | GrainFilter.java | 22 import android.filterfw.core.FrameFormat; 46 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 103 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 109 case FrameFormat.TARGET_GPU: in initProgram() 155 FrameFormat inputFormat = input.getFormat(); in process() 157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2, in process() 160 FrameFormat.TARGET_GPU); in process()
|
D | SepiaFilter.java | 22 import android.filterfw.core.FrameFormat; 34 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 58 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 64 case FrameFormat.TARGET_GPU: in initProgram() 81 FrameFormat inputFormat = input.getFormat(); in process()
|
D | RedEyeFilter.java | 22 import android.filterfw.core.FrameFormat; 59 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 91 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 97 case FrameFormat.TARGET_GPU: in initProgram() 114 FrameFormat inputFormat = input.getFormat(); in process() 167 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight, in createRedEyeFrame() 169 FrameFormat.TARGET_GPU); in createRedEyeFrame()
|
D | ColorTemperatureFilter.java | 22 import android.filterfw.core.FrameFormat; 37 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 70 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 76 case FrameFormat.TARGET_GPU: in initProgram() 93 FrameFormat inputFormat = input.getFormat(); in process()
|
D | ImageStitcher.java | 22 import android.filterfw.core.FrameFormat; 62 FrameFormat.TARGET_GPU)); in setupPorts() 67 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 71 private FrameFormat calcOutputFormatForInput(FrameFormat format) { in calcOutputFormatForInput() 91 FrameFormat format = input.getFormat(); in process()
|
D | TintFilter.java | 22 import android.filterfw.core.FrameFormat; 38 private int mTarget = FrameFormat.TARGET_UNSPECIFIED; 64 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 70 case FrameFormat.TARGET_GPU: in initProgram() 94 FrameFormat inputFormat = input.getFormat(); in process()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/ |
D | ThroughputFilter.java | 23 import android.filterfw.core.FrameFormat; 41 private FrameFormat mOutputFormat; 53 mOutputFormat = ObjectFormat.fromClass(Throughput.class, FrameFormat.TARGET_SIMPLE); in setupPorts() 59 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() 88 FrameFormat inputFormat = input.getFormat(); in process()
|