]> git.sesse.net Git - nageru/blobdiff - jpeg_frame_view.h
Start hacking in support for interpolated frames in the main application.
[nageru] / jpeg_frame_view.h
index 277241b69d70c77c5375a10dfec8b1fdfcb84f8b..1f7b2b7a67108a88e6baaaddcdbd436d0b746b4e 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <memory>
 
-std::string filename_for_frame(unsigned stream_idx, int64_t pts);
-
 struct Frame {
        std::unique_ptr<uint8_t[]> y, cb, cr;
        unsigned width, height;
@@ -20,6 +18,9 @@ struct Frame {
        unsigned pitch_y, pitch_chroma;
 };
 
+std::string filename_for_frame(unsigned stream_idx, int64_t pts);
+std::shared_ptr<Frame> decode_jpeg(const std::string &filename);
+
 class JPEGFrameView : public QGLWidget {
        Q_OBJECT