Lines Matching refs:type

21  * FrameTypes are used mainly by Filters to specify the data type they intend to consume or produce.
23 * compatibility. This allows Filter writers to assume a certain data input type. It also helps
26 * A FrameType generally consists of an element type and number of dimensions. The currently
37 * If the object element type is used, class information may be appended to the FrameType to
39 * have the option of either specifying a type that represents a single object of that class, or
43 * When constructing a non-object type, you have the option of creating a 1D or 2D buffer, or
46 * an image type.
48 * Finally, it is possible to create a wild-card type with the {@link #any()} constructor. This
49 * type matches any other type. Note, that this is a more general type than a {@code single(Object)}
50 * type that matches only object-base types (of any Object subclass). You may also specify the
51 * leave the element of any type unspecified by using the {@code ELEMENT_DONTCARE} constant.
53 * When a graph is connected the types between outputs and inputs are merged to a queue-type. All
54 * Frames in this queue will be of that type. In order for a merge to succeed the following
66 * if one Filter outputs a type of class {@code Object}, and the consumer expects a Filter of type
79 * After the types are merged, the queue-type must be a fully specified type. This means that the
80 * type must have its element and dimensions specified. This ensures that filters that need to
151 * @param clazz The class of the array elements (not the array type).
159 * Constructs a one-dimensional buffer type of the specified element.
168 * Constructs a two-dimensional buffer type of the specified element.
177 * Constructs a two-dimensional image type of the specified element.
187 * Converts the current array type to a single type.
188 * The type must be an object-based type. If the type is already a single type, this does
190 * @return type as a single type.
194 throw new RuntimeException("Calling asSingle() on non-object type!");
200 * Converts the current single type to an array type.
201 * The type must be an object-based type. If the type is already an array type, this does
203 * @return type as an array type.
207 throw new RuntimeException("Calling asArray() on non-object type!");
214 * an object-based type.
282 FrameType type = (FrameType) object;
283 return mElementId == type.mElementId && mDimensions == type.mDimensions
284 && mAccessHints == type.mAccessHints && mClass == type.mClass;
415 FrameType type = mTypeCache.get(typeKey);
416 if (type == null) {
417 type = new FrameType(elementId, dimensions, accessHints, clazz);
418 mTypeCache.put(typeKey, type);
420 return type;