![]() |
Miam-Player
0.8.0
A nice music player
|
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...
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< AVFrameBuffers > | AVFrameBuffersRef |
typedef QString | SubtitleProcessorId |
typedef QSharedPointer< VideoSurfaceInterop > | VideoSurfaceInteropPtr |
typedef int | VideoDecoderId |
typedef int | VideoEncoderId |
typedef int | VideoRendererId |
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) |
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 int QtAV::AudioDecoderId |
typedef int QtAV::AudioEncoderId |
typedef int QtAV::AudioOutputBackendId |
typedef int QtAV::AudioResamplerId |
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 |
typedef QSharedPointer<VideoSurfaceInterop> QtAV::VideoSurfaceInteropPtr |
enum QtAV::BufferMode |
enum QtAV::ColorRange |
enum QtAV::ColorSpace |
enum QtAV::LogLevel |
enum QtAV::MediaStatus |
enum QtAV::SeekType |
enum QtAV::SeekUnit |
enum QtAV::ShaderType |
enum QtAV::SurfaceType |
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 |
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
level | can 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.
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 |