strawberry-audio-player-win.../3rdparty/taglib/mp4/mp4coverart.h

84 lines
2.7 KiB
C
Raw Normal View History

2018-05-10 15:29:28 +02:00
/**************************************************************************
copyright : (C) 2009 by Lukáš Lalinský
email : lalinsky@gmail.com
**************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_MP4COVERART_H
#define TAGLIB_MP4COVERART_H
#include "tlist.h"
#include "tbytevector.h"
#include "taglib_export.h"
#include "mp4atom.h"
2019-04-26 01:12:42 +02:00
namespace Strawberry_TagLib {
namespace TagLib {
2020-06-13 19:02:42 +02:00
namespace MP4 {
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
class TAGLIB_EXPORT CoverArt {
public:
/*!
* This describes the image type.
*/
2020-06-13 19:02:42 +02:00
enum Format {
JPEG = TypeJPEG,
PNG = TypePNG,
BMP = TypeBMP,
GIF = TypeGIF,
Unknown = TypeImplicit,
};
2018-05-10 15:29:28 +02:00
explicit CoverArt(Format format, const ByteVector &data);
2020-06-13 19:02:42 +02:00
~CoverArt();
2018-05-10 15:29:28 +02:00
2020-06-26 23:30:30 +02:00
CoverArt(const CoverArt &item);
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
/*!
* Copies the contents of \a item into this CoverArt.
*/
2020-06-13 19:02:42 +02:00
CoverArt &operator=(const CoverArt &item);
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
/*!
* Exchanges the content of the CoverArt by the content of \a item.
*/
2020-06-13 19:02:42 +02:00
void swap(CoverArt &item);
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
//! Format of the image
Format format() const;
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
//! The image data
ByteVector data() const;
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
private:
class CoverArtPrivate;
CoverArtPrivate *d;
};
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
typedef List<CoverArt> CoverArtList;
2018-05-10 15:29:28 +02:00
2020-06-13 19:02:42 +02:00
} // namespace MP4
} // namespace TagLib
} // namespace Strawberry_TagLib
2018-05-10 15:29:28 +02:00
#endif