summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_vp9.h
Commit message (Collapse)AuthorAge
* cbs: Ensure that reference fields always follow the associated pointerMark Thompson2020-09-02
| | | | | Having these together allows us to find both pointers given the address of only one of them.
* avcodec/cbs: Factor out common code for writing unitsAndreas Rheinhardt2019-11-17
| | | | | | | | | | | | | | | | | All cbs-functions to write units share a common pattern: 1. They check whether they have a write buffer (that is used to store the unit's data until the needed size becomes known after writing the unit when a dedicated buffer will be allocated). 2. They use this buffer for a PutBitContext. 3. The (codec-specific) writing takes place through the PutBitContext. 4. The return value is checked. AVERROR(ENOSPC) here always indicates that the buffer was too small and leads to a reallocation of said buffer. 5. The final buffer will be allocated and the data copied. This commit factors this common code out in a single function in cbs.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/cbs_vp9: store profile in the private contextJames Almer2018-10-30
| | | | | | Derived from profile_low_bit and profile_high_bit. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_vp9: keep track of reference framesJames Almer2018-10-30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_vp9: Ensure that reserved zero bits are actually zeroMark Thompson2018-10-30
|
* lavc: Add coded bitstream read/write support for VP9Mark Thompson2018-05-02