Home | History | Annotate | Download | only in filterfw

Lines Matching refs:frame

24  * Input and output ports share their Frame slot, meaning that when a frame is waiting on an output
27 * Only one frame can be pushed onto an output port at a time. In other words, a Frame must first
28 * be consumed by the target filter before a new frame can be pushed on the output port. If the
52 * Returns true, if there is no frame waiting on this port.
53 * @return true, if no Frame instance is waiting on this port.
60 * Returns a frame for writing.
62 * Call this method to fetch a new frame to write into. When you have finished writing the
63 * frame data, you can push it into the output queue using {@link #pushFrame(Frame)}. Note,
64 * that the Frame returned is owned by the queue. If you wish to hold on to the frame, you
67 * @param dimensions the size of the Frame you wish to obtain.
68 * @return a writable Frame instance.
70 public Frame fetchAvailableFrame(int[] dimensions) {
71 Frame frame = getQueue().fetchAvailableFrame(dimensions);
72 if (frame != null) {
73 //Log.i("OutputPort", "Adding frame " + frame + " to auto-release pool");
74 mFilter.addAutoReleaseFrame(frame);
76 return frame;
80 * Pushes a frame onto this output port.
82 * This is typically a Frame instance you obtained by previously calling
86 * Once you have pushed a frame to an output, you may no longer modify it as it may be shared
89 * @param frame the frame to push to the output queue.
91 public void pushFrame(Frame frame) {
94 long timestamp = frame.getTimestamp();
95 if (timestamp == Frame.TIMESTAMP_NOT_SET)
96 frame.setTimestamp(mFilter.getCurrentTimestamp());
97 getQueue().pushFrame(frame);
102 * When set to true, the Filter will not be scheduled for processing unless there is no Frame