Home | History | Annotate | Download | only in renderscript

Lines Matching defs:mType

60     Type mType;
104 return mType.mElement.mType;
112 return mType.mElement.mType;
120 return mType.mElement.mType;
128 return mType.mElement.mType;
148 "[] is not compatible with data type " + mType.mElement.mType.name() +
275 return mType.getElement();
359 if (mType.mDimYuv != 0) {
360 return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5);
362 return mType.getCount() * mType.getElement().getBytesSize();
405 mType = t;
412 mSize = mType.getCount() * mType.getElement().getBytesSize();
436 if ((mType.mElement.mType == Element.DataType.SIGNED_64) ||
437 (mType.mElement.mType == Element.DataType.UNSIGNED_64)) {
441 "64 bit integer source does not match allocation type " + mType.mElement.mType);
445 if ((mType.mElement.mType == Element.DataType.SIGNED_32) ||
446 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) {
450 "32 bit integer source does not match allocation type " + mType.mElement.mType);
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)) {
460 "16 bit integer source does not match allocation type " + mType.mElement.mType);
464 if ((mType.mElement.mType == Element.DataType.SIGNED_8) ||
465 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) {
469 "8 bit integer source does not match allocation type " + mType.mElement.mType);
473 mType.mElement.mType == Element.DataType.FLOAT_32) {
477 "32 bit float source does not match allocation type " + mType.mElement.mType);
481 if (mType.mElement.mType == Element.DataType.FLOAT_64) {
485 "64 bit float source does not match allocation type " + mType.mElement.mType);
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)) {
502 "Object source does not match allocation type " + mType.mElement.mType);
510 mType = new Type(typeID, mRS);
511 mType.updateFromNative();
512 updateCacheInfo(mType);
523 return mType;
639 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) {
641 mType.getElement().mKind + ", type " +
642 mType.getElement().mType +
643 " of " + mType.getElement().getBytesSize() +
648 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) ||
649 (mType.getElement().getBytesSize() != 4)) {
651 mType.getElement().mKind + ", type " +
652 mType.getElement().mType +
653 " of " + mType.getElement().getBytesSize() +
658 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGB) ||
659 (mType.getElement().getBytesSize() != 2)) {
661 mType.getElement().mKind + ", type " +
662 mType.getElement().mType +
663 " of " + mType.getElement().getBytesSize() +
668 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) ||
669 (mType.getElement().getBytesSize() != 2)) {
671 mType.getElement().mKind + ", type " +
672 mType.getElement().mType +
673 " of " + mType.getElement().getBytesSize() +
1018 if (!mType.equals(a.getType())) {
1036 int eSize = mType.mElement.getBytesSize();
1073 if (component_number >= mType.mElement.mElements.length) {
1088 int eSize = mType.mElement.mElements[component_number].getBytesSize();
1089 eSize *= mType.mElement.mArraySizes[component_number];
1141 final int dataSize = mType.mElement.getBytesSize() * count;
1144 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1149 mType.mElement.mType.mSize, usePadding);
1475 final int dataSize = mType.mElement.getBytesSize() * w * h;
1479 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1492 mType.mElement.mType.mSize, usePadding);
1752 final int dataSize = mType.mElement.getBytesSize() * w * h * d;
1756 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1769 mType.mElement.mType.mSize, usePadding);
1862 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1876 mRS.nAllocationRead(getID(mRS), array, dt, mType.mElement.mType.mSize, usePadding);
2030 if (component_number >= mType.mElement.mElements.length) {
2045 int eSize = mType.mElement.mElements[component_number].getBytesSize();
2046 eSize *= mType.mElement.mArraySizes[component_number];
2076 if ((mType.getY() > 0)|| (mType.getZ() > 0) || mType.hasFaces() || mType.hasMipmaps()) {
2083 // Sets zero the mID so that the finalizer of the old mType value won't
2085 mType.setID(0);
2086 mType = new Type(typeID, mRS);
2087 mType.updateFromNative();
2088 updateCacheInfo(mType);
2095 final int dataSize = mType.mElement.getBytesSize() * count;
2098 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
2103 mType.mElement.mType.mSize, usePadding);
2394 final int dataSize = mType.mElement.getBytesSize() * w * h;
2398 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
2410 array, sizeBytes, dt, mType.mElement.mType.mSize, usePadding);
2591 final int dataSize = mType.mElement.getBytesSize() * w * h * d;
2595 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
2607 array, sizeBytes, dt, mType.mElement.mType.mSize, usePadding);
2853 if (mType.hasFaces()) {
2856 if (mType.getYuv() == android.graphics.ImageFormat.NV21 ||
2857 mType.getYuv() == android.graphics.ImageFormat.YV12 ||
2858 mType.getYuv() == android.graphics.ImageFormat.YUV_420_888 ) {
2862 int xBytesSize = mType.getX() * mType.getElement().getBytesSize();
2864 mByteBuffer = mRS.nAllocationGetByteBuffer(getID(mRS), stride, xBytesSize, mType.getY(), mType.getZ());
3362 if (mType != null && mOwningType) {
3363 mType.destroy();