Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d39e19eb authored by Tim Murray's avatar Tim Murray Committed by Android Git Automerger
Browse files

am 351879df: Merge "Fix getBytesSize for YUV allocations."

* commit '351879df':
  Fix getBytesSize for YUV allocations.
parents 16e9362e 351879df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -223,6 +223,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();
    }