ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

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.

Namespaces

namespace  Graphics

Defines

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

Enumerations

enum  HeaderState

Functions

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

Define Documentation

#define THMB_VERSION   2

Definition at line 35 of file thumbnail.cpp.

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

Definition at line 45 of file thumbnail.cpp.


Variable Documentation

PixelFormat format

Definition at line 42 of file thumbnail.cpp.

Definition at line 41 of file thumbnail.cpp.

Definition at line 39 of file thumbnail.cpp.

Definition at line 38 of file thumbnail.cpp.

Definition at line 40 of file thumbnail.cpp.

Definition at line 41 of file thumbnail.cpp.



Generated on Sat Nov 16 2019 05:01:47 for ResidualVM by doxygen 1.7.1
curved edge   curved edge