We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(uint32_t)onProcessVideoFrame:(TRTCVideoFrame *)srcFrame dstFrame:(TRTCVideoFrame *)dstFrame { _mContext = [EAGLContext currentContext]; if ([FUGLContext shareGLContext].currentGLContext != _mContext) { [[FUGLContext shareGLContext] setCustomGLContext: _mContext]; }
if ([FUManager shareManager].isRender) { [[FUTestRecorder shareRecorder] processFrameWithLog]; [[FUManager shareManager] updateBeautyBlurEffect]; //更新美颜磨皮效果 FURenderInput *input = [[FURenderInput alloc] init];
// 根据输入纹理调整参数设置 input.renderConfig.imageOrientation = FUImageOrientationDown; input.renderConfig.isFromFrontCamera = self.isFrontCamera; input.renderConfig.isFromMirroredCamera = YES; // stickerFlipH和stickerFlipV尽量不要使用,后续将不再维护,这里使用是为了适配老道具 input.renderConfig.stickerFlipH = !self.isFrontCamera; input.renderConfig.stickerFlipV = NO; FUTexture tex = {srcFrame.textureId, CGSizeMake(srcFrame.width, srcFrame.height)}; input.texture = tex; // 开启重力感应,内部会自动计算正确方向,设置fuSetDefaultRotationMode,无须外面设置 input.renderConfig.gravityEnable = YES; input.renderConfig.textureTransform = CCROT0_FLIPVERTICAL; FURenderOutput *output = [[FURenderKit shareRenderKit] renderWithInput:input]; dstFrame.textureId = output.texture.ID; if (output.texture.ID != 0) { return output.texture.ID; }
} return 0; }
崩溃在: FURenderOutput *output = [[FURenderKit shareRenderKit] renderWithInput:input]; 崩溃原因显示: glGetError:GL_INVALID_VALUE 和 glGetError:GL_INVALID_FRAMEBUFFER_OPERATION
The text was updated successfully, but these errors were encountered:
同样的,官方没解决吗
Sorry, something went wrong.
No branches or pull requests
(uint32_t)onProcessVideoFrame:(TRTCVideoFrame *)srcFrame dstFrame:(TRTCVideoFrame *)dstFrame {
_mContext = [EAGLContext currentContext];
if ([FUGLContext shareGLContext].currentGLContext != _mContext) {
[[FUGLContext shareGLContext] setCustomGLContext: _mContext];
}
if ([FUManager shareManager].isRender) {
[[FUTestRecorder shareRecorder] processFrameWithLog];
[[FUManager shareManager] updateBeautyBlurEffect]; //更新美颜磨皮效果
FURenderInput *input = [[FURenderInput alloc] init];
}
return 0;
}
崩溃在: FURenderOutput *output = [[FURenderKit shareRenderKit] renderWithInput:input];
崩溃原因显示: glGetError:GL_INVALID_VALUE 和 glGetError:GL_INVALID_FRAMEBUFFER_OPERATION
The text was updated successfully, but these errors were encountered: