lavfi: Hardware map filter

Multimedia / Libav - Mark Thompson [jkqxz.net] - 3 November 2016 18:49 UTC

Takes a frame associated with a hardware context as input and maps it to something else (another hardware frame or normal memory) for other processing. If the frame to map was originally in the target format (but mapped to something else), the original frame is output.

Also supports mapping backwards, where only the output has a hardware context. The link immediately before will be supplied with mapped hardware frames which it can write directly into, and this filter then unmaps them back to the actual hardware frames.

124e269 lavfi: Hardware map filter
libavfilter/Makefile | 1 +
libavfilter/allfilters.c | 1 +
libavfilter/version.h | 2 +-
libavfilter/vf_hwmap.c | 335 ++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 338 insertions(+), 1 deletion(-)

Upstream: git.libav.org


  • Share