]> git.sesse.net Git - ffmpeg/commit
cuvid: support AVCodecContext.hw_device_ctx API
authorwm4 <nfxjfg@googlemail.com>
Thu, 4 May 2017 22:15:21 +0000 (00:15 +0200)
committerwm4 <nfxjfg@googlemail.com>
Thu, 4 May 2017 22:17:41 +0000 (00:17 +0200)
commitc0f17a905f3588bf61ba6d86a83c6835d431ed3d
tree0dba7dd91479f634e5d93d4d88a7f9d8ae198ff8
parent974ee16d6a71c31d0b5db4f139a40831c2f45776
cuvid: support AVCodecContext.hw_device_ctx API

This is a newer API that is intended for decoders like the cuvid
wrapper. Until now, the wrapper required to set an awkward
"incomplete" hw_frames_ctx to set the device. Now the device
can be set directly, and the user can get AV_PIX_FMT_CUDA output
for a specific device simply by setting hw_device_ctx.

This still does a dummy ff_get_format() call at init time, and should
be fully backward compatible.
doc/APIchanges
libavcodec/cuvid.c
libavcodec/version.h