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

Steve Lhomme robux4 at videolabs.io
Fri May 5 10:14:01 CEST 2017


Right now we cannot use hardware decoding with CPU filters. The decoder outputs
an opaque chroma that CPU filters can't deal with.

This solution is similar to the chroma converter chains that are used to match
the vout output and the decoder output in some case. It uses a "video filter"
module using the requested filter and "middle man" CPU chroma that can be
converted back and forth from the GPU opaque texture.

By default the behaviour or loading just the requested filter is not changed,
only in the video output we allow a less strict matching of filters to allow
this special filter.

Multiple filters only use one instance of GPU->CPU and CPU->GPU conversions.
All filters likely using the same chroma (I420 or other).

Ref #18078

Steve Lhomme (2):
  [RFC] filters: add mode to add a filter including conversion filters
  video_filter: add a module using converters around a filter when it
    can't be used as-is

 include/vlc_filter.h                 |   5 +-
 modules/MODULES_LIST                 |   1 +
 modules/stream_out/transcode/video.c |   4 +-
 modules/video_chroma/chain.c         |   2 +-
 modules/video_filter/Makefile.am     |   5 +-
 modules/video_filter/chain.c         | 216 +++++++++++++++++++++++++++++++++++
 src/misc/filter_chain.c              |  15 ++-
 src/video_output/video_output.c      |   2 +-
 8 files changed, 238 insertions(+), 12 deletions(-)
 create mode 100644 modules/video_filter/chain.c

-- 
2.12.1



More information about the vlc-devel mailing list