Do anyone know how to obtain the raw buffer of ShaderEffectSource? I would like to do some postprocessing on it(save image, video record etc)
Do anyone know how to obtain the raw buffer of ShaderEffectSource? I would like to do some postprocessing on it(save image, video record etc)
"Get" it where? You can use a shader effect to do postprocessing of the shader effect source. I don't think saving a single item is possible. You can grab the whole window, if you want.
I can grab the whole window by grabWindow()
but it is too slow if I want to record the qml scene as video
That is why I want to get the raw buffer of the texture
rendered by shaderEffectSource and encode it into
a video file.
And you really think stopping the GL pipeline and transferring the image back to the CPU memory would not be slow?![]()
I think it depends how low-level can you go with your code. Tapping into QPA plugin would probably be best performance wide. But probably you can get away with using QQuickWindow::setRenderTarget() and passing an FBO that you can later convert to a image (possibly in another thread).
stereoMatching (15th June 2013)
Bookmarks