MythTV
master
mythtv
libs
libmythmetadata
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
16
class
META_PUBLIC
MetaIOMP4
:
public
MetaIO
17
{
18
public
:
19
MetaIOMP4
(
void
) =
default
;
20
~
MetaIOMP4
(
void
)
override
=
default
;
21
22
bool
write
(
const
QString &
filename
,
MusicMetadata
* mdata)
override
;
// MetaIO
23
MusicMetadata
*
read
(
const
QString &
filename
)
override
;
// MetaIO
24
25
private
:
26
std::chrono::milliseconds
getTrackLength
(
const
QString &
filename
)
override
;
// MetaIO
27
static
QString getFieldValue(AVFormatContext* context,
const
char
* tagname);
28
static
void
metadataSanityCheck(QString *artist, QString *album, QString *title, QString *genre);
29
};
30
31
#endif
32
33
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:81
MetaIO::getTrackLength
virtual std::chrono::milliseconds getTrackLength(const QString &filename)=0
metaio.h
MetaIOMP4
Read and write metadata in MP4 container tags.
Definition:
metaiomp4.h:16
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
Generated on Tue Jan 7 2025 03:18:26 for MythTV by
1.8.17