maxPushFrames method

int maxPushFrames(
  1. int inputLength
)

Conservative frame upper bound for one streaming push call.

Implementation

int maxPushFrames(int inputLength) {
  if (inputLength <= 0) return 0;
  return ((inputLength + hop - 1) ~/ hop) + 1;
}