21 #ifndef QTAV_SUBIMAGE_H 22 #define QTAV_SUBIMAGE_H 25 #include <QtCore/QVector> 34 SubImage(
int x = 0,
int y = 0,
int w = 0,
int h = 0,
int stride = 0);
36 return x == o.
x && y == o.
y && w == o.
w && h == o.
h && stride == o.
stride && color == o.
color && data == o.
data;
51 bool isValid()
const {
return !images.isEmpty() && w > 0 && h > 0 && fmt != Unknown;}
52 void reset(
int width = 0,
int height = 0,
Format format = Unknown) {
60 return id == other.id && w == other.w && h == other.h && fmt == other.fmt && images == other.
images;
69 #endif //QTAV_SUBIMAGE_H Format
Definition: SubImage.h:46
Format format() const
Definition: SubImage.h:50
bool isValid() const
Definition: SubImage.h:51
#define Q_AV_EXPORT
Definition: QtAV_Global.h:40
Definition: SubImage.h:33
QByteArray data
Definition: SubImage.h:42
int x
Definition: SubImage.h:38
int h
Definition: SubImage.h:39
int w
Definition: SubImage.h:39
int width() const
Definition: SubImage.h:48
quint32 color
Definition: SubImage.h:41
int stride
Definition: SubImage.h:40
int y
Definition: SubImage.h:38
Definition: SubImage.h:45
void reset(int width=0, int height=0, Format format=Unknown)
Definition: SubImage.h:52
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
QVector< SubImage > images
Definition: SubImage.h:62
int height() const
Definition: SubImage.h:49