fun compressIf(block: (frame: Frame) -> Boolean): Unit
Indicates if the outgoing frame should be compressed.
Compress the frame only if all conditions passed.