Lines Matching defs:Element

24  * <p>An Element represents one item within an {@link
25 * android.support.v8.renderscript.Allocation}. An Element is roughly
40 * android.support.v8.renderscript.Element.DataType} and a {@link
41 * android.support.v8.renderscript.Element.DataKind}. The DataType encodes C
42 * type information of an Element, while the DataKind encodes how that Element
45 * DataKind {@link android.support.v8.renderscript.Element.DataKind#USER} cannot
50 * {@link android.support.v8.renderscript.Element#RGBA_8888} or {@link
51 * android.support.v8.renderscript#Element.A_8}.</p>
61 public class Element extends BaseObj {
63 Element[] mElements;
237 public Element getSubElement(int index) {
239 throw new RSIllegalArgumentException("Element contains no sub-elements");
255 throw new RSIllegalArgumentException("Element contains no sub-elements");
272 throw new RSIllegalArgumentException("Element contains no sub-elements");
288 throw new RSIllegalArgumentException("Element contains no sub-elements");
311 * Utility function for returning an Element containing a single Boolean.
315 * @return Element
317 public static Element BOOLEAN(RenderScript rs) {
325 * Utility function for returning an Element containing a single UNSIGNED_8.
329 * @return Element
331 public static Element U8(RenderScript rs) {
339 * Utility function for returning an Element containing a single SIGNED_8.
343 * @return Element
345 public static Element I8(RenderScript rs) {
352 public static Element U16(RenderScript rs) {
359 public static Element I16(RenderScript rs) {
366 public static Element U32(RenderScript rs) {
373 public static Element I32(RenderScript rs) {
380 public static Element U64(RenderScript rs) {
387 public static Element I64(RenderScript rs) {
394 public static Element F32(RenderScript rs) {
401 public static Element F64(RenderScript rs) {
408 public static Element ELEMENT(RenderScript rs) {
415 public static Element TYPE(RenderScript rs) {
422 public static Element ALLOCATION(RenderScript rs) {
429 public static Element SAMPLER(RenderScript rs) {
436 public static Element SCRIPT(RenderScript rs) {
444 public static Element A_8(RenderScript rs) {
451 public static Element RGB_565(RenderScript rs) {
458 public static Element RGB_888(RenderScript rs) {
465 public static Element RGBA_5551(RenderScript rs) {
472 public static Element RGBA_4444(RenderScript rs) {
479 public static Element RGBA_8888(RenderScript rs) {
486 public static Element F32_2(RenderScript rs) {
493 public static Element F32_3(RenderScript rs) {
500 public static Element F32_4(RenderScript rs) {
507 public static Element F64_2(RenderScript rs) {
514 public static Element F64_3(RenderScript rs) {
521 public static Element F64_4(RenderScript rs) {
528 public static Element U8_2(RenderScript rs) {
535 public static Element U8_3(RenderScript rs) {
542 public static Element U8_4(RenderScript rs) {
549 public static Element I8_2(RenderScript rs) {
556 public static Element I8_3(RenderScript rs) {
563 public static Element I8_4(RenderScript rs) {
570 public static Element U16_2(RenderScript rs) {
577 public static Element U16_3(RenderScript rs) {
584 public static Element U16_4(RenderScript rs) {
591 public static Element I16_2(RenderScript rs) {
598 public static Element I16_3(RenderScript rs) {
605 public static Element I16_4(RenderScript rs) {
612 public static Element U32_2(RenderScript rs) {
619 public static Element U32_3(RenderScript rs) {
626 public static Element U32_4(RenderScript rs) {
633 public static Element I32_2(RenderScript rs) {
640 public static Element I32_3(RenderScript rs) {
647 public static Element I32_4(RenderScript rs) {
654 public static Element U64_2(RenderScript rs) {
661 public static Element U64_3(RenderScript rs) {
668 public static Element U64_4(RenderScript rs) {
675 public static Element I64_2(RenderScript rs) {
682 public static Element I64_3(RenderScript rs) {
689 public static Element I64_4(RenderScript rs) {
696 public static Element MATRIX_4X4(RenderScript rs) {
703 public static Element MATRIX_3X3(RenderScript rs) {
710 public static Element MATRIX_2X2(RenderScript rs) {
717 Element(long id, RenderScript rs, Element[] e, String[] n, int[] as) {
734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
753 Element(long id, RenderScript rs) {
758 * Get an identical dummy Element for Compat Context
765 * Create a custom Element of the specified DataType. The DataKind will be
768 * @param rs The context associated with the new Element.
770 * @return Element
772 static Element createUser(RenderScript rs, DataType dt) {
777 return new Element(id, rs, dt, dk, norm, vecSize);
786 * @param rs The context associated with the new Element.
787 * @param dt The DataType for the new Element.
788 * @param size Vector size for the new Element. Range 2-4 inclusive
791 * @return Element
793 public static Element createVector(RenderScript rs, DataType dt, int size) {
814 return new Element(id, rs, dt, dk, norm, size);
825 * Create a new pixel Element type. A matching DataType and DataKind must
829 * @param rs The context associated with the new Element.
834 * @return Element
836 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
882 return new Element(id, rs, dt, dk, norm, size);
886 * Check if the current Element is compatible with another Element.
892 * @param e The Element to check compatibility with.
896 public boolean isCompatible(Element e) {
921 Element[] mElements;
935 mElements = new Element[8];
947 public Builder add(Element element, String name, int arraySize) {
967 Element[] e = new Element[mCount + 8];
986 * Add a single element to this Element.
991 public Builder add(Element element, String name) {
999 * @return Element
1001 public Element create() {
1003 Element[] ein = new Element[mCount];
1016 return new Element(id, mRS, ein, sin, asin);