Attempt to read metadata in files without a specific metadata reading implementation.
More...
#include <libmythmetadata/metaioavfcomment.h>
|
| | MetaIOAVFComment (void)=default |
| |
| | ~MetaIOAVFComment (void) override=default |
| |
| bool | write (const QString &filename, MusicMetadata *mdata) override |
| | Writes all metadata back to a file. More...
|
| |
| MusicMetadata * | read (const QString &filename) override |
| | Reads MusicMetadata from a file. More...
|
| |
| | 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) |
| |
|
| std::chrono::milliseconds | getTrackLength (const QString &filename) override |
| | Find the length of the track (in milliseconds) More...
|
| |
|
| static std::chrono::milliseconds | getTrackLength (AVFormatContext *pContext) |
| | Find the length of the track (in milliseconds) More...
|
| |
Attempt to read metadata in files without a specific metadata reading implementation.
N.B. No write support
Definition at line 19 of file metaioavfcomment.h.
◆ MetaIOAVFComment()
| MetaIOAVFComment::MetaIOAVFComment |
( |
void |
| ) |
|
|
default |
◆ ~MetaIOAVFComment()
| MetaIOAVFComment::~MetaIOAVFComment |
( |
void |
| ) |
|
|
overridedefault |
◆ getTrackLength() [1/2]
| std::chrono::milliseconds MetaIOAVFComment::getTrackLength |
( |
AVFormatContext * |
pContext | ) |
|
|
staticprivate |
Find the length of the track (in milliseconds)
- Parameters
-
| pContext | The AV Format Context. |
- Returns
- An integer (signed!) to represent the length in milliseconds.
Definition at line 124 of file metaioavfcomment.cpp.
◆ getTrackLength() [2/2]
| std::chrono::milliseconds MetaIOAVFComment::getTrackLength |
( |
const QString & |
filename | ) |
|
|
overrideprivatevirtual |
Find the length of the track (in milliseconds)
- Parameters
-
| filename | The filename for which we want to find the length. |
- Returns
- An integer (signed!) to represent the length in milliseconds.
Implements MetaIO.
Definition at line 95 of file metaioavfcomment.cpp.
Referenced by getTrackLength(), and read().
◆ read()
| MusicMetadata * MetaIOAVFComment::read |
( |
const QString & |
filename | ) |
|
|
overridevirtual |
◆ write()
Writes all metadata back to a file.
- Parameters
-
| filename | The filename to write metadata to |
| mdata | A pointer to a MusicMetadata object |
- Returns
- Boolean to indicate success/failure.
Implements MetaIO.
Definition at line 14 of file metaioavfcomment.cpp.
The documentation for this class was generated from the following files: