Home | History | Annotate | Download | only in renderscript

Lines Matching refs:Element

47  * more complex Element types, the {@link #copyFromUnchecked} methods can be
91 private Element.DataType validateObjectIsPrimitiveArray(Object d, boolean checkType) {
106 return Element.DataType.SIGNED_64;
114 return Element.DataType.SIGNED_32;
122 return Element.DataType.SIGNED_16;
130 return Element.DataType.SIGNED_8;
137 return Element.DataType.FLOAT_32;
144 return Element.DataType.FLOAT_64;
268 * Get the {@link android.renderscript.Element} of the {@link
271 * @return Element
274 public Element getElement() {
303 * Only applies to an Allocation whose Element is a vector of length 3 (such as
304 * {@link Element#U8_3} or {@link Element#RGB_888}). Enabling this feature may make
307 * <p> Vec3 Element cells are stored in an Allocation as Vec4 Element cells with
308 * the same {@link android.renderscript.Element.DataType}, with the fourth vector
315 * Element#I32_3} cells using {@link #copyFrom(int[])}:
327 * Element#I32_3} cells, using {@link #copyFromUnchecked(int[])}:
340 * Allocation to an array, the padding components for Vec3 Element cells will not be
436 if ((mType.mElement.mType == Element.DataType.SIGNED_64) ||
437 (mType.mElement.mType == Element.DataType.UNSIGNED_64)) {
445 if ((mType.mElement.mType == Element.DataType.SIGNED_32) ||
446 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) {
454 if ((mType.mElement.mType == Element.DataType.SIGNED_16) ||
455 (mType.mElement.mType == Element.DataType.UNSIGNED_16) ||
456 (mType.mElement.mType == Element.DataType.FLOAT_16)) {
464 if ((mType.mElement.mType == Element.DataType.SIGNED_8) ||
465 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) {
473 Element.DataType.FLOAT_32) {
481 if (mType.mElement.mType == Element.DataType.FLOAT_64) {
489 if ((mType.mElement.mType == Element.DataType.RS_ELEMENT) ||
490 (mType.mElement.mType == Element.DataType.RS_TYPE) ||
491 (mType.mElement.mType == Element.DataType.RS_ALLOCATION) ||
492 (mType.mElement.mType == Element.DataType.RS_SAMPLER) ||
493 (mType.mElement.mType == Element.DataType.RS_SCRIPT) ||
494 (mType.mElement.mType == Element.DataType.RS_MESH) ||
495 (mType.mElement.mType == Element.DataType.RS_PROGRAM_FRAGMENT) ||
496 (mType.mElement.mType == Element.DataType.RS_PROGRAM_VERTEX) ||
497 (mType.mElement.mType == Element.DataType.RS_PROGRAM_RASTER) ||
498 (mType.mElement.mType == Element.DataType.RS_PROGRAM_STORE)) {
639 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) {
648 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) ||
658 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGB) ||
668 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) ||
687 private void copyFromUnchecked(Object array, Element.DataType dt, int arrayLen) {
757 copyFromUnchecked(d, Element.DataType.SIGNED_32, d.length);
782 copyFromUnchecked(d, Element.DataType.SIGNED_16, d.length);
807 copyFromUnchecked(d, Element.DataType.SIGNED_8, d.length);
832 copyFromUnchecked(d, Element.DataType.FLOAT_32, d.length);
839 * android.renderscript.Element} does not match the array's
871 * android.renderscript.Element} is not a 32 bit integer nor a vector of 32 bit
872 * integers {@link android.renderscript.Element.DataType}.
892 copyFromUnchecked(d, Element.DataType.SIGNED_32, d.length);
898 * android.renderscript.Element} is not a 16 bit integer nor a vector of 16 bit
899 * integers {@link android.renderscript.Element.DataType}.
919 copyFromUnchecked(d, Element.DataType.SIGNED_16, d.length);
925 * android.renderscript.Element} is not an 8 bit integer nor a vector of 8 bit
926 * integers {@link android.renderscript.Element.DataType}.
946 copyFromUnchecked(d, Element.DataType.SIGNED_8, d.length);
952 * android.renderscript.Element} is neither a 32 bit float nor a vector of
953 * 32 bit floats {@link android.renderscript.Element.DataType}.
973 copyFromUnchecked(d, Element.DataType.FLOAT_32, d.length);
1043 " not divisible by element size " + eSize + ".");
1138 Element.DataType dt, int arrayLen) {
1142 // AutoPadding for Vec3 Element
1161 * Element#getBytesSize}.
1174 * @param off The offset of the first element to be copied.
1189 * Element#getBytesSize}.
1202 * @param off The offset of the first element to be copied.
1207 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.SIGNED_32, d.length);
1215 * Element#getBytesSize}.
1228 * @param off The offset of the first element to be copied.
1233 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.SIGNED_16, d.length);
1241 * Element#getBytesSize}.
1254 * @param off The offset of the first element to be copied.
1259 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.SIGNED_8, d.length);
1267 * Element#getBytesSize}.
1280 * @param off The offset of the first element to be copied.
1285 copy1DRangeFromUnchecked(off, count, (Object)d, Element.DataType.FLOAT_32, d.length);
1291 * android.renderscript.Element} does not match the component type
1295 * Element#getBytesSize}.
1308 * @param off The offset of the first element to be copied.
1321 * android.renderscript.Element} is not an 32 bit integer nor a vector of 32 bit
1322 * integers {@link android.renderscript.Element.DataType}.
1325 * Element#getBytesSize}.
1338 * @param off The offset of the first element to be copied.
1344 copy1DRangeFromUnchecked(off, count, d, Element.DataType.SIGNED_32, d.length);
1350 * android.renderscript.Element} is not an 16 bit integer nor a vector of 16 bit
1351 * integers {@link android.renderscript.Element.DataType}.
1354 * Element#getBytesSize}.
1367 * @param off The offset of the first element to be copied.
1373 copy1DRangeFromUnchecked(off, count, d, Element.DataType.SIGNED_16, d.length);
1379 * android.renderscript.Element} is not an 8 bit integer nor a vector of 8 bit
1380 * integers {@link android.renderscript.Element.DataType}.
1383 * Element#getBytesSize}.
1396 * @param off The offset of the first element to be copied.
1402 copy1DRangeFromUnchecked(off, count, d, Element.DataType.SIGNED_8, d.length);
1408 * android.renderscript.Element} is neither a 32 bit float nor a vector of
1409 * 32 bit floats {@link android.renderscript.Element.DataType}.
1412 * Element#getBytesSize}.
1425 * @param off The offset of the first element to be copied.
1431 copy1DRangeFromUnchecked(off, count, d, Element.DataType.FLOAT_32, d.length);
1437 * @param off The offset of the first element to be copied.
1440 * @param dataOff off The offset of the first element in data to
1470 Element.DataType dt, int arrayLen) {
1476 // AutoPadding for Vec3 Element
1502 * android.renderscript.Element} does not match the input data type.
1505 * Element#getBytesSize}.
1539 * android.renderscript.Element} is not an 8 bit integer nor a vector of 8 bit
1540 * integers {@link android.renderscript.Element.DataType}.
1543 * Element#getBytesSize}.
1565 Element.DataType.SIGNED_8, data.length);
1572 * android.renderscript.Element} is not a 16 bit integer nor a vector of 16 bit
1573 * integers {@link android.renderscript.Element.DataType}.
1576 * Element#getBytesSize}.
1598 Element.DataType.SIGNED_16, data.length);
1605 * android.renderscript.Element} is not a 32 bit integer nor a vector of 32 bit
1606 * integers {@link android.renderscript.Element.DataType}.
1609 * Element#getBytesSize}.
1631 Element.DataType.SIGNED_32, data.length);
1638 * android.renderscript.Element} is neither a 32 bit float nor a vector of
1639 * 32 bit floats {@link android.renderscript.Element.DataType}.
1642 * Element#getBytesSize}.
1664 Element.DataType.FLOAT_32, data.length);
1744 * the element data type.
1747 Object array, Element.DataType dt, int arrayLen) {
1753 // AutoPadding for Vec3 Element
1779 * android.renderscript.Element} does not match the input data type.
1782 * Element#getBytesSize}.
1857 private void copyTo(Object array, Element.DataType dt, int arrayLen) {
1885 * android.renderscript.Element} does not match the input data type.
1911 * android.renderscript.Element} is neither an 8 bit integer nor a vector of 8 bit
1912 * integers {@link android.renderscript.Element.DataType}.
1932 copyTo(d, Element.DataType.SIGNED_8, d.length);
1938 * android.renderscript.Element} is not a 16 bit integer nor a vector of 16 bit
1939 * integers {@link android.renderscript.Element.DataType}.
1959 copyTo(d, Element.DataType.SIGNED_16, d.length);
1965 * android.renderscript.Element} is not a 32 bit integer nor a vector of 32 bit
1966 * integers {@link android.renderscript.Element.DataType}.
1986 copyTo(d, Element.DataType.SIGNED_32, d.length);
1992 * android.renderscript.Element} is neither a 32 bit float nor a vector of
1993 * 32 bit floats {@link android.renderscript.Element.DataType}.
2013 copyTo(d, Element.DataType.FLOAT_32, d.length);
2092 Element.DataType dt, int arrayLen) {
2096 // AutoPadding for Vec3 Element
2114 * Element#getBytesSize}.
2127 * @param off The offset of the first element to be copied.
2142 * Element#getBytesSize}.
2155 * @param off The offset of the first element to be copied.
2160 copy1DRangeToUnchecked(off, count, (Object)d, Element.DataType.SIGNED_32, d.length);
2168 * Element#getBytesSize}.
2181 * @param off The offset of the first element to be copied.
2186 copy1DRangeToUnchecked(off, count, (Object)d, Element.DataType.SIGNED_16, d.length);
2194 * Element#getBytesSize}.
2207 * @param off The offset of the first element to be copied.
2212 copy1DRangeToUnchecked(off, count, (Object)d, Element.DataType.SIGNED_8, d.length);
2220 * Element#getBytesSize}.
2233 * @param off The offset of the first element to be copied.
2238 copy1DRangeToUnchecked(off, count, (Object)d, Element.DataType.FLOAT_32, d.length);
2244 * android.renderscript.Element} does not match the component type
2248 * Element#getBytesSize}.
2261 * @param off The offset of the first element to be copied.
2274 * android.renderscript.Element} is neither a 32 bit integer nor a vector of 32 bit
2275 * integers {@link android.renderscript.Element.DataType}.
2278 * Element#getBytesSize}.
2291 * @param off The offset of the first element to be copied.
2297 copy1DRangeToUnchecked(off, count, d, Element.DataType.SIGNED_32, d.length);
2303 * android.renderscript.Element} is neither a 16 bit integer nor a vector of 16 bit
2304 * integers {@link android.renderscript.Element.DataType}.
2307 * Element#getBytesSize}.
2320 * @param off The offset of the first element to be copied.
2326 copy1DRangeToUnchecked(off, count, d, Element.DataType.SIGNED_16, d.length);
2332 * android.renderscript.Element} is neither an 8 bit integer nor a vector of 8 bit
2333 * integers {@link android.renderscript.Element.DataType}.
2336 * Element#getBytesSize}.
2349 * @param off The offset of the first element to be copied.
2355 copy1DRangeToUnchecked(off, count, d, Element.DataType.SIGNED_8, d.length);
2361 * android.renderscript.Element} is neither a 32 bit float nor a vector of
2362 * 32 bit floats {@link android.renderscript.Element.DataType}.
2365 * Element#getBytesSize}.
2378 * @param off The offset of the first element to be copied.
2384 copy1DRangeToUnchecked(off, count, d, Element.DataType.FLOAT_32, d.length);
2389 Element.DataType dt, int arrayLen) {
2395 // AutoPadding for Vec3 Element
2419 * {@link android.renderscript.Element} does not match the component type
2423 * Element#getBytesSize}.
2451 * {@link android.renderscript.Element} is neither an 8 bit integer nor a vector
2452 * of 8 bit integers {@link android.renderscript.Element.DataType}.
2455 * Element#getBytesSize}.
2477 Element.DataType.SIGNED_8, data.length);
2483 * {@link android.renderscript.Element} is neither a 16 bit integer nor a vector
2484 * of 16 bit integers {@link android.renderscript.Element.DataType}.
2487 * Element#getBytesSize}.
2509 Element.DataType.SIGNED_16, data.length);
2515 * {@link android.renderscript.Element} is neither a 32 bit integer nor a vector
2516 * of 32 bit integers {@link android.renderscript.Element.DataType}.
2519 * Element#getBytesSize}.
2541 Element.DataType.SIGNED_32, data.length);
2547 * {@link android.renderscript.Element} is neither a 32 bit float nor a vector
2548 * of 32 bit floats {@link android.renderscript.Element.DataType}.
2551 * Element#getBytesSize}.
2573 Element.DataType.FLOAT_32, data.length);
2583 * the element data type.
2586 Object array, Element.DataType dt, int arrayLen) {
2592 // AutoPadding for Vec3 Element
2616 * {@link android.renderscript.Element} does not match the component type
2620 * Element#getBytesSize}.
2714 * @param e Element to use in the Allocation
2721 static public Allocation createSized(RenderScript rs, Element e,
2744 * @param e Element to use in the Allocation
2749 static public Allocation createSized(RenderScript rs, Element e, int count) {
2753 static Element elementFromBitmap(RenderScript rs, Bitmap b) {
2756 return Element.A_8(rs);
2759 return Element.RGBA_4444(rs);
2762 return Element.RGBA_8888(rs);
2765 return Element.RGB_565(rs);
2772 Element e = elementFromBitmap(rs, b);
2815 t.getElement().isCompatible(Element.RGBA_8888(rs)) &&
3103 Element e = elementFromBitmap(rs, b);
3113 throw new RSRuntimeException("Load failed for bitmap " + b + " element " + e);
3178 Element e = elementFromBitmap(rs, xpos);
3309 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage);