]> git.sesse.net Git - nageru/blobdiff - ffmpeg_raii.h
Enable the video grid display for simple video mode, too.
[nageru] / ffmpeg_raii.h
index 0b112345d59727ca83728e638135bb3a0ab41159..c0c4a47dc170aa954862eacaa56eb9326cb739d2 100644 (file)
@@ -18,7 +18,7 @@ struct AVDictionary;
 struct AVFormatContext;
 struct AVFrame;
 struct AVInputFormat;
-
+struct SwsContext;
 
 // AVFormatContext
 struct avformat_close_input_unique {
@@ -62,4 +62,12 @@ typedef std::unique_ptr<AVFrame, av_frame_free_unique>
 
 AVFrameWithDeleter av_frame_alloc_unique();
 
+// SwsContext
+struct sws_free_context_unique {
+       void operator() (SwsContext *context) const;
+};
+
+typedef std::unique_ptr<SwsContext, sws_free_context_unique>
+       SwsContextWithDeleter;
+
 #endif  // !defined(_FFMPEG_RAII_H)