|
MythTV master
|
Read and write Vorbis (Xiph) tags in a FLAC file. More...
#include <libmythmetadata/metaioflacvorbis.h>
Public Member Functions | |
| MetaIOFLACVorbis (void)=default | |
| ~MetaIOFLACVorbis (void) override=default | |
| bool | write (const QString &filename, MusicMetadata *mdata) override |
| Writes all metadata back to a file. More... | |
| bool | writeAlbumArt (const QString &filename, const AlbumArtImage *albumart) override |
| Write the albumart image to the file. More... | |
| bool | removeAlbumArt (const QString &filename, const AlbumArtImage *albumart) override |
| Remove the albumart image from the file. More... | |
| MusicMetadata * | read (const QString &filename) override |
| Reads MusicMetadata from a file. More... | |
| AlbumArtList | getAlbumArtList (const QString &filename) override |
| Read the albumart images from the file. More... | |
| QImage * | getAlbumArt (const QString &filename, ImageType type) override |
| Read the albumart image from the file. More... | |
| bool | supportsEmbeddedImages (void) override |
| Does the tag support embedded cover art. More... | |
| bool | changeImageType (const QString &filename, const AlbumArtImage *albumart, ImageType newType) override |
| bool | TagExists (const QString &filename) override |
Public Member Functions inherited from MetaIOTagLib | |
| MetaIOTagLib (void)=default | |
| ~MetaIOTagLib (void) override=default | |
| bool | write (const QString &filename, MusicMetadata *mdata) override=0 |
| Writes all metadata back to a file. More... | |
| MusicMetadata * | read (const QString &filename) override=0 |
| Reads MusicMetadata from a file. More... | |
Public Member Functions inherited from MetaIO | |
| MetaIO () | |
| virtual | ~MetaIO (void)=default |
| virtual bool | write (const QString &filename, MusicMetadata *mdata)=0 |
| Writes all metadata back to a file. More... | |
| virtual bool | writeVolatileMetadata (const QString &filename, MusicMetadata *mdata) |
| Writes rating and playcount back to a file. More... | |
| virtual MusicMetadata * | read (const QString &filename)=0 |
| Reads MusicMetadata from a file. More... | |
| virtual bool | supportsEmbeddedImages (void) |
| Does the tag support embedded cover art. More... | |
| virtual AlbumArtList | getAlbumArtList (const QString &filename) |
| Reads the list of embedded images in the tag. More... | |
| virtual bool | writeAlbumArt (const QString &filename, const AlbumArtImage *albumart) |
| virtual bool | removeAlbumArt (const QString &filename, const AlbumArtImage *albumart) |
| virtual bool | changeImageType (const QString &filename, const AlbumArtImage *albumart, ImageType newType) |
| virtual QImage * | getAlbumArt (const QString &filename, ImageType type) |
| void | readFromFilename (const QString &filename, QString &artist, QString &album, QString &title, QString &genre, int &tracknum) |
| Reads MusicMetadata based on the folder/filename. More... | |
| MusicMetadata * | readFromFilename (const QString &filename, bool blnLength=false) |
| Reads MusicMetadata based on the folder/filename. More... | |
| void | readFromFilename (MusicMetadata *metadata) |
| Reads MusicMetadata based on the folder/filename. More... | |
| virtual bool | TagExists (const QString &filename) |
Static Private Member Functions | |
| static TagLib::FLAC::File * | OpenFile (const QString &filename) |
| Open the file to read the tag. More... | |
| static TagLib::FLAC::Picture * | getPictureFromFile (TagLib::FLAC::File *flacfile, ImageType type) |
| static TagLib::FLAC::Picture::Type | PictureTypeFromImageType (ImageType itype) |
| static QString | getExtFromMimeType (const QString &mimeType) |
Additional Inherited Members | |
Static Public Member Functions inherited from MetaIO | |
| static MetaIO * | createTagger (const QString &filename) |
| Finds an appropriate tagger for the given file. More... | |
| static MusicMetadata * | readMetadata (const QString &filename) |
Read the metadata from filename directly. More... | |
| static MusicMetadata * | getMetadata (const QString &filename) |
Get the metadata for filename. More... | |
Static Public Attributes inherited from MetaIO | |
| static const QString | kValidFileExtensions |
Protected Member Functions inherited from MetaIOTagLib | |
| std::chrono::milliseconds | getTrackLength (const QString &filename) override |
| Find the length of the track (in milliseconds) More... | |
| void | ReadGenericMetadata (TagLib::Tag *tag, MusicMetadata *metadata) |
| Writes metadata common to all tag formats to the tag. More... | |
Protected Member Functions inherited from MetaIO | |
| void | saveTimeStamps (void) |
| void | restoreTimeStamps (void) |
| virtual std::chrono::milliseconds | getTrackLength (const QString &filename)=0 |
Static Protected Member Functions inherited from MetaIOTagLib | |
| static std::chrono::milliseconds | getTrackLength (TagLib::File *file) |
| Find the length of the track (in milliseconds) More... | |
| static void | WriteGenericMetadata (TagLib::Tag *tag, const MusicMetadata *metadata) |
| Writes metadata common to all tag formats to the tag. More... | |
Protected Attributes inherited from MetaIO | |
| QString | m_filename |
| QString | m_filenameFormat |
Read and write Vorbis (Xiph) tags in a FLAC file.
Definition at line 18 of file metaioflacvorbis.h.
|
default |
|
overridedefault |
|
overridevirtual |
Reimplemented from MetaIO.
Definition at line 481 of file metaioflacvorbis.cpp.
|
overridevirtual |
Read the albumart image from the file.
| filename | The filename for which we want to find the albumart. |
| type | The type of image we want - front/back etc |
Reimplemented from MetaIO.
Definition at line 189 of file metaioflacvorbis.cpp.
|
overridevirtual |
Read the albumart images from the file.
| filename | The filename for which we want to find the images. |
Reimplemented from MetaIO.
Definition at line 276 of file metaioflacvorbis.cpp.
|
staticprivate |
Definition at line 540 of file metaioflacvorbis.cpp.
Referenced by getAlbumArtList().
|
staticprivate |
Definition at line 214 of file metaioflacvorbis.cpp.
Referenced by changeImageType(), getAlbumArt(), removeAlbumArt(), and writeAlbumArt().
|
staticprivate |
Open the file to read the tag.
| filename | The filename |
Definition at line 23 of file metaioflacvorbis.cpp.
Referenced by changeImageType(), getAlbumArt(), getAlbumArtList(), read(), removeAlbumArt(), TagExists(), write(), and writeAlbumArt().
|
staticprivate |
Definition at line 241 of file metaioflacvorbis.cpp.
Referenced by changeImageType(), getPictureFromFile(), and writeAlbumArt().
|
overridevirtual |
Reads MusicMetadata from a file.
| filename | The filename to read metadata from. |
Implements MetaIOTagLib.
Definition at line 98 of file metaioflacvorbis.cpp.
|
overridevirtual |
Remove the albumart image from the file.
| filename | The music file to remove the albumart |
| albumart | The Album Art image to remove |
Reimplemented from MetaIO.
Definition at line 436 of file metaioflacvorbis.cpp.
|
inlineoverridevirtual |
Does the tag support embedded cover art.
Reimplemented from MetaIO.
Definition at line 32 of file metaioflacvorbis.h.
|
overridevirtual |
Reimplemented from MetaIO.
Definition at line 522 of file metaioflacvorbis.cpp.
|
overridevirtual |
Writes all metadata back to a file.
| filename | The filename to write metadata to |
| mdata | A pointer to a MusicMetadata object |
Implements MetaIOTagLib.
Definition at line 41 of file metaioflacvorbis.cpp.
Referenced by FlacEncoder::~FlacEncoder().
|
overridevirtual |
Write the albumart image to the file.
| filename | The music file to add the albumart |
| albumart | The Album Art image to write |
Reimplemented from MetaIO.
Definition at line 360 of file metaioflacvorbis.cpp.