James Almer
5cd60b6f2e
avcodec/libdav1d: reset pool size on allocation failure
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-03-19 14:03:39 -03:00
James Almer
f6803cfbd2
avcodec/libdav1d: unref the frame on failure
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-03-12 19:45:10 -03:00
Vittorio Giovara
38a4132132
libdav1d: Add support for reading hdr10 metadata
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-03-12 19:36:30 -03:00
James Almer
36bb2cc200
avcodec/libdav1d: consistently use AVERROR return values
...
Signed-off-by: James Almer <jamrial@gmail.com>
2019-03-12 19:18:14 -03:00
James Almer
28746a0e20
avcodec/libdav1d: use a custom picture allocator
...
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>
2019-03-12 19:17:45 -03:00
James Almer
2a31bf2a35
avcodec/libdav1d: move the pix_fmt enum array up in the file
...
This is in preparation for the following commit.
Signed-off-by: James Almer <jamrial@gmail.com>
2019-03-12 19:09:43 -03:00
James Almer
dcf64b599d
avcodec/libdav1d: route dav1d internal logs through av_log()
...
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>
2019-03-12 19:07:50 -03:00
James Almer
10931a0661
avcodec/libdav1d: properly free all output picture references
...
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>
2019-01-08 15:40:50 -03:00
James Almer
0e833f615b
avcodec/libdav1d: add support for 12bit streams
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-12-12 00:07:13 -03:00
James Almer
e695b0beba
avcodec/libdav1d: add an option to toggle Film Grain
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:05:10 -03:00
James Almer
0fca2f60da
avcodec/libdav1d: read profile from the sequence header referenced by the ouput picture
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:04:22 -03:00
James Almer
3cd275bcde
avcodec/libdav1d: use constants defined in the public API to limit thread count
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:04:21 -03:00
James Almer
53ca505acc
avcodec/libdav1d: remove init cleanup internal codec cap
...
It's no longer needed now that the AVFifoBuffer was removed.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-28 23:04:03 -03:00
James Almer
cc25529420
avcodec/libdav1d: update the API usage after upstream changes
...
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>
2018-11-25 21:42:10 -03:00
James Almer
752659327d
avcodec/libdav1d: fix build after a recent API break
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-14 10:05:25 -03:00
James Almer
beaa350e24
avcodec: libdav1d AV1 decoder wrapper.
...
Originally written by Ronald S. Bultje, with fixes, optimizations and
improvements by James Almer.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-05 21:48:11 -03:00