public static int getBitmapByteSize(int width, int height, Bitmap.Config config) {
        return width * height * getBytesPerPixel(config);
    }
Returns the in memory size of {@link Bitmap} with the given width, height, and
{@link Bitmap.Config}.
core/src/main/java/com/bumptech/glide/util/Util.java