How to obtain the frame difference between the fenc (encoded frame) and fdec of the current frame (decoded) in X.264?