File indexing completed on 2025-01-19 03:51:02
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2005-06-14 0007 * Description : A QImage loader for DImg framework. 0008 * 0009 * SPDX-FileCopyrightText: 2005 by Renchi Raju <renchi dot raju at gmail dot com> 0010 * SPDX-FileCopyrightText: 2006-2021 by Caulier Gilles <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #include "dimgqimageloader.h" 0017 0018 // Qt includes 0019 0020 #include <QImage> 0021 #include <QByteArray> 0022 #include <QColorSpace> 0023 #include <QImageReader> 0024 0025 // Local includes 0026 0027 #include "digikam_debug.h" 0028 #include "dimgloaderobserver.h" 0029 0030 namespace DigikamQImageDImgPlugin 0031 { 0032 0033 DImgQImageLoader::DImgQImageLoader(DImg* const image) 0034 : DImgLoader (image), 0035 m_hasAlpha (false), 0036 m_sixteenBit(false) 0037 { 0038 } 0039 0040 DImgQImageLoader::~DImgQImageLoader() 0041 { 0042 } 0043 0044 bool DImgQImageLoader::hasAlpha() const 0045 { 0046 return m_hasAlpha; 0047 } 0048 0049 bool DImgQImageLoader::sixteenBit() const 0050 { 0051 return m_sixteenBit; 0052 } 0053 0054 bool DImgQImageLoader::isReadOnly() const 0055 { 0056 return false; 0057 } 0058 0059 } // namespace DigikamQImageDImgPlugin