I try below code to rotate VideoFrame by 90 degree but it doesn't work:
private VideoFrame rotateFrame(VideoFrame inVideoFrame) {
VideoFrame outVideoFrame = new VideoFrame(
inVideoFrame.getBuffer(),
90, inVideoFrame.getTimestampNs());
return outVideoFrame;
}
What's correct logic to rotate a videoFrame?