[Spice-devel] Help with image encoding

Uri Lublin ulublin at redhat.com
Thu Jul 20 18:38:23 UTC 2023


On Wed, Jul 19, 2023 at 10:55 AM Frediano Ziglio <freddy77 at gmail.com> wrote:

> Il giorno dom 16 lug 2023 alle ore 07:58 Néfix Estrada
> <nefixestrada at gmail.com> ha scritto:
> >
> > Hello! I'm currently writting a Spice client in Typescript that makes
> > use of modern browser features (such as WebGPU, WebUSB, Web workers,
> etc).
> >
> >
> > However, I'm struggling with the Image image encoding. I've checked the
> > whole documentation site, but I wasn't able to find how each one of the
> > encoding works. My knowledge in both audio and video encoding is very
> > limited. Specifically:
> >
> > - QUIC
> >
> > - LZ (and all its variants)
> >
> >
> > I've been trying to understand them from the spice-common project, but
> > it's just the implementation without any type of docs :(
> >
> > Another question I had is if there's another way of comunication or a
> > place where I can shoot questions about the implementation
> >
> >
> > Also, I'm planning on gifting the client to the spice project, if you
> > would be interested in! (given that you already have a JS project)
> >
> >
> > Thanks in advance!
> >
> >
> > Néfix Estrada
> >
>
> Hi,
>    why not look at SPICE html client instead? It's already JS code so
> it  shouldn't be that different.
> For QUIC you can see Uri's link if you need some notes, LZ is more or
> less standard on decoding, you have uncompressed sections and
> references to previous chunks, so it's just a matter of understanding
> these encodings.
>

There is also a link in spice-common/common/lz.h:
" dictionary compression for images based on fastlz (http://www.fastlz.org/)
"

Uri.



>
> Regards,
>    Frediano
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20230720/d3b6256c/attachment.htm>


More information about the Spice-devel mailing list