summaryrefslogtreecommitdiffstats
path: root/libavcodec/libdav1d.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/libdav1d: fix setting AVFrame reordered_opaqueJames Almer2019-10-221-1/+26
| | | | | | | | | Actually reorder the values. Should effectively fix ticket #8300. Tested-by: Andrey Semashev <andrey.semashev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: set AVFrame reordered_opaqueJames Almer2019-10-171-0/+2
| | | | | | Fixes ticket #8300 Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: use the library default for the filmgrain optionJames Almer2019-09-151-2/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: allow setting frame size limit in pixelsJames Almer2019-08-141-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: add support for RGB streamsJames Almer2019-05-271-1/+12
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: assert Dav1dPicture allocator_data is set before ↵James Almer2019-05-271-1/+1
| | | | | | | | referencing its data To ensure the custom allocator is effectively used. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: export level from the Sequence HeaderJames Almer2019-05-271-0/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: fine tune thread distributionJames Almer2019-05-201-3/+13
| | | | | | | | As suggested by Ronald, don't map auto threads to frame threads only, and instead distribute them between frame and tile more efficiently. Add a new framethreads override option, similar to the tilethreads one. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: use a reference to the allocated buffer instead of ↵James Almer2019-03-191-16/+4
| | | | | | | | | | wrapping the Dav1dPicture Removes an av_malloc() per frame. Reviewed-by: BBB Reviewed-by: nevcairiel Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: reset pool size on allocation failureJames Almer2019-03-191-1/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: unref the frame on failureJames Almer2019-03-121-8/+16
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* libdav1d: Add support for reading hdr10 metadataVittorio Giovara2019-03-121-0/+28
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: consistently use AVERROR return valuesJames Almer2019-03-121-4/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: use a custom picture allocatorJames Almer2019-03-121-0/+60
| | | | | | | | | Replaces the libdav1d internal allocator. It uses an AVBufferPool to reduce the amount of allocated buffers. About 5% speed up when decoding 720p or higher streams. Reviewed-by: "Vittorio Giovara <vittorio.giovara@gmail.com>" Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: move the pix_fmt enum array up in the fileJames Almer2019-03-121-7/+7
| | | | | | This is in preparation for the following commit. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: route dav1d internal logs through av_log()James Almer2019-03-121-0/+9
| | | | | | | Bump the minimum required version to the first one with the logger API callback. Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: properly free all output picture referencesJames Almer2019-01-081-35/+40
| | | | | | | | Dav1dPictures contain more than one buffer reference, so we're forced to use the API properly to free them all. Reviewed-by: BBB Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: add support for 12bit streamsJames Almer2018-12-121-6/+6
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: add an option to toggle Film GrainJames Almer2018-11-281-0/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: read profile from the sequence header referenced by the ↵James Almer2018-11-281-9/+1
| | | | | | ouput picture Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: use constants defined in the public API to limit thread countJames Almer2018-11-281-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: remove init cleanup internal codec capJames Almer2018-11-281-2/+1
| | | | | | It's no longer needed now that the AVFifoBuffer was removed. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: update the API usage after upstream changesJames Almer2018-11-251-45/+21
| | | | | | | | The color fields were moved to another struct, and a way to propagate timestamps and other input metadata was introduced, so the packet fifo can be removed. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libdav1d: fix build after a recent API breakJames Almer2018-11-141-3/+9
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: libdav1d AV1 decoder wrapper.James Almer2018-11-051-0/+270
Originally written by Ronald S. Bultje, with fixes, optimizations and improvements by James Almer. Signed-off-by: James Almer <jamrial@gmail.com>
OpenPOWER on IntegriCloud