GPU Compression

Julien Isorce julien.isorce at gmail.com
Wed Feb 25 01:38:31 PST 2015


For further optimisation,
with clCreateFromGLTexture2D it is possible to create a cl image2d object
from a previously created gl texture.

You could use that to feed directly a gl textures that come from the
glimagesink 's GstGLBufferPool. It avoids the frame round trip to CPU
memory.

Indeed your decoder will use this downstream pool and writes a cl object at
each iteration. Then glimagesink can draw the corresponding gl texture.

Similar mechanism can be find in vtdec. For decoders that use EGLImage it
is a bit different because eglCreateImage is used in libgstgl directly.

It could be useful to have a GstCLVideoDecoder base class that does this
setup and it could be reused with other compressed formats.

Also I would suggest to have a look at software decoders like jpegdec and
pngdec. They contain fewer code. Also the bottom page of GstVideoDecoder
where the doc explain the functions.

Julien
On 24 Feb 2015 13:42, "Aaron Boxer" <boxerab at gmail.com> wrote:

> Excellent, thanks guys. The link is very helpful, and makes me feel
> confident that I can stand on the
> "shoulders of giants" and get my plugin working.
>
>
>
> On Tue, Feb 24, 2015 at 3:06 AM, Sebastian Dröge <
> sebastian at centricular.com> wrote:
>
>> On Mo, 2015-02-23 at 10:12 -0500, Aaron Boxer wrote:
>> > Hello!
>> >
>> > I am working on a jpeg 2000 video compression library written in OpenCL,
>> > and I'm looking into gstreamer as way of streaming the compressed video.
>> >
>> > I have never used gstreamer before, but I understand that it supports
>> GPU
>> > codecs.
>> > Any advice or comments on how to do this with gstreamer would be greatly
>> > appreciated.
>>
>> You could take a look at the code of many of the existing non-software
>> based codec elements, e.g. gst-omx, v4l2viddec, androidmedia,
>> gstreamer-vaapi. For a high level view of what features are available to
>> make integration of hardware codecs easier you can also take a look
>> here:
>>
>> https://coaxion.net/blog/2013/10/the-never-ending-story-gstreamer-and-hardware-integration/
>>
>> --
>> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150225/689fde15/attachment.html>


More information about the gstreamer-devel mailing list