I am trying to implement image rotation for 1920x1080@60fps video stream that is received from a camera. (I am using i.MX8M-Mini and streaming video using GStreamer. And the video stream is planned to be transmitted using RTP, so I'm not working with a display unit.)
I've used a planar YUV (I420) camera before, and it was easy to implement rotation: I was just rotating Y, U and V planes separately with OpenCV's related functions**. But the thing is, current camera sends frames in a packed YUV format (YUY2).
Converting packed YUV frames to planar YUV format is expensive for me, since related hardware does not support YUY2-I420 conversion.
Is there any way to perform angular rotation on packed YUV frames (preferably using OpenCV)?
*: getRotationMatrix2D(), warpAffine()