[vlc-devel] [PATCH 0/2] Filters with chroma conversion

Rémi Denis-Courmont remi at remlab.net
Fri May 5 22:30:30 CEST 2017


Le perjantaina 5. toukokuuta 2017, 22.06.28 EEST Steve Lhomme a écrit :
> On Fri, May 5, 2017 at 6:46 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> > Le perjantaina 5. toukokuuta 2017, 10.14.01 EEST Steve Lhomme a écrit :
> >> Right now we cannot use hardware decoding with CPU filters. The decoder
> >> outputs an opaque chroma that CPU filters can't deal with.
> > 
> > You can´t do it because filters deliberately reject GPU input formats, for
> > performance reason.
> 
> What's the performance hit of doing this ?

The same reason that we don´t enable video decoding without direct rendering. 
Copying from GPU memory to CPU memory is slow, usually no faster than decoding 
on CPU, and sometimes much slower.

> > The core already supports converting.

> Can you point me out the code that does conversion in the core ?
> That's precisely what I've been looking for and had to create to make
> this work.

Frankly, it´s hard to miss the filter_chain_AppendConverter() calls, or its 
older incarnation, if you look at the video output filter management code.

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list