You may have to first extend image into a greater resolution so that rotation won’t hide corners if these are significant.
Once you can rotate the way you want, you may have to derive your own gstreamer plugin from nvivafilter (or nvvidconv) and add a dynamically settable property for dynamically providing your wanted rotation angle.