]> git.sesse.net Git - ffmpeg/commit
avcodec/videotoolbox: allow not setting the kCVPixelBufferPixelFormatTypeKey
authorwm4 <nfxjfg@googlemail.com>
Fri, 24 Feb 2017 09:17:34 +0000 (10:17 +0100)
committerwm4 <nfxjfg@googlemail.com>
Thu, 2 Mar 2017 09:32:21 +0000 (10:32 +0100)
commitade7c1a2326e2bb9be5e60a48b9968eb1d16bfaf
treed901ba9065495d2aa62c379731737d8cdf172c66
parent227f6e1e8d4bd23734db9769bb52cc9896e253b5
avcodec/videotoolbox: allow not setting the kCVPixelBufferPixelFormatTypeKey

If AVVideotoolboxContext.cv_pix_fmt_type is set to 0, don't set the
kCVPixelBufferPixelFormatTypeKey value on the VT decoder.

This makes VT output its native format, which can be much faster on
some hardware iterations (if the native format does not match with
the requested format, it will be converted, which is slow).

The default is still forcing nv12.
doc/APIchanges
libavcodec/version.h
libavcodec/videotoolbox.c
libavcodec/videotoolbox.h