Lines Matching defs:Element

20  * <p>An Element represents one item within an {@link
21 * android.renderscript.Allocation}. An Element is roughly equivalent to a C
35 * android.renderscript.Element.DataType} and a {@link
36 * android.renderscript.Element.DataKind}. The DataType encodes C type
37 * information of an Element, while the DataKind encodes how that Element should
40 * android.renderscript.Element.DataKind#USER} cannot be used as input for a
44 * as {@link android.renderscript.Element#RGBA_8888} or {@link
45 * android.renderscript#Element.A_8}.</p>
53 public class Element extends BaseObj {
55 Element[] mElements;
233 public Element getSubElement(int index) {
235 throw new RSIllegalArgumentException("Element contains no sub-elements");
251 throw new RSIllegalArgumentException("Element contains no sub-elements");
268 throw new RSIllegalArgumentException("Element contains no sub-elements");
284 throw new RSIllegalArgumentException("Element contains no sub-elements");
307 * Utility function for returning an Element containing a single Boolean.
311 * @return Element
313 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) {
343 * Utility function for returning an Element containing a single SIGNED_8.
347 * @return Element
349 public static Element I8(RenderScript rs) {
360 public static Element U16(RenderScript rs) {
371 public static Element I16(RenderScript rs) {
382 public static Element U32(RenderScript rs) {
393 public static Element I32(RenderScript rs) {
404 public static Element U64(RenderScript rs) {
415 public static Element I64(RenderScript rs) {
426 public static Element F16(RenderScript rs) {
437 public static Element F32(RenderScript rs) {
448 public static Element F64(RenderScript rs) {
459 public static Element ELEMENT(RenderScript rs) {
470 public static Element TYPE(RenderScript rs) {
481 public static Element ALLOCATION(RenderScript rs) {
492 public static Element SAMPLER(RenderScript rs) {
503 public static Element SCRIPT(RenderScript rs) {
514 public static Element MESH(RenderScript rs) {
525 public static Element PROGRAM_FRAGMENT(RenderScript rs) {
536 public static Element PROGRAM_VERTEX(RenderScript rs) {
547 public static Element PROGRAM_RASTER(RenderScript rs) {
558 public static Element PROGRAM_STORE(RenderScript rs) {
569 public static Element FONT(RenderScript rs) {
580 public static Element A_8(RenderScript rs) {
591 public static Element RGB_565(RenderScript rs) {
602 public static Element RGB_888(RenderScript rs) {
613 public static Element RGBA_5551(RenderScript rs) {
624 public static Element RGBA_4444(RenderScript rs) {
635 public static Element RGBA_8888(RenderScript rs) {
646 public static Element F16_2(RenderScript rs) {
657 public static Element F16_3(RenderScript rs) {
668 public static Element F16_4(RenderScript rs) {
679 public static Element F32_2(RenderScript rs) {
690 public static Element F32_3(RenderScript rs) {
701 public static Element F32_4(RenderScript rs) {
712 public static Element F64_2(RenderScript rs) {
723 public static Element F64_3(RenderScript rs) {
734 public static Element F64_4(RenderScript rs) {
745 public static Element U8_2(RenderScript rs) {
756 public static Element U8_3(RenderScript rs) {
767 public static Element U8_4(RenderScript rs) {
778 public static Element I8_2(RenderScript rs) {
789 public static Element I8_3(RenderScript rs) {
800 public static Element I8_4(RenderScript rs) {
811 public static Element U16_2(RenderScript rs) {
822 public static Element U16_3(RenderScript rs) {
833 public static Element U16_4(RenderScript rs) {
844 public static Element I16_2(RenderScript rs) {
855 public static Element I16_3(RenderScript rs) {
866 public static Element I16_4(RenderScript rs) {
877 public static Element U32_2(RenderScript rs) {
888 public static Element U32_3(RenderScript rs) {
899 public static Element U32_4(RenderScript rs) {
910 public static Element I32_2(RenderScript rs) {
921 public static Element I32_3(RenderScript rs) {
932 public static Element I32_4(RenderScript rs) {
943 public static Element U64_2(RenderScript rs) {
954 public static Element U64_3(RenderScript rs) {
965 public static Element U64_4(RenderScript rs) {
976 public static Element I64_2(RenderScript rs) {
987 public static Element I64_3(RenderScript rs) {
998 public static Element I64_4(RenderScript rs) {
1009 public static Element YUV(RenderScript rs) {
1020 public static Element MATRIX_4X4(RenderScript rs) {
1033 public static Element MATRIX4X4(RenderScript rs) {
1037 public static Element MATRIX_3X3(RenderScript rs) {
1048 public static Element MATRIX_2X2(RenderScript rs) {
1059 Element(long id, RenderScript rs, Element[] e, String[] n, int[] as) {
1076 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) {
1095 Element(long id, RenderScript rs) {
1124 mElements = new Element[numSubElements];
1132 mElements[i] = new Element(subElementIds[i], mRS);
1142 * Create a custom Element of the specified DataType. The DataKind will be
1145 * @param rs The context associated with the new Element.
1147 * @return Element
1149 static Element createUser(RenderScript rs, DataType dt) {
1154 return new Element(id, rs, dt, dk, norm, vecSize);
1163 * @param rs The context associated with the new Element.
1164 * @param dt The DataType for the new Element.
1165 * @param size Vector size for the new Element. Range 2-4 inclusive
1168 * @return Element
1170 public static Element createVector(RenderScript rs, DataType dt, int size) {
1192 return new Element(id, rs, dt, dk, norm, size);
1203 * Create a new pixel Element type. A matching DataType and DataKind must
1207 * @param rs The context associated with the new Element.
1212 * @return Element
1214 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) {
1263 return new Element(id, rs, dt, dk, norm, size);
1267 * Check if the current Element is compatible with another Element.
1273 * @param e The Element to check compatibility with.
1277 public boolean isCompatible(Element e) {
1301 Element[] mElements;
1315 mElements = new Element[8];
1327 public Builder add(Element element, String name, int arraySize) {
1347 Element[] e = new Element[mCount + 8];
1365 * Add a single element to this Element.
1370 public Builder add(Element element, String name) {
1378 * @return Element
1380 public Element create() {
1382 Element[] ein = new Element[mCount];
1394 return new Element(id, mRS, ein, sin, asin);