MythTV  master
metaiomp4.h
Go to the documentation of this file.
1 #ifndef metaioMP4_H_
2 #define metaioMP4_H_
3 
4 // libmythmetadata
5 #include "metaio.h"
6 
7 struct AVFormatContext;
8 
17 {
18  public:
19  MetaIOMP4(void) : MetaIO() {}
20  virtual ~MetaIOMP4(void) = default;
21 
22  bool write(const QString &filename, MusicMetadata* mdata) override; // MetaIO
23  MusicMetadata* read(const QString &filename) override; // MetaIO
24 
25  private:
26  int getTrackLength(const QString &filename) override; // MetaIO
27  int getTrackLength(AVFormatContext* pContext);
28  QString getFieldValue(AVFormatContext* context, const char* tagname);
29  void metadataSanityCheck(QString *artist, QString *album, QString *title, QString *genre);
30 };
31 
32 #endif
33 
34 
Definition: metaio.h:17
MetaIOMP4(void)
Definition: metaiomp4.h:19
virtual MusicMetadata * read(const QString &filename)=0
Reads MusicMetadata from a file.
virtual int getTrackLength(const QString &filename)=0
#define META_PUBLIC
Definition: mythmetaexp.h:9
virtual bool write(const QString &filename, MusicMetadata *mdata)=0
Writes all metadata back to a file.
Read and write metadata in MP4 container tags.
Definition: metaiomp4.h:16