]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vda_vt_internal.h
dxva: move d3d11 locking/unlocking to functions
[ffmpeg] / libavcodec / vda_vt_internal.h
index 9ff63ccc52f4f19404e13a663eedfc4dd3348f68..e55a813899cd4bffa182974ace420bfa4584c065 100644 (file)
@@ -40,6 +40,13 @@ typedef struct VTContext {
 
     // The core video buffer
     CVImageBufferRef            frame;
+
+    // Current dummy frames context (depends on exact CVImageBufferRef params).
+    struct AVBufferRef         *cached_hw_frames_ctx;
+
+    // Non-NULL if the new hwaccel API is used. This is only a separate struct
+    // to ease compatibility with the old API.
+    struct AVVideotoolboxContext *vt_ctx;
 } VTContext;
 
 int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame);