For x264enc, how can we achieve skip frame

For x264enc, how can we achieve skip frame.
When there is no motion we need to skip all macroblock hence skip full frame.
Our purpose is, when scene is static, we want to enable this functionality and transfer as few byte as possible as skipped frame.
Can you please suggest is there any way possible.