Miam-Player  0.8.0
A nice music player
QtAV Namespace Reference

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. More...

Classes

class  AudioDecoder
 
class  AudioDecoderPrivate
 
class  AudioEncodeFilter
 
class  AudioEncoder
 
class  AudioEncoderPrivate
 
class  AudioFilter
 
class  AudioFilterPrivate
 
class  AudioFormat
 
class  AudioFrame
 
class  AudioOutput
 
class  AudioOutputBackend
 
class  AudioResampler
 
class  AudioResamplerPrivate
 
class  AVClock
 
class  AVDecoder
 
class  AVDecoderPrivate
 
class  AVDemuxer
 
class  AVEncoder
 
class  AVEncoderPrivate
 
class  AVError
 
class  AVFrameBuffers
 
class  AVMuxer
 
class  AVOutput
 
class  AVOutputPrivate
 
class  AVPlayer
 The AVPlayer class Preload: More...
 
class  AVTranscoder
 
class  ConvolutionShader
 The ConvolutionShader class Uniform u_Kernel is used. More...
 
class  DynamicShaderObject
 The DynamicShaderObject class Able to set custom shader code. More...
 
class  Filter
 
class  FilterPrivate
 
class  Frame
 
class  FramePrivate
 
class  FrameReader
 The FrameReader class while (reader->readMore()) { while (reader->hasVideoFrame()) { //or hasEnoughVideoFrames() reader->getVideoFrame(); ... More...
 
class  GLSLFilter
 
class  LibAVFilter
 
class  LibAVFilterAudio
 
class  LibAVFilterVideo
 
class  MediaIO
 
class  MediaIOPrivate
 
class  OpenGLRendererBase
 
class  OpenGLRendererBasePrivate
 
class  OpenGLVideo
 The OpenGLVideo class high level api for renderering a video frame. More...
 
class  OpenGLWindowRenderer
 
class  Packet
 
class  PlayerSubtitle
 The PlayerSubtitle class Bind Subtitle to AVPlayer. More...
 
class  Q_DECL_FINAL
 
class  QPainterRenderer
 
class  QPainterRendererPrivate
 
class  Statistics
 
struct  SubImage
 
struct  SubImageSet
 
class  Subtitle
 
class  SubtitleAPIProxy
 
class  SubtitleFilter
 The SubtitleFilter class draw text and image subtitles Subtitle load priority: user specified file (setFile(...)) > auto load external (autoLoad() must be true) > embedded subtitle. More...
 
class  SubtitleFrame
 
class  SubtitleProcessor
 
class  Uniform
 
class  VideoCapture
 
class  VideoDecoder
 
class  VideoDecoderPrivate
 
class  VideoEncodeFilter
 
class  VideoEncoder
 
class  VideoEncoderPrivate
 
class  VideoFilter
 
class  VideoFilterContext
 
class  VideoFilterPrivate
 
class  VideoFormat
 The VideoFormat class Describes the layout of video data. More...
 
class  VideoFrame
 
class  VideoFrameConverter
 
class  VideoFrameExtractor
 
class  VideoMaterial
 The VideoMaterial class Encapsulates rendering state for a video shader program. More...
 
class  VideoMaterialPrivate
 
class  VideoOutput
 The VideoOutput class A VideoRenderer wrapper with QObject features. More...
 
class  VideoRenderer
 
class  VideoRendererPrivate
 
class  VideoShader
 The VideoShader class Represents a shader for rendering a video frame. More...
 
class  VideoShaderObject
 The VideoShaderObject class User defined uniform names are bound to class meta properties (property signals are required) and object dynamic properties. More...
 
class  VideoShaderPrivate
 
class  VideoSurfaceInterop
 

Typedefs

typedef int AudioDecoderId
 
typedef int AudioEncoderId
 
typedef int AudioResamplerId
 
typedef int MediaIOId
 MediaIO Built-in io (use MediaIO::create(name), example: MediaIO *qio = MediaIO::create("QIODevice")) "QIODevice": properties: device - read/write. More...
 
typedef OpenGLWindowRenderer VideoRendererOpenGLWindow
 
typedef int AudioOutputBackendId
 
typedef QSharedPointer< AVFrameBuffersAVFrameBuffersRef
 
typedef QString SubtitleProcessorId
 
typedef QSharedPointer< VideoSurfaceInteropVideoSurfaceInteropPtr
 
typedef int VideoDecoderId
 
typedef int VideoEncoderId
 
typedef int VideoRendererId
 

Enumerations

enum  ShaderType { VertexShader, FragmentShader, ShaderTypeCount }
 
enum  LogLevel {
  LogOff, LogDebug, LogWarning, LogCritical,
  LogFatal, LogAll
}
 
enum  MediaStatus {
  UnknownMediaStatus, NoMedia, LoadingMedia, LoadedMedia,
  StalledMedia, BufferingMedia, BufferedMedia, EndOfMedia,
  InvalidMedia
}
 
enum  BufferMode { BufferTime, BufferBytes, BufferPackets }
 
enum  MediaEndActionFlag { MediaEndAction_Default, MediaEndAction_KeepDisplay = 1, MediaEndAction_Pause = 1 << 1 }
 
enum  SeekUnit { SeekByTime, SeekByByte, SeekByFrame }
 
enum  SeekType { AccurateSeek, KeyFrameSeek, AnyFrameSeek }
 
enum  ColorSpace {
  ColorSpace_Unknown, ColorSpace_RGB, ColorSpace_GBR, ColorSpace_BT601,
  ColorSpace_BT709
}
 
enum  ColorRange { ColorRange_Unknown, ColorRange_Limited, ColorRange_Full }
 The ColorRange enum YUV or RGB color range. More...
 
enum  SurfaceType { HostMemorySurface, GLTextureSurface, SourceSurface, 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 QDebug operator<< (QDebug debug, const AudioFormat &fmt)
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, AudioFormat::SampleFormat sampleFormat)
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, AudioFormat::ChannelLayout channelLayout)
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, const Uniform &u)
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, Uniform::Type ut)
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, const Packet &pkt)
 
Q_AV_EXPORT QString aboutFFmpeg_PlainText ()
 
Q_AV_EXPORT QString aboutFFmpeg_HTML ()
 
Q_AV_EXPORT QString aboutQtAV_PlainText ()
 
Q_AV_EXPORT QString aboutQtAV_HTML ()
 
Q_AV_EXPORT void setLogLevel (LogLevel value)
 Default value: LogOff for release build. More...
 
Q_AV_EXPORT LogLevel logLevel ()
 
Q_AV_EXPORT void 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 setFFmpegLogLevel (const QByteArray &level)
 setFFmpegLogLevel More...
 
Q_AV_EXPORT QString 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 avcodecOptions ()
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, const VideoFormat &fmt)
 
Q_AV_EXPORT QDebug operator<< (QDebug debug, VideoFormat::PixelFormat pixFmt)
 

Variables

Q_DECL_DEPRECATED typedef MediaIO AVInput
 
Q_AV_EXPORT AudioDecoderId AudioDecoderId_FFmpeg
 
Q_AV_EXPORT AudioResamplerId AudioResamplerId_FF
 
Q_AV_EXPORT AudioResamplerId AudioResamplerId_Libav
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_FFmpeg
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_CUDA
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_DXVA
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_D3D11
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_VAAPI
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_Cedarv
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_VDA
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_VideoToolbox
 
Q_AV_EXPORT VideoDecoderId VideoDecoderId_MediaCodec
 
Q_AV_EXPORT VideoRendererId VideoRendererId_OpenGLWindow
 

Detailed Description

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.

Forward declaration.

TODO: fromAVFrame(const AVFrame* f);.

values from functions are dynamically calculated

TODO: add api id(), name(), detail()

Typedef Documentation

typedef int QtAV::AudioDecoderId
typedef int QtAV::AudioEncoderId
typedef QSharedPointer<AVFrameBuffers> QtAV::AVFrameBuffersRef
typedef int QtAV::MediaIOId

MediaIO Built-in io (use MediaIO::create(name), example: MediaIO *qio = MediaIO::create("QIODevice")) "QIODevice": properties: device - read/write.

parameter: QIODevice*. example: io->setDevice(mydev) "QFile" properties: device - read only. example: io->device() protocols: "", "qrc"

typedef QString QtAV::SubtitleProcessorId
typedef int QtAV::VideoDecoderId
typedef int QtAV::VideoEncoderId
typedef int QtAV::VideoRendererId

Enumeration Type Documentation

Enumerator
BufferTime 
BufferBytes 
BufferPackets 

The ColorRange enum YUV or RGB color range.

Enumerator
ColorRange_Unknown 
ColorRange_Limited 
ColorRange_Full 
Enumerator
ColorSpace_Unknown 
ColorSpace_RGB 
ColorSpace_GBR 
ColorSpace_BT601 
ColorSpace_BT709 
Enumerator
LogOff 
LogDebug 
LogWarning 
LogCritical 
LogFatal 
LogAll 
Enumerator
MediaEndAction_Default 
MediaEndAction_KeepDisplay 

stop playback (if loop end) and clear video renderer

MediaEndAction_Pause 

stop playback but video renderer keeps the last frame

Enumerator
UnknownMediaStatus 
NoMedia 
LoadingMedia 
LoadedMedia 
StalledMedia 
BufferingMedia 
BufferedMedia 
EndOfMedia 
InvalidMedia 
Enumerator
AccurateSeek 
KeyFrameSeek 
AnyFrameSeek 
Enumerator
SeekByTime 
SeekByByte 
SeekByFrame 
Enumerator
VertexShader 
FragmentShader 
ShaderTypeCount 

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.

Zero copy mode is required. UserSurface: Do your own magic mapping with it

Enumerator
HostMemorySurface 
GLTextureSurface 
SourceSurface 
UserSurface 

Function Documentation

Q_AV_EXPORT QString QtAV::aboutFFmpeg_HTML ( )
Q_AV_EXPORT QString QtAV::aboutFFmpeg_PlainText ( )
Q_AV_EXPORT QString QtAV::aboutQtAV_HTML ( )
Q_AV_EXPORT QString QtAV::aboutQtAV_PlainText ( )
Q_AV_EXPORT QString QtAV::avcodecOptions ( )
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

Q_AV_EXPORT LogLevel QtAV::logLevel ( )
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
const Packet pkt 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
const Uniform u 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
Uniform::Type  ut 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
const AudioFormat fmt 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
AudioFormat::SampleFormat  sampleFormat 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
AudioFormat::ChannelLayout  channelLayout 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
const VideoFormat fmt 
)
Q_AV_EXPORT QDebug QtAV::operator<< ( QDebug  debug,
VideoFormat::PixelFormat  pixFmt 
)
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.

Q_AV_EXPORT void QtAV::setFFmpegLogLevel ( const QByteArray &  level)

setFFmpegLogLevel

Parameters
levelcan be: quiet, panic, fatal, error, warn, info, verbose, debug, trace
Q_AV_EXPORT void QtAV::setLogLevel ( LogLevel  value)

Default value: LogOff for release build.

LogAll for debug build. The level can also be changed at runtime by setting the QTAV_LOG_LEVEL or QTAV_LOG environment variable; QTAV_LOG_LEVEL can be: off, debug, warning, critical, fatal, all. Or use their enum values if both setLogLevel() is called and QTAV_LOG_LEVEL is set, the environment variable takes preceden.

Variable Documentation

Q_AV_EXPORT AudioDecoderId QtAV::AudioDecoderId_FFmpeg
Q_AV_EXPORT AudioResamplerId QtAV::AudioResamplerId_FF
Q_AV_EXPORT AudioResamplerId QtAV::AudioResamplerId_Libav
Q_DECL_DEPRECATED typedef MediaIO QtAV::AVInput
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_Cedarv
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_CUDA
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_D3D11
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_DXVA
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_FFmpeg
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_MediaCodec
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_VAAPI
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_VDA
Q_AV_EXPORT VideoDecoderId QtAV::VideoDecoderId_VideoToolbox
Q_AV_EXPORT VideoRendererId QtAV::VideoRendererId_OpenGLWindow