Some confusing with current version: YV12 rotation produce different (a little shifted) results from RGB32. Some reason is rotation direction change. Probably bug with center of rotation. I am not sure what is right.
Imagemagic avisynth port immaavs has rotate fuction, but it does not work for me.
There are many other good projects
http://www.leptonica.com/rotation.html