2
* Copyright (C) 2013-2014 Canonical, Ltd.
5
* Jussi Pakkanen <jussi.pakkanen@canonical.com>
6
* James Henstridge <james.henstridge@canonical.com>
8
* This library is free software; you can redistribute it and/or modify it under
9
* the terms of version 3 of the GNU General Public License as published
10
* by the Free Software Foundation.
12
* This library is distributed in the hope that it will be useful, but WITHOUT
13
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef EXTRACTOR_IMAGEEXTRACTOR_H
22
#define EXTRACTOR_IMAGEEXTRACTOR_H
26
namespace mediascanner {
28
class MediaFileBuilder;
31
class ImageExtractor final {
33
ImageExtractor() = default;
34
~ImageExtractor() = default;
35
ImageExtractor(const ImageExtractor&) = delete;
36
ImageExtractor& operator=(ImageExtractor &o) = delete;
38
void extract(const DetectedFile &d, MediaFileBuilder &builder);
41
bool extract_exif(const DetectedFile &d, MediaFileBuilder &builder);
42
void extract_pixbuf(const DetectedFile &d, MediaFileBuilder &builder);