ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

dxtn.c File Reference
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "internal.h"
#include "dxtn.h"

Go to the source code of this file.

Defines

#define MAX_COMP   4 /* ever needed maximum number of components in texel */
#define MAX_VECT   4 /* ever needed maximum number of base vectors to find */
#define N_TEXELS   16 /* number of texels in a block (always 16) */
#define COLOR565(v)   (word)((((v)[RCOMP] & 0xf8) << 8) | (((v)[GCOMP] & 0xfc) << 3) | ((v)[BCOMP] >> 3))
#define ENCODER(dxtn, n)
#define CC_SEL(cc, which)   (((dword *)(cc))[(which) / 32] >> ((which) & 31))
#define UP4(c)   _rgb_scale_4[(c) & 15]
#define UP5(c)   _rgb_scale_5[(c) & 31]
#define UP6(c)   _rgb_scale_6[(c) & 63]
#define ZERO_4UBV(v)   *((dword *)(v)) = 0

Functions

static void dxt1_rgb_quantize (dword *cc, const byte *lines[], int comps)
static void dxt1_rgba_quantize (dword *cc, const byte *lines[], int comps)
static void dxt3_rgba_quantize (dword *cc, const byte *lines[], int comps)
static void dxt5_rgba_quantize (dword *cc, const byte *lines[], int comps)
void TAPIENTRY dxt1_rgb_decode_1 (const void *texture, int stride, int i, int j, byte *rgba)
void TAPIENTRY dxt1_rgba_decode_1 (const void *texture, int stride, int i, int j, byte *rgba)
void TAPIENTRY dxt3_rgba_decode_1 (const void *texture, int stride, int i, int j, byte *rgba)
void TAPIENTRY dxt5_rgba_decode_1 (const void *texture, int stride, int i, int j, byte *rgba)

Variables

static const int dxtn_color_tlat [2][4]
static const int dxtn_alpha_tlat [2][8]
static const byte _rgb_scale_4 []
static const byte _rgb_scale_5 []
static const byte _rgb_scale_6 []

Generated on Sat May 26 2012 04:47:41 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.