Opengl framebuffer source
arizonausa
penbosidodev at gmail.com
Fri Jul 15 16:50:37 UTC 2016
Hi Matt,
Thanks for your answer. Sorry for the unclear question. what we actually do
is using OpenGL to do alpha blending of two 2D textures, one is in RGBA
format, and another is YUV, we also use fragment shader to do colorspace
transformation for YUV texture first and alpha blending of two textures
before rendering to screen. Right now, in addition to render to screen, I
also want to grab the pixel data after fragment shader to a Frame buffer
object, which should be in RGBA format, and sample this blended pixel data
into YUV420 data, then reroute those YUV420 data back to CPU for the next
processing.
So The question is there have any Gstreamer plugins can save the pixel data
after my fragment shader, and then do the shader based sampling and other
thing then, Thank you.
Kevin
Matthew Waters wrote
> On 15/07/16 02:21, arizonausa wrote:
>> Hi All,
>>
>> I am looking for a solution on using Gstreamer to grab the framebuffer,
>> transform it's colors place from RGBA to I420, then use OMX-based encoder
>> to
>> finish h264 or h265 encoding.
>
> This all depends on what exactly you mean by 'framebuffer'. Inside
> OpenGL, framebuffer's don't actually hold any data and are just
> container objects for textures/renderbuffers that you can render
> from/to. You can download texture but not renderbuffers.
>
> The other interpretation of framebuffer is /dev/fb like thing which I'm
> not entirely sure what facilities are available for readback of that.
> This is not in the OpenGL domain though so you'll need to consult your
> platform's documentation/samples/etc.
>
> Cheers
> -Matt
>
>> I don't find any OPENGL based source plugins which can grab framebuffer
>> to a
>> FBO, and save the transformed I420 data to a OPENGL texture.
>>
>> Do anyone have idea on my case, thanks.
>>
>> Kevin
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at .freedesktop
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> signature.asc (484 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4678693/0/signature.asc>
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Opengl-framebuffer-source-tp4678685p4678698.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list