-
Notifications
You must be signed in to change notification settings - Fork 10
/
QImageScanlines.h
31 lines (23 loc) · 899 Bytes
/
QImageScanlines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __QImageScanLines__
#define __QImageScanLines__
#include <QVideoFrame>
#include <QVideoSurfaceFormat>
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
class QImageScanLines
{
public:
QImageScanLines( QImage* image, QVideoFrame* videoFrame, const QVideoSurfaceFormat& surfaceFormat );
inline int width() const { return m_Image ? m_Image->width() : 0; }
inline int height() const { return m_Image ? m_Image->height() : 0; }
uchar* scanLine( int y );
void setSource( QImage* image, QVideoFrame* videoFrame, const QVideoSurfaceFormat& surfaceFormat );
protected:
QImage* m_Image;
bool m_BottomToTop;
};
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#endif