1 #ifndef _JPEG_FRAME_VIEW_H
2 #define _JPEG_FRAME_VIEW_H 1
4 #include <QGraphicsView>
5 #include <QGraphicsPixmapItem>
6 #include <QGraphicsScene>
12 class JPEGFrameView : public QGraphicsView {
16 JPEGFrameView(QWidget *parent);
18 void setFrame(unsigned stream_idx, int64_t pts)
20 this->stream_idx = stream_idx;
25 void setPixmap(std::shared_ptr<QPixmap> pixmap);
28 void resizeEvent(QResizeEvent *event) override;
33 QGraphicsPixmapItem item;
41 #endif // !defined(_JPEG_FRAME_VIEW_H)