]> git.sesse.net Git - ffmpeg/commit
lavc: Use hardware config information in ff_get_format()
authorMark Thompson <sw@jkqxz.net>
Wed, 25 Oct 2017 23:18:43 +0000 (00:18 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 26 Nov 2017 21:35:53 +0000 (21:35 +0000)
commit67e81d79ccfc6713c797ddb19a3b8aea476c947b
tree2e9791f724f1baadd939b595ef0dc447b826dffd
parent758fbc54fef2f31957b5c5f22e05e5fd9b04f631
lavc: Use hardware config information in ff_get_format()

This removes the dependency that hardware pixel formats previously had on
AVHWAccel instances, meaning only those which actually do something need
exist after this patch.

Also updates avcodec_default_get_format() to be able to choose hardware
formats if either a matching device has been supplied or no additional
external configuration is required, and avcodec_get_hw_frames_parameters()
to use the hardware config rather than searching the old hwaccel list.

The FF_CODEC_CAP_HWACCEL_REQUIRE_CLASS mechanism is deleted because it
no longer does anything (the codec already contains the pointers to the
matching hwaccels).
libavcodec/avcodec.h
libavcodec/cuviddec.c
libavcodec/decode.c
libavcodec/internal.h