BASE_dataLength static method
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;
}