BASE_dataLength static method

int BASE_dataLength(
  1. int frameSize,
  2. int frameCount
)

Returns the total byte length of all image data across all frames.

Returns 0 if frameSize is 0 (i.e. width or height is 0).

Implementation

static int BASE_dataLength(int frameSize, int frameCount) {
  if (frameSize == 0) return 0;
  return frameSize * frameCount;
}