Loading...
Searching...
No Matches
bmpimage.hpp
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef BMPIMAGE_HPP_
#define BMPIMAGE_HPP_
// *****************************************************************************
#include "exiv2lib_export.h"
// included header files
#include "image.hpp"
// *****************************************************************************
// namespace extensions
namespace Exiv2 {
// *****************************************************************************
// class definitions
class EXIV2API BmpImage : public Image {
public:
explicit BmpImage(BasicIo::UniquePtr io);
void readMetadata() override;
void writeMetadata() override;
void setExifData(const ExifData& exifData) override;
void setIptcData(const IptcData& iptcData) override;
void setComment(const std::string&) override;
[[nodiscard]] std::string mimeType() const override;
}; // class BmpImage
// *****************************************************************************
// template, inline and free functions
// These could be static private functions on Image subclasses but then
// ImageFactory needs to be made a friend.
EXIV2API Image::UniquePtr newBmpInstance(BasicIo::UniquePtr io, bool create);
EXIV2API bool isBmpType(BasicIo& iIo, bool advance);
} // namespace Exiv2
#endif // #ifndef BMPIMAGE_HPP_
Exiv2::BasicIo
An interface for simple binary IO.
Definition basicio.hpp:35
Exiv2::BasicIo::UniquePtr
std::unique_ptr< BasicIo > UniquePtr
BasicIo auto_ptr type.
Definition basicio.hpp:38
Exiv2::BmpImage
Class to access Windows bitmaps. This is just a stub - we only read width and height.
Definition bmpimage.hpp:27
Exiv2::ExifData
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
Exiv2::Image
Abstract base class defining the interface for an image. This is the top-level interface to the Exiv2...
Definition image.hpp:50
Exiv2::Image::UniquePtr
std::unique_ptr< Image > UniquePtr
Image auto_ptr type.
Definition image.hpp:53
Exiv2::IptcData
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition iptc.hpp:153
Exiv2
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
Exiv2::isBmpType
EXIV2API bool isBmpType(BasicIo &iIo, bool advance)
Check if the file iIo is a Windows Bitmap image.
Definition bmpimage.cpp:100
Exiv2::newBmpInstance
EXIV2API Image::UniquePtr newBmpInstance(BasicIo::UniquePtr io, bool create)
Create a new BmpImage instance and return an auto-pointer to it. Caller owns the returned object and ...
Definition bmpimage.cpp:92
Exiv2::mimeType
List of TIFF compression to MIME type mappings.
Definition tiffimage.cpp:47