/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | CachedFrameManager.java | 20 import android.filterfw.core.Frame; 33 private SortedMap<Integer, Frame> mAvailableFrames; 40 mAvailableFrames = new TreeMap<Integer, Frame>(); in CachedFrameManager() 44 public Frame newFrame(FrameFormat format) { in newFrame() 45 Frame result = findAvailableFrame(format, Frame.NO_BINDING, 0); in newFrame() 49 result.setTimestamp(Frame.TIMESTAMP_NOT_SET); in newFrame() 54 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { in newBoundFrame() 55 Frame result = findAvailableFrame(format, bindingType, bindingId); in newBoundFrame() 59 result.setTimestamp(Frame.TIMESTAMP_NOT_SET); in newBoundFrame() 64 public Frame retainFrame(Frame frame) { in retainFrame() [all …]
|
D | FrameManager.java | 20 import android.filterfw.core.Frame; 31 public abstract Frame newFrame(FrameFormat format); in newFrame() 33 public abstract Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId); in newBoundFrame() 35 public Frame duplicateFrame(Frame frame) { in duplicateFrame() 36 Frame result = newFrame(frame.getFormat()); in duplicateFrame() 41 public Frame duplicateFrameToTarget(Frame frame, int newTarget) { in duplicateFrameToTarget() 44 Frame result = newFrame(newFormat); in duplicateFrameToTarget() 49 public abstract Frame retainFrame(Frame frame); in retainFrame() 51 public abstract Frame releaseFrame(Frame frame); in releaseFrame()
|
D | Program.java | 20 import android.filterfw.core.Frame; 27 public abstract void process(Frame[] inputs, Frame output); in process() 29 public void process(Frame input, Frame output) { in process() 30 Frame[] inputs = new Frame[1]; in process()
|
D | SimpleFrameManager.java | 20 import android.filterfw.core.Frame; 37 public Frame newFrame(FrameFormat format) { in newFrame() 42 public Frame newBoundFrame(FrameFormat format, int bindingType, long bindingId) { in newBoundFrame() 43 Frame result = null; in newBoundFrame() 59 private Frame createNewFrame(FrameFormat format) { in createNewFrame() 60 Frame result = null; in createNewFrame() 90 public Frame retainFrame(Frame frame) { in retainFrame() 96 public Frame releaseFrame(Frame frame) { in releaseFrame()
|
D | FilterContext.java | 21 import android.filterfw.core.Frame; 36 private HashMap<String, Frame> mStoredFrames = new HashMap<String, Frame>(); 69 public void onFrameReceived(Filter filter, Frame frame, Object userData); in onFrameReceived() 72 public synchronized void storeFrame(String key, Frame frame) { in storeFrame() 73 Frame storedFrame = fetchFrame(key); in storeFrame() 81 public synchronized Frame fetchFrame(String key) { in fetchFrame() 82 Frame frame = mStoredFrames.get(key); in fetchFrame() 90 Frame frame = mStoredFrames.get(key); in removeFrame() 99 for (Frame frame : mStoredFrames.values()) { in tearDown()
|
D | StreamPort.java | 25 private Frame mFrame; 41 public void setFrame(Frame frame) { in setFrame() 46 public void pushFrame(Frame frame) { in pushFrame() 50 protected synchronized void assignFrame(Frame frame, boolean persistent) { in assignFrame() 68 public synchronized Frame pullFrame() { in pullFrame() 75 Frame result = mFrame; in pullFrame()
|
D | FilterFunction.java | 43 public Frame execute(KeyValueMap inputMap) { in execute() 68 if (entry.getValue() instanceof Frame) { in execute() 69 mFilter.pushInputFrame(entry.getKey(), (Frame)entry.getValue()); in execute() 83 Frame result = null; in execute() 96 public Frame executeWithArgList(Object... inputs) { in executeWithArgList() 112 public void setInputFrame(String input, Frame frame) { in setInputFrame()
|
D | FilterPort.java | 98 public abstract void pushFrame(Frame frame); in pushFrame() 100 public abstract void setFrame(Frame frame); in setFrame() 102 public abstract Frame pullFrame(); in pullFrame() 118 protected void checkFrameType(Frame frame, boolean forceCheck) { in checkFrameType() 127 protected void checkFrameManager(Frame frame, FilterContext context) { in checkFrameManager()
|
D | Frame.java | 30 public abstract class Frame { class 46 Frame(FrameFormat format, FrameManager frameManager) { in Frame() method in Frame 51 Frame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { in Frame() method in Frame 130 public void setDataFromFrame(Frame frame) { in setDataFromFrame() 142 public Frame release() { in release() 150 public Frame retain() { in retain()
|
D | FieldPort.java | 43 public void pushFrame(Frame frame) { in pushFrame() 48 public void setFrame(Frame frame) { in setFrame() 78 public synchronized Frame pullFrame() { in pullFrame() 97 protected synchronized void setFieldFrame(Frame frame, boolean isAssignment) { in setFieldFrame()
|
D | Filter.java | 61 private HashSet<Frame> mFramesToRelease; 62 private HashMap<String, Frame> mFramesToSet; 75 mFramesToRelease = new HashSet<Frame>(); in Filter() 76 mFramesToSet = new HashMap<String, Frame>(); in Filter() 146 public void setInputFrame(String inputName, Frame frame) { in setInputFrame() 249 protected final void pushOutput(String name, Frame frame) { in pushOutput() 250 if (frame.getTimestamp() == Frame.TIMESTAMP_NOT_SET) { in pushOutput() 257 protected final Frame pullInput(String name) { in pullInput() 258 Frame result = getInputPort(name).pullFrame(); in pullInput() 259 if (mCurrentTimestamp == Frame.TIMESTAMP_UNKNOWN) { in pullInput() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | BitmapOverlayFilter.java | 21 import android.filterfw.core.Frame; 47 private Frame mFrame; 103 Frame input = pullInput("image"); in process() 107 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 115 Frame frame = createBitmapFrame(context); in process() 117 Frame[] inputs = {input, frame}; in process() 132 private Frame createBitmapFrame(FilterContext context) { in createBitmapFrame() 138 Frame frame = context.getFrameManager().newFrame(format); in createBitmapFrame()
|
D | DrawOverlayFilter.java | 22 import android.filterfw.core.Frame; 69 Frame sourceFrame = pullInput("source"); in process() 70 Frame overlayFrame = pullInput("overlay"); in process() 71 Frame boxFrame = pullInput("box"); in process() 80 Frame output = env.getFrameManager().newFrame(sourceFrame.getFormat()); in process()
|
D | GrainFilter.java | 21 import android.filterfw.core.Frame; 159 Frame input = pullInput("image"); in process() 168 Frame noiseFrame = context.getFrameManager().newFrame(inputFormat); in process() 171 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 184 Frame[] empty = {}; in process() 188 Frame[] inputs = {input, noiseFrame}; in process()
|
D | AutoFixFilter.java | 21 import android.filterfw.core.Frame; 158 private Frame mHistFrame; 159 private Frame mDensityFrame; 242 Frame input = pullInput("image"); in process() 259 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 262 Frame[] inputs = {input, mHistFrame, mDensityFrame}; in process()
|
D | RedEyeFilter.java | 21 import android.filterfw.core.Frame; 52 private Frame mRedEyeFrame; 120 Frame input = pullInput("image"); in process() 124 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 139 Frame[] inputs = {input, mRedEyeFrame}; in process()
|
/frameworks/base/media/mca/effect/java/android/media/effect/ |
D | SizeChangeEffect.java | 22 import android.filterfw.core.Frame; 50 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() 51 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply() 56 Frame outputFrame = frameFromTexture(outputTexId, outputWidth, outputHeight); in apply()
|
D | FilterEffect.java | 25 import android.filterfw.core.Frame; 88 protected Frame frameFromTexture(int texId, int width, int height) { in frameFromTexture() 93 Frame frame = manager.newBoundFrame(format, in frameFromTexture() 96 frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN); in frameFromTexture()
|
D | SingleFilterEffect.java | 23 import android.filterfw.core.Frame; 73 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() 74 Frame outputFrame = frameFromTexture(outputTexId, width, height); in apply() 76 Frame resultFrame = mFunction.executeWithArgList(mInputName, inputFrame); in apply()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
D | CallbackFilter.java | 22 import android.filterfw.core.Frame; 53 private Frame mFrame; 57 …ckRunnable(FilterContext.OnFrameReceivedListener listener, Filter filter, Frame frame, Object user… in CallbackRunnable() 87 final Frame input = pullInput("frame"); in process()
|
D | GLTextureTarget.java | 22 import android.filterfw.core.Frame; 51 Frame input = pullInput("frame"); in process() 58 …Frame frame = context.getFrameManager().newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, mT… in process()
|
D | RetargetFilter.java | 22 import android.filterfw.core.Frame; 64 Frame input = pullInput("frame"); in process() 67 Frame output = context.getFrameManager().duplicateFrameToTarget(input, mTarget); in process()
|
/frameworks/base/media/mca/effect/java/android/media/effect/effects/ |
D | IdentityEffect.java | 20 import android.filterfw.core.Frame; 37 Frame inputFrame = frameFromTexture(inputTexId, width, height); in apply() 38 Frame outputFrame = frameFromTexture(outputTexId, width, height); in apply()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/text/ |
D | ToUpperCase.java | 22 import android.filterfw.core.Frame; 46 Frame input = pullInput("mixedcase"); in process() 49 Frame output = env.getFrameManager().newFrame(mOutputFormat); in process()
|
D | StringSource.java | 22 import android.filterfw.core.Frame; 51 Frame output = env.getFrameManager().newFrame(mOutputFormat); in process() 53 output.setTimestamp(Frame.TIMESTAMP_UNKNOWN); in process()
|