Loading rs/java/android/renderscript/Allocation.java +3 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,9 @@ public class Allocation extends BaseObj { * */ public int getBytesSize() { if (mType.mDimYuv != 0) { return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5); } return mType.getCount() * mType.getElement().getBytesSize(); } Loading Loading
rs/java/android/renderscript/Allocation.java +3 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,9 @@ public class Allocation extends BaseObj { * */ public int getBytesSize() { if (mType.mDimYuv != 0) { return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5); } return mType.getCount() * mType.getElement().getBytesSize(); } Loading