我尝试下面的代码将 VideoFrame 旋转 90 度,但它不起作用:
private VideoFrame rotateFrame(VideoFrame inVideoFrame) {
VideoFrame outVideoFrame = new VideoFrame(
inVideoFrame.getBuffer(),
90, inVideoFrame.getTimestampNs());
return outVideoFrame;
}
旋转videoFrame的正确逻辑是什么?