]> git.sesse.net Git - nageru/blobdiff - player.h
Small refactoring in Player.
[nageru] / player.h
index a10a7cb9671f09924b5eda46266d6a492baccb25..294ffbaa3b9d765baade1f20966c32cf42d4800d 100644 (file)
--- a/player.h
+++ b/player.h
@@ -39,6 +39,10 @@ private:
        static int write_packet2_thunk(void *opaque, uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time);
        int write_packet2(uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time);
 
+       // Find the frame immediately before and after this point.
+       // Returns false if pts is after the last frame.
+       bool find_surrounding_frames(int64_t pts, int stream_idx, int64_t *pts_lower, int64_t *pts_upper);
+
        JPEGFrameView *destination;
        done_callback_func done_callback;
        progress_callback_func progress_callback;