BASE_frameSize static method

int BASE_frameSize(
  1. int width,
  2. int height,
  3. PixelFormat format
)

Implementation

static int BASE_frameSize(int width, int height, PixelFormat format) {
  if (width == 0 || height == 0) return 0;
  return width * height * BASE_bytesPerPixel(format);
}