am 351879df: Merge "Fix getBytesSize for YUV allocations."
* commit '351879df3aff02987a6f4c4485bf004a96fcb150': Fix getBytesSize for YUV allocations.
This commit is contained in:
@@ -223,6 +223,9 @@ public class Allocation extends BaseObj {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public int getBytesSize() {
|
public int getBytesSize() {
|
||||||
|
if (mType.mDimYuv != 0) {
|
||||||
|
return (int)Math.ceil(mType.getCount() * mType.getElement().getBytesSize() * 1.5);
|
||||||
|
}
|
||||||
return mType.getCount() * mType.getElement().getBytesSize();
|
return mType.getCount() * mType.getElement().getBytesSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user