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

mem.h File Reference

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

Go to the source code of this file.

Namespaces

namespace  Image
 

Based on the PCX specs: http://www.fileformat.info/format/pcx/spec/a10e75307b3a4cc49c3bbe6db4c41fa2/view.htm and the PCX decoder of FFmpeg (libavcodec/pcx.c): http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/pcx.c.


namespace  Image::Indeo

Defines

#define FF_ARRAY_ELEMS(a)   (sizeof(a) / sizeof((a)[0]))
#define FFALIGN(x, a)   (((x) + (a)-1) & ~((a)-1))
#define FFSIGN(a)   ((a) > 0 ? 1 : -1)
#define MAX_INTEGER   0x7ffffff

Functions

void Image::Indeo::avFreeP (void *arg)
 Free a memory block which has been allocated with a function of av_malloc() or av_realloc() family, and set the pointer pointing to it to `NULL`.
void * Image::Indeo::avReallocF (void *ptr, size_t nelem, size_t elsize)
 Allocate, reallocate, or free a block of memory.
uint16 Image::Indeo::invertBits (uint16 val, int nbits)
 Reverse "nbits" bits of the value "val" and return the result in the least significant bits.
uint32 Image::Indeo::bitswap32 (uint32 x)
 Swap the order of the bytes in the passed value.
uint8 Image::Indeo::avClipUint8 (int a)
 Clip a signed integer value into the 0-255 range.
unsigned Image::Indeo::avClipUintp2 (int a, int p)
 Clip a signed integer to an unsigned power of two range.

Define Documentation

#define FF_ARRAY_ELEMS (   a  )     (sizeof(a) / sizeof((a)[0]))

Definition at line 37 of file mem.h.

#define FFALIGN (   x,
  a 
)    (((x) + (a)-1) & ~((a)-1))

Definition at line 38 of file mem.h.

#define FFSIGN (   a  )     ((a) > 0 ? 1 : -1)

Definition at line 39 of file mem.h.

#define MAX_INTEGER   0x7ffffff

Definition at line 40 of file mem.h.



Generated on Sat Jul 20 2019 05:01:59 for ResidualVM by doxygen 1.7.1
curved edge   curved edge