#ifndef _JPEG_FRAME_VIEW_H
#define _JPEG_FRAME_VIEW_H 1
-#include <epoxy/gl.h>
-#include <QGLWidget>
-
-#include <stdint.h>
+#include "jpeg_frame.h"
+#include "ycbcr_converter.h"
+#include <QGLWidget>
+#include <epoxy/gl.h>
+#include <memory>
#include <movit/effect_chain.h>
#include <movit/flat_input.h>
#include <movit/mix_effect.h>
#include <movit/ycbcr_input.h>
-
-#include <memory>
+#include <stdint.h>
#include <thread>
-#include "jpeg_frame.h"
-#include "ycbcr_converter.h"
-
struct JPEGID {
unsigned stream_idx;
int64_t pts;
- bool interpolated;
};
enum CacheMissBehavior {
DECODE_IF_NOT_IN_CACHE,
public:
JPEGFrameView(QWidget *parent);
- void setFrame(unsigned stream_idx, int64_t pts, bool interpolated, int secondary_stream_idx = -1, int64_t secondary_pts = -1, float fade_alpha = 0.0f);
- static void insert_interpolated_frame(unsigned stream_idx, int64_t pts, std::shared_ptr<Frame> frame);
+ void setFrame(unsigned stream_idx, int64_t pts, int secondary_stream_idx = -1, int64_t secondary_pts = -1, float fade_alpha = 0.0f);
+ void setFrame(std::shared_ptr<Frame> frame);
void mousePressEvent(QMouseEvent *event) override;