]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cbs_internal.h
vp9dec: support exporting QP tables through the AVVideoEncParams API
[ffmpeg] / libavcodec / cbs_internal.h
index dd4babf092ab30f30ff0d23f06e6c314a2ce6e8e..4c5a535ca6e90e8db9c7cf34a82bb8dc8ddb5090 100644 (file)
@@ -44,9 +44,11 @@ typedef struct CodedBitstreamType {
     int (*read_unit)(CodedBitstreamContext *ctx,
                      CodedBitstreamUnit *unit);
 
-    // Write the unit->data bitstream from unit->content.
+    // Write the data bitstream from unit->content into pbc.
+    // Return value AVERROR(ENOSPC) indicates that pbc was too small.
     int (*write_unit)(CodedBitstreamContext *ctx,
-                      CodedBitstreamUnit *unit);
+                      CodedBitstreamUnit *unit,
+                      PutBitContext *pbc);
 
     // Read the data from all of frag->units and assemble it into
     // a bitstream for the whole fragment.