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

scaler.h File Reference

#include "common/scummsys.h"
#include "graphics/surface.h"
Include dependency graph for scaler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DECLARE_SCALER(x)

Typedefs

typedef void ScalerProc (const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height)

Enumerations

enum  { kThumbnailWidth = 160, kThumbnailHeight1 = 100, kThumbnailHeight2 = 120 }

Functions

void InitScalers (uint32 BitFormat)
void DestroyScalers ()
 DECLARE_SCALER (Normal1x)
bool createThumbnailFromScreen (Graphics::Surface *surf)
 Creates a thumbnail from the current screen (without overlay).
bool createThumbnail (Graphics::Surface *surf, const uint8 *pixels, int w, int h, const uint8 *palette)
 Creates a thumbnail from a buffer.

Define Documentation

#define DECLARE_SCALER (   x  ) 
Value:
extern void x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, \
                    uint32 dstPitch, int width, int height)

Definition at line 35 of file scaler.h.


Typedef Documentation

typedef void ScalerProc(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height)

Definition at line 32 of file scaler.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
kThumbnailWidth 
kThumbnailHeight1 
kThumbnailHeight2 

Definition at line 68 of file scaler.h.


Function Documentation

bool createThumbnail ( Graphics::Surface surf,
const uint8 pixels,
int  w,
int  h,
const uint8 palette 
)

Creates a thumbnail from a buffer.

Parameters:
surf destination surface (will always have 16 bpp after this for now)
pixels raw pixel data
w width
h height
palette palette in RGB format
bool createThumbnailFromScreen ( Graphics::Surface surf  )  [inline]

Creates a thumbnail from the current screen (without overlay).

Parameters:
surf a surface (will always have 16 bpp after this for now)
Returns:
false if a error occurred

Definition at line 81 of file scaler.h.

DECLARE_SCALER ( Normal1x   ) 
void DestroyScalers (  ) 
void InitScalers ( uint32  BitFormat  ) 


Generated on Sat Feb 23 2019 05:03:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge