summaryrefslogtreecommitdiff
path: root/libavcodec/librav1e.c
Commit message (Collapse)AuthorAge
* avcodec/librav1e: Pass through timestamps as opaque user dataDerek Buitenhuis2021-01-17
| | | | | | | | | | | avcodec has no facilities to generate timestamps properly from output frame numbers (and it would be wrong for VFR anyway), so pass through the timestamps using rav1e's opaque user data feature, which was added in v0.4.0. This bumps the minimum librav1e version to 0.4.0. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/librav1e: Fix indentationDerek Buitenhuis2021-01-17
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/encode: restructure the core encoding codeJames Almer2020-06-18
| | | | | | | | | | | | | | | | This commit follows the same logic as 061a0c14bb, but for the encode API: The new public encoding API will no longer be a wrapper around the old deprecated one, and the internal API used by the encoders now consists of a single receive_packet() callback that pulls frames as required. amf encoders adapted by James Almer librav1e encoder adapted by James Almer nvidia encoders adapted by James Almer MediaFoundation encoders adapted by James Almer vaapi encoders adapted by Linjie Fu v4l2_m2m encoders adapted by Andriy Gelman Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/librav1e: Require a bitrate to be set when using 2-pass modeDerek Buitenhuis2020-05-03
| | | | | | | Not requiring this leads to unexpected result, since Rav1e's current two pass API has no way to fail in such a case. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/librav1e: Use the framerate when available for ratecontrolDerek Buitenhuis2020-05-01
| | | | | | | | Rav1e currently uses the time base given to it only for ratecontrol... where the inverse is taken and used as a framerate. So, do what we do in other wrappers and use the framerate if we can. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/librav1e: use AV_OPT_TYPE_DICT for rav1e-paramsMarton Balint2020-01-01
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* librav1e: Don't make users explicitly set -qp -1 to use bit rate modeDerek Buitenhuis2019-11-13
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/librav1e: free the RaPacket after using itJames Almer2019-11-10
| | | | | | | Fixes leaks. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Add librav1e encoderDerek Buitenhuis2019-11-10
Port to the new send/receive API by: James Almer <jamrial@gmail.com>. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>