Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QMediaFormatDerived Struct Reference

#include <qtmultimediaquicktypes_p.h>

+ Inheritance diagram for QMediaFormatDerived:
+ Collaboration diagram for QMediaFormatDerived:

Additional Inherited Members

- Public Types inherited from QMediaFormat
enum  FileFormat {
  UnspecifiedFormat = -1 , WMV , AVI , Matroska ,
  MPEG4 , Ogg , QuickTime , WebM ,
  Mpeg4Audio , AAC , WMA , MP3 ,
  FLAC , Wave , LastFileFormat = Wave
}
 Describes the container format used in a multimedia file or stream. More...
 
enum class  AudioCodec {
  Unspecified = -1 , MP3 , AAC , AC3 ,
  EAC3 , FLAC , DolbyTrueHD , Opus ,
  Vorbis , Wave , WMA , ALAC ,
  LastAudioCodec = ALAC
}
 \qmlproperty enumeration QtMultimedia::mediaFormat::fileFormat More...
 
enum class  VideoCodec {
  Unspecified = -1 , MPEG1 , MPEG2 , MPEG4 ,
  H264 , H265 , VP8 , VP9 ,
  AV1 , Theora , WMV , MotionJPEG ,
  LastVideoCodec = MotionJPEG
}
 \qmlproperty enumeration QtMultimedia::mediaFormat::audioCodec More...
 
enum  ConversionMode { Encode , Decode }
 In many cases, systems have asymmetric capabilities and can often decode more formats or codecs than can be encoded. More...
 
enum  ResolveFlags { NoFlags , RequiresVideo }
 Describes the requirements for resolving a suitable format for QMediaRecorder. More...
 
- Public Member Functions inherited from QMediaFormat
 QMediaFormat (FileFormat format=UnspecifiedFormat)
 \qmlproperty enumeration QtMultimedia::mediaFormat::videoCodec
 
 ~QMediaFormat ()
 Destroys the QMediaFormat object.
 
 QMediaFormat (const QMediaFormat &other) noexcept
 Constructs a QMediaFormat object by copying from other.
 
QMediaFormatoperator= (const QMediaFormat &other) noexcept
 Copies other into this QMediaFormat object.
 
 QMediaFormat (QMediaFormat &&other) noexcept=default
 Constructs a QMediaFormat objects by moving from other.
 
void swap (QMediaFormat &other) noexcept
 Swaps the media format with other.
 
FileFormat fileFormat () const
 
void setFileFormat (FileFormat f)
 
void setVideoCodec (VideoCodec codec)
 Sets the video codec to codec.
 
VideoCodec videoCodec () const
 Returns the video codec used in this format.
 
void setAudioCodec (AudioCodec codec)
 Sets the audio codec to codec.
 
AudioCodec audioCodec () const
 Returns the audio codec used in this format.
 
Q_INVOKABLE bool isSupported (ConversionMode mode) const
 Returns true if Qt Multimedia can encode or decode this format, depending on mode.
 
QMimeType mimeType () const
 Returns the \l{MIME type} for the file format used in this media format.
 
Q_INVOKABLE QList< FileFormatsupportedFileFormats (ConversionMode m)
 \qmlmethod list<FileFormat> QtMultimedia::mediaFormat::supportedFileFormats(conversionMode) Returns a list of file formats for the audio and video codec indicated by {conversionMode}.
 
Q_INVOKABLE QList< VideoCodecsupportedVideoCodecs (ConversionMode m)
 \qmlmethod list<VideoCodec> QtMultimedia::mediaFormat::supportedVideoCodecs(conversionMode) Returns a list of video codecs for the chosen file format and audio codec (conversionMode).
 
Q_INVOKABLE QList< AudioCodecsupportedAudioCodecs (ConversionMode m)
 \qmlmethod list<AudioCodec> QtMultimedia::mediaFormat::supportedAudioFormats(conversionMode) Returns a list of audio codecs for the chosen file format and video codec (conversionMode).
 
bool operator== (const QMediaFormat &other) const
 Returns true if other is equal to the current media format, otherwise returns false.
 
bool operator!= (const QMediaFormat &other) const
 Returns true if other is not equal to the current media format, otherwise returns false.
 
void resolveForEncoding (ResolveFlags flags)
 Resolves the format, based on flags, to a format that is supported by QMediaRecorder.
 
- Static Public Member Functions inherited from QMediaFormat
static Q_INVOKABLE QString fileFormatName (FileFormat fileFormat)
 \qmlmethod string QtMultimedia::mediaFormat::fileFormatName(fileFormat) Returns a string based name for fileFormat.
 
static Q_INVOKABLE QString audioCodecName (AudioCodec codec)
 \qmlmethod string QtMultimedia::mediaFormat::audioCodecName(codec) Returns a string based name for codec.
 
static Q_INVOKABLE QString videoCodecName (VideoCodec codec)
 \qmlmethod string QtMultimedia::mediaFormat::videoCodecName(codec) Returns a string based name for codec.
 
static Q_INVOKABLE QString fileFormatDescription (QMediaFormat::FileFormat fileFormat)
 \qmlmethod string QtMultimedia::mediaFormat::fileFormatDescription(fileFormat) Returns a description for fileFormat.
 
static Q_INVOKABLE QString audioCodecDescription (QMediaFormat::AudioCodec codec)
 \qmlmethod string QtMultimedia::mediaFormat::audioCodecDescription(codec) Returns a description for codec.
 
static Q_INVOKABLE QString videoCodecDescription (QMediaFormat::VideoCodec codec)
 \qmlmethod string QtMultimedia::mediaFormat::videoCodecDescription(codec) Returns a description for codec.
 
- Protected Attributes inherited from QMediaFormat
FileFormat fmt
 
AudioCodec audio = AudioCodec::Unspecified
 
VideoCodec video = VideoCodec::Unspecified
 
QExplicitlySharedDataPointer< QMediaFormatPrivated
 
- Properties inherited from QMediaFormat
FileFormat fileFormat
 The file (container) format of the media.
 
AudioCodec audioCodec
 The audio codec of the media.
 
VideoCodec videoCodec
 The video codec of the media.
 

Detailed Description

Definition at line 159 of file qtmultimediaquicktypes_p.h.


The documentation for this struct was generated from the following file: