]> git.sesse.net Git - nageru/blob - futatabi/jpeg_destroyer.h
Reintroduce faster DeckLink shutdown; now with a fix for the UI switcher.
[nageru] / futatabi / jpeg_destroyer.h
1 #ifndef _JPEG_DESTROYER_H
2 #define _JPEG_DESTROYER_H 1
3
4 #include <jpeglib.h>
5
6 class JPEGDestroyer {
7 public:
8         JPEGDestroyer(jpeg_decompress_struct *dinfo)
9                 : dinfo(dinfo) {}
10
11         ~JPEGDestroyer()
12         {
13                 jpeg_destroy_decompress(dinfo);
14         }
15
16 private:
17         jpeg_decompress_struct *dinfo;
18 };
19
20 #endif  // !defined(_JPEG_DESTROYER_H)