summaryrefslogtreecommitdiffstats
path: root/libavcodec/nvdec.h
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/nvdec: Explicitly mark codecs that support 444 output formatsPhilip Langdale2019-02-161-1/+4
| | | | | | | | | With the introduction of HEVC 444 support, we technically have two codecs that can handle 444 - HEVC and MJPEG. In the case of MJPEG, it can decode, but can only output one of the semi-planar formats. That means we need additional logic to decide whether to use a 444 output format or not.
* avcodec/nv{enc,dec}: use sane version checking macroTimo Rothenpieler2018-04-131-0/+9
| | | | | For some odd reason, the Nvidia version macros puts the minor version in the msb, so comparing against it is impossible.
* avcodec: Refactor common nvdec hwaccel logicPhilip Langdale2017-11-201-0/+4
| | | | | | | | | The 'simple' hwaccels (not h.264 and hevc) all use the same bitstream management and reference lookup logic so let's refactor all that into common functions. I verified that casting a signed int -1 to unsigned char produces 255 according to the C language specification.
* nvdec: add frames_params supportwm42017-11-111-1/+4
|
* avcodec/nvdec: fix copyright headersJames Almer2017-11-101-5/+5
| | | | | | Fixes fate-source. Signed-off-by: James Almer <jamrial@gmail.com>
* h264dec: add a NVDEC hwaccelAnton Khirnov2017-11-101-0/+62
Some parts of the code are based on a patch by Timo Rothenpieler <timo@rothenpieler.org> Merges Libav commit b9129ec4668c511e0a79e25c6f25d748cee172c9. Due to the name clash with our cuvid decoder, rename it to nvdec. This commit also changes the Libav code to dynamic loading of the cuda/cuvid libraries. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
OpenPOWER on IntegriCloud