Lines Matching refs:mType

59     Type mType;
97 return mType.mElement.mType;
105 return mType.mElement.mType;
113 return mType.mElement.mType;
121 return mType.mElement.mType;
254 return mType.getElement();
327 if (mType.mDimYuv != 0) {
328 return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5);
330 return mType.getCount() * mType.getElement().getBytesSize();
370 mType = t;
379 mSize = mType.getCount() * mType.getElement().getBytesSize();
400 if ((mType.mElement.mType == Element.DataType.SIGNED_64) ||
401 (mType.mElement.mType == Element.DataType.UNSIGNED_64)) {
405 "64 bit integer source does not match allocation type " + mType.mElement.mType);
409 if ((mType.mElement.mType == Element.DataType.SIGNED_32) ||
410 (mType.mElement.mType == Element.DataType.UNSIGNED_32)) {
414 "32 bit integer source does not match allocation type " + mType.mElement.mType);
418 if ((mType.mElement.mType == Element.DataType.SIGNED_16) ||
419 (mType.mElement.mType == Element.DataType.UNSIGNED_16)) {
423 "16 bit integer source does not match allocation type " + mType.mElement.mType);
427 if ((mType.mElement.mType == Element.DataType.SIGNED_8) ||
428 (mType.mElement.mType == Element.DataType.UNSIGNED_8)) {
432 "8 bit integer source does not match allocation type " + mType.mElement.mType);
436 if (mType.mElement.mType == Element.DataType.FLOAT_32) {
440 "32 bit float source does not match allocation type " + mType.mElement.mType);
444 if (mType.mElement.mType == Element.DataType.FLOAT_64) {
448 "64 bit float source does not match allocation type " + mType.mElement.mType);
452 if ((mType.mElement.mType == Element.DataType.RS_ELEMENT) ||
453 (mType.mElement.mType == Element.DataType.RS_TYPE) ||
454 (mType.mElement.mType == Element.DataType.RS_ALLOCATION) ||
455 (mType.mElement.mType == Element.DataType.RS_SAMPLER) ||
456 (mType.mElement.mType == Element.DataType.RS_SCRIPT)) {
460 "Object source does not match allocation type " + mType.mElement.mType);
470 return mType;
526 int xBytesSize = mType.getX() * mType.getElement().getBytesSize();
531 if (mType.getZ() > 0) {
534 } else if (mType.getY() > 0) {
536 data = new byte[xBytesSize * mType.getY()];
537 copy2DRangeToUnchecked(0, 0, mType.getX(), mType.getY(), data,
538 Element.DataType.SIGNED_8, xBytesSize * mType.getY());
542 copy1DRangeToUnchecked(0, mType.getX(), data);
550 mByteBuffer = mRS.nAllocationGetByteBuffer(getID(mRS), xBytesSize, mType.getY(), mType.getZ());
570 mByteBufferStride = mType.getX() * mType.getElement().getBytesSize();
625 if (mType.getElement().mKind != Element.DataKind.PIXEL_A) {
627 mType.getElement().mKind + ", type " +
628 mType.getElement().mType +
629 " of " + mType.getElement().getBytesSize() +
634 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) ||
635 (mType.getElement().getBytesSize() != 4)) {
637 mType.getElement().mKind + ", type " +
638 mType.getElement().mType +
639 " of " + mType.getElement().getBytesSize() +
644 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGB) ||
645 (mType.getElement().getBytesSize() != 2)) {
647 mType.getElement().mKind + ", type " +
648 mType.getElement().mType +
649 " of " + mType.getElement().getBytesSize() +
654 if ((mType.getElement().mKind != Element.DataKind.PIXEL_RGBA) ||
655 (mType.getElement().getBytesSize() != 2)) {
657 mType.getElement().mKind + ", type " +
658 mType.getElement().mType +
659 " of " + mType.getElement().getBytesSize() +
981 if (!mType.equals(a.getType())) {
997 int eSize = mType.mElement.getBytesSize();
1019 if (component_number >= mType.mElement.mElements.length) {
1028 int eSize = mType.mElement.mElements[component_number].getBytesSize();
1029 eSize *= mType.mElement.mArraySizes[component_number];
1054 if (component_number >= mType.mElement.mElements.length) {
1069 int eSize = mType.mElement.mElements[component_number].getBytesSize();
1070 eSize *= mType.mElement.mArraySizes[component_number];
1121 final int dataSize = mType.mElement.getBytesSize() * count;
1124 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1129 mType.mElement.mType.mSize, usePadding);
1448 final int dataSize = mType.mElement.getBytesSize() * w * h;
1452 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1465 mType.mElement.mType.mSize, usePadding);
1705 final int dataSize = mType.mElement.getBytesSize() * w * h * d;
1709 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1722 mType.mElement.mType.mSize, usePadding);
1800 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
1814 mRS.nAllocationRead(getID(mRS), array, dt, mType.mElement.mType.mSize, usePadding);
1965 if (component_number >= mType.mElement.mElements.length) {
1980 int eSize = mType.mElement.mElements[component_number].getBytesSize();
1981 eSize *= mType.mElement.mArraySizes[component_number];
1995 final int dataSize = mType.mElement.getBytesSize() * count;
1998 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
2003 mType.mElement.mType.mSize, usePadding);
2290 final int dataSize = mType.mElement.getBytesSize() * w * h;
2294 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
2306 array, sizeBytes, dt, mType.mElement.mType.mSize, usePadding);
2483 final int dataSize = mType.mElement.getBytesSize() * w * h * d;
2487 if (mAutoPadding && (mType.getElement().getVectorSize() == 3)) {
2499 array, sizeBytes, dt, mType.mElement.mType.mSize, usePadding);