thumbnail.cpp File Reference
#include "graphics/thumbnail.h"
#include "graphics/scaler.h"
#include "graphics/colormasks.h"
#include "common/endian.h"
#include "common/algorithm.h"
#include "common/system.h"
#include "common/stream.h"
#include "common/textconsole.h"
Include dependency graph for thumbnail.cpp:

Go to the source code of this file.




#define THMB_VERSION   2
#define ThumbnailHeaderSize   (4+4+1+2+2+(1+4+4))


enum  Graphics::@7959::HeaderState


bool Graphics::checkThumbnailHeader (Common::SeekableReadStream &in)
 Checks for presence of the thumbnail save header. More...
bool Graphics::skipThumbnail (Common::SeekableReadStream &in)
 Skips a thumbnail, if present. More...
bool Graphics::loadThumbnail (Common::SeekableReadStream &in, Graphics::Surface *&thumbnail, bool skipThumbnail=false)
 Loads a thumbnail from the given input stream. More...
bool Graphics::saveThumbnail (Common::WriteStream &out)
 Saves a thumbnail to the given write stream. More...
bool Graphics::saveThumbnail (Common::WriteStream &out, const Graphics::Surface &thumb)
 Saves a (given) thumbnail to the given write stream. More...
intGraphics::scaleLine (int size, int srcSize)
 Returns an array indicating which pixels of a source image horizontally or vertically get included in a scaled image. More...
Graphics::SurfaceGraphics::scale (const Graphics::Surface &srcImage, int xSize, int ySize)
 Scales a passed surface, creating a new surface with the result. More...

Macro Definition Documentation


#define THMB_VERSION   2

Definition at line 35 of file thumbnail.cpp.

◆ ThumbnailHeaderSize

#define ThumbnailHeaderSize   (4+4+1+2+2+(1+4+4))

Definition at line 45 of file thumbnail.cpp.

Enumeration Type Documentation

◆ HeaderState

enum Graphics::@7959::HeaderState

Definition at line 47 of file thumbnail.cpp.

Variable Documentation

◆ format

PixelFormat format

Definition at line 42 of file thumbnail.cpp.

◆ height

uint16 height

Definition at line 41 of file thumbnail.cpp.

◆ size

uint32 size

Definition at line 39 of file thumbnail.cpp.

◆ type

uint32 type

Definition at line 38 of file thumbnail.cpp.

◆ version

byte version

Definition at line 40 of file thumbnail.cpp.

◆ width

uint16 width

Definition at line 41 of file thumbnail.cpp.