]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/internal.h
lavc: introduce a new decoding/encoding API with decoupled input/output
[ffmpeg] / libavcodec / internal.h
index 3c1583dab4ea1ff07582908dbd481e5ba6463ac3..4bde09ab8adc2351a38667bdda2a7217b726bc13 100644 (file)
@@ -140,6 +140,19 @@ typedef struct AVCodecInternal {
      * hwaccel-specific private data
      */
     void *hwaccel_priv_data;
+
+    /**
+     * checks API usage: after codec draining, flush is required to resume operation
+     */
+    int draining;
+
+    /**
+     * buffers for using new encode/decode API through legacy API
+     */
+    AVPacket *buffer_pkt;
+    int buffer_pkt_valid; // encoding: packet without data can be valid
+    AVFrame *buffer_frame;
+    int draining_done;
 } AVCodecInternal;
 
 struct AVCodecDefault {