MythTV  master
metaioavfcomment.h
Go to the documentation of this file.
1 #ifndef METAIOAVFCOMMENT_H_
2 #define METAIOAVFCOMMENT_H_
3 
4 // libmythmetadata
5 #include "metaio.h"
6 
7 struct AVFormatContext;
8 
20 {
21 public:
22  MetaIOAVFComment(void) = default;
23  ~MetaIOAVFComment(void) override = default;
24 
25  bool write(const QString &filename, MusicMetadata* mdata) override; // MetaIO
26  MusicMetadata* read(const QString &filename) override; // MetaIO
27 
28 private:
29  std::chrono::milliseconds getTrackLength(const QString &filename) override; // MetaIO
30  static std::chrono::milliseconds getTrackLength(AVFormatContext* pContext);
31 };
32 
33 #endif
34 
MetaIO::write
virtual bool write(const QString &filename, MusicMetadata *mdata)=0
Writes all metadata back to a file.
MetaIO
Definition: metaio.h:17
MusicMetadata
Definition: musicmetadata.h:80
MetaIOAVFComment
Attempt to read metadata in files without a specific metadata reading implementation.
Definition: metaioavfcomment.h:19
MetaIO::getTrackLength
virtual std::chrono::milliseconds getTrackLength(const QString &filename)=0
metaio.h
MetaIO::read
virtual MusicMetadata * read(const QString &filename)=0
Reads MusicMetadata from a file.
build_compdb.filename
filename
Definition: build_compdb.py:21
META_PUBLIC
#define META_PUBLIC
Definition: mythmetaexp.h:9