22 #ifndef QTAV_VIDEOFORMAT_H 23 #define QTAV_VIDEOFORMAT_H 25 #include <QtCore/QSharedDataPointer> 26 #include <QtCore/QString> 27 #include <QtGui/QImage> 34 class VideoFormatPrivate;
140 static PixelFormat pixelFormatFromImageFormat(QImage::Format format);
145 static QImage::Format imageFormatFromPixelFormat(
PixelFormat format);
148 static QVector<int> pixelFormatsFFmpeg();
163 bool operator==(QImage::Format qpixfmt)
const;
167 bool operator!=(QImage::Format qpixfmt)
const;
168 bool operator!=(
int ffpixfmt)
const;
170 bool isValid()
const;
173 int pixelFormatFFmpeg()
const;
174 QImage::Format imageFormat()
const;
175 QString name()
const;
181 void setPixelFormatFFmpeg(
int format);
187 int channels()
const;
193 int channels(
int plane)
const;
198 int planeCount()
const;
206 int bitsPerPixel()
const;
208 int bitsPerPixel(
int plane)
const;
210 int bitsPerPixelPadded()
const;
211 int bytesPerPixel()
const;
212 int bytesPerPixel(
int plane)
const;
217 int bitsPerComponent()
const;
220 int bytesPerLine(
int width,
int plane)
const;
226 int chromaWidth(
int lumaWidth)
const;
227 int chromaHeight(
int lumaHeight)
const;
233 int width(
int lumaWidth,
int plane)
const;
234 int height(
int lumaHeight,
int plane)
const;
239 qreal normalizedWidth(
int plane)
const;
240 qreal normalizedHeight(
int plane)
const;
243 bool isBigEndian()
const;
244 bool hasPalette()
const;
245 bool isPseudoPaletted()
const;
249 bool isBitStream()
const;
253 bool isHWAccelerated()
const;
263 bool isPlanar()
const;
265 bool hasAlpha()
const;
272 QSharedDataPointer<VideoFormatPrivate> d;
275 #ifndef QT_NO_DEBUG_STREAM 285 #endif // QTAV_VIDEOFORMAT_H
#define Q_AV_EXPORT
Definition: QtAV_Global.h:40
Q_AV_EXPORT QDebug operator<<(QDebug debug, const AudioFormat &fmt)
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31