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;
229 public Element getSubElement(int index) {
231 throw new RSIllegalArgumentException("Element contains no sub-elements");
247 throw new RSIllegalArgumentException("Element contains no sub-elements");
264 throw new RSIllegalArgumentException("Element contains no sub-elements");
280 throw new RSIllegalArgumentException("Element contains no sub-elements");
303 * Utility function for returning an Element containing a single Boolean.
307 * @return Element
309 public static Element BOOLEAN(RenderScript rs) {
317 * Utility function for returning an Element containing a single UNSIGNED_8.
321 * @return Element
323 public static Element U8(RenderScript rs) {
331 * Utility function for returning an Element containing a single SIGNED_8.
335 * @return Element
337 public static Element I8(RenderScript rs) {
344 public static Element U16(RenderScript rs) {
351 public static Element I16(RenderScript rs) {
358 public static Element U32(RenderScript rs) {
365 public static Element I32(RenderScript rs) {
372 public static Element U64(RenderScript rs) {
379 public static Element I64(RenderScript rs) {
386 public static Element F32(RenderScript rs) {
393 public static Element F64(RenderScript rs) {
400 public static Element ELEMENT(RenderScript rs) {
407 public static Element TYPE(RenderScript rs) {
414 public static Element ALLOCATION(RenderScript rs) {
421 public static Element SAMPLER(RenderScript rs) {
428 public static Element SCRIPT(RenderScript rs) {
436 public static Element A_8(RenderScript rs) {
443 public static Element RGB_565(RenderScript rs) {
450 public static Element RGB_888(RenderScript rs) {
457 public static Element RGBA_5551(RenderScript rs) {
464 public static Element RGBA_4444(RenderScript rs) {
471 public static Element RGBA_8888(RenderScript rs) {
478 public static Element F32_2(RenderScript rs) {
485 public static Element F32_3(RenderScript rs) {
492 public static Element F32_4(RenderScript rs) {
499 public static Element F64_2(RenderScript rs) {
506 public static Element F64_3(RenderScript rs) {
513 public static Element F64_4(RenderScript rs) {
520 public static Element U8_2(RenderScript rs) {
527 public static Element U8_3(RenderScript rs) {
534 public static Element U8_4(RenderScript rs) {
541 public static Element I8_2(RenderScript rs) {
548 public static Element I8_3(RenderScript rs) {
555 public static Element I8_4(RenderScript rs) {
562 public static Element U16_2(RenderScript rs) {
569 public static Element U16_3(RenderScript rs) {
576 public static Element U16_4(RenderScript rs) {
583 public static Element I16_2(RenderScript rs) {
590 public static Element I16_3(RenderScript rs) {
597 public static Element I16_4(RenderScript rs) {
604 public static Element U32_2(RenderScript rs) {
611 public static Element U32_3(RenderScript rs) {
618 public static Element U32_4(RenderScript rs) {
625 public static Element I32_2(RenderScript rs) {
632 public static Element I32_3(RenderScript rs) {
639 public static Element I32_4(RenderScript rs) {
646 public static Element U64_2(RenderScript rs) {
653 public static Element U64_3(RenderScript rs) {
660 public static Element U64_4(RenderScript rs) {
667 public static Element I64_2(RenderScript rs) {
674 public static Element I64_3(RenderScript rs) {
681 public static Element I64_4(RenderScript rs) {
688 public static Element MATRIX_4X4(RenderScript rs) {
695 public static Element MATRIX_3X3(RenderScript rs) {
702 public static Element MATRIX_2X2(RenderScript rs) {
709 Element(int id, RenderScript rs, Element[] e, String[] n, int[] as) {
726 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
745 Element(int id, RenderScript rs) {
750 * Create a custom Element of the specified DataType. The DataKind will be
753 * @param rs The context associated with the new Element.
755 * @return Element
757 static Element createUser(RenderScript rs, DataType dt) {
766 return new Element(id, rs, dt, dk, norm, vecSize);
775 * @param rs The context associated with the new Element.
776 * @param dt The DataType for the new Element.
777 * @param size Vector size for the new Element. Range 2-4 inclusive
780 * @return Element
782 public static Element createVector(RenderScript rs, DataType dt, int size) {
807 return new Element(id, rs, dt, dk, norm, size);
818 * Create a new pixel Element type. A matching DataType and DataKind must
822 * @param rs The context associated with the new Element.
827 * @return Element
829 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
880 return new Element(id, rs, dt, dk, norm, size);
884 * Check if the current Element is compatible with another Element.
890 * @param e The Element to check compatibility with.
894 public boolean isCompatible(Element e) {
920 Element[] mElements;
938 mElements = new Element[8];
950 public Builder add(Element element, String name, int arraySize) {
975 Element[] e = new Element[mCount + 8];
994 * Add a single element to this Element.
999 public Builder add(Element element, String name) {
1007 * @return Element
1009 public Element create() {
1015 Element[] ein = new Element[mCount];
1028 return new Element(id, mRS, ein, sin, asin);