25 #include "common/algorithm.h" 26 #include "common/endian.h" 27 #include "common/language.h" 28 #include "common/rect.h" 35 kPartCopyProtection = 16000,
52 bool byteSwap =
false;
59 const uint16 i = byteSwap ? READ_LE_UINT16(pc) : READ_BE_UINT16(pc);
70 void scale(
int u,
int v) {
81 uint8 numVertices = 0;
82 Point vertices[MAX_VERTICES];
100 static const int BITS = 16;
101 static const int MASK = (1 << BITS) - 1;
105 void reset(
int n,
int d) {
106 inc = (((int64)n) << BITS) / d;
110 uint32 getInt()
const {
111 return offset >> BITS;
113 uint32 getFrac()
const {
114 return offset & MASK;
116 int interpolate(
int sample1,
int sample2)
const {
117 const int fp = getFrac();
118 return (sample1 * (MASK - fp) + sample2 * fp) >> BITS;
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: aifc_player.h:29
Language
Definition: language.h:45