Miam-Player  0.8.0
A nice music player
QtAV_Global.h File Reference
#include <stdarg.h>
#include <QtCore/QMetaType>
#include <QtCore/QByteArray>
#include <QtCore/qglobal.h>
#include <QtAV/dptr.h>

Go to the source code of this file.

Namespaces

 QtAV
 AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize()); ao->play(data, pts); } ao->close(); See QtAV/tests/ao/main.cpp for detail.
 

Macros

#define Q_AV_EXPORT   Q_DECL_IMPORT
 
#define Q_AV_PRIVATE_EXPORT   Q_AV_EXPORT
 
#define QByteArrayLiteral(str)   QByteArray(str, sizeof(str) - 1)
 
#define QTAV_HAVE(FEATURE)   (defined QTAV_HAVE_##FEATURE && QTAV_HAVE_##FEATURE)
 
#define Q_DECL_OVERRIDE
 
#define Q_DECL_FINAL
 
#define QTAV_DEPRECATED   Q_DECL_DEPRECATED
 

Enumerations

enum  QtAV::LogLevel {
  QtAV::LogOff, QtAV::LogDebug, QtAV::LogWarning, QtAV::LogCritical,
  QtAV::LogFatal, QtAV::LogAll
}
 
enum  QtAV::MediaStatus {
  QtAV::UnknownMediaStatus, QtAV::NoMedia, QtAV::LoadingMedia, QtAV::LoadedMedia,
  QtAV::StalledMedia, QtAV::BufferingMedia, QtAV::BufferedMedia, QtAV::EndOfMedia,
  QtAV::InvalidMedia
}
 
enum  QtAV::BufferMode { QtAV::BufferTime, QtAV::BufferBytes, QtAV::BufferPackets }
 
enum  QtAV::MediaEndActionFlag { QtAV::MediaEndAction_Default, QtAV::MediaEndAction_KeepDisplay = 1, QtAV::MediaEndAction_Pause = 1 << 1 }
 
enum  QtAV::SeekUnit { QtAV::SeekByTime, QtAV::SeekByByte, QtAV::SeekByFrame }
 
enum  QtAV::SeekType { QtAV::AccurateSeek, QtAV::KeyFrameSeek, QtAV::AnyFrameSeek }
 
enum  QtAV::ColorSpace {
  QtAV::ColorSpace_Unknown, QtAV::ColorSpace_RGB, QtAV::ColorSpace_GBR, QtAV::ColorSpace_BT601,
  QtAV::ColorSpace_BT709
}
 
enum  QtAV::ColorRange { QtAV::ColorRange_Unknown, QtAV::ColorRange_Limited, QtAV::ColorRange_Full }
 The ColorRange enum YUV or RGB color range. More...
 
enum  QtAV::SurfaceType { QtAV::HostMemorySurface, QtAV::GLTextureSurface, QtAV::SourceSurface, QtAV::UserSurface = 0xffff }
 The SurfaceType enum HostMemorySurface: Map the decoded frame to host memory GLTextureSurface: Map the decoded frame as an OpenGL texture SourceSurface: get the original surface from decoder, for example VASurfaceID for va-api, CUdeviceptr for CUDA and IDirect3DSurface9* for DXVA. More...
 

Functions

Q_AV_EXPORT unsigned QtAV_Version ()
 
Q_AV_EXPORT QString QtAV_Version_String ()
 
Q_AV_EXPORT QString QtAV_Version_String_Long ()
 
Q_AV_EXPORT QString QtAV::aboutFFmpeg_PlainText ()
 
Q_AV_EXPORT QString QtAV::aboutFFmpeg_HTML ()
 
Q_AV_EXPORT QString QtAV::aboutQtAV_PlainText ()
 
Q_AV_EXPORT QString QtAV::aboutQtAV_HTML ()
 
Q_AV_EXPORT void QtAV::setLogLevel (LogLevel value)
 Default value: LogOff for release build. More...
 
Q_AV_EXPORT LogLevel QtAV::logLevel ()
 
Q_AV_EXPORT void QtAV::setFFmpegLogHandler (void(*)(void *, int, const char *, va_list))
 Default handler is qt message logger. Set environment QTAV_FFMPEG_LOG=0 or setFFmpegLogHandler(0) to disable. More...
 
Q_AV_EXPORT void QtAV::setFFmpegLogLevel (const QByteArray &level)
 setFFmpegLogLevel More...
 
Q_AV_EXPORT QString QtAV::avformatOptions ()
 query the common options of avformat/avcodec that can be used by AVPlayer::setOptionsForXXX. Format/codec specified options are also included More...
 
Q_AV_EXPORT QString QtAV::avcodecOptions ()
 

Macro Definition Documentation

#define Q_AV_EXPORT   Q_DECL_IMPORT
#define Q_AV_PRIVATE_EXPORT   Q_AV_EXPORT
#define Q_DECL_FINAL
#define Q_DECL_OVERRIDE
#define QByteArrayLiteral (   str)    QByteArray(str, sizeof(str) - 1)
#define QTAV_DEPRECATED   Q_DECL_DEPRECATED
#define QTAV_HAVE (   FEATURE)    (defined QTAV_HAVE_##FEATURE && QTAV_HAVE_##FEATURE)

Function Documentation

Q_AV_EXPORT unsigned QtAV_Version ( )
Q_AV_EXPORT QString QtAV_Version_String ( )
Q_AV_EXPORT QString QtAV_Version_String_Long ( )