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

s_texfilter.c File Reference
#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/imports.h"
#include "main/texformat.h"
#include "s_context.h"
#include "s_texfilter.h"

Go to the source code of this file.

Defines

#define FRAC(f)   ((f) - IFLOOR(f))
#define ILERP_SCALE   65536.0F
#define ILERP_SHIFT   16
#define LERP(T, A, B)   ( (A) + (T) * ((B) - (A)) )
#define ILERP(IT, A, B)   ( (A) + (((IT) * ((B) - (A))) >> ILERP_SHIFT) )
#define REMAINDER(A, B)   ((unsigned) (A) % (unsigned) (B))
#define I0BIT   1
#define I1BIT   2
#define J0BIT   4
#define J1BIT   8
#define K0BIT   16
#define K1BIT   32

Functions

static INLINE GLfloat lerp_2d (GLfloat a, GLfloat b, GLfloat v00, GLfloat v10, GLfloat v01, GLfloat v11)
static INLINE GLint ilerp_2d (GLint ia, GLint ib, GLint v00, GLint v10, GLint v01, GLint v11)
static INLINE GLfloat lerp_3d (GLfloat a, GLfloat b, GLfloat c, GLfloat v000, GLfloat v100, GLfloat v010, GLfloat v110, GLfloat v001, GLfloat v101, GLfloat v011, GLfloat v111)
static INLINE GLint ilerp_3d (GLint ia, GLint ib, GLint ic, GLint v000, GLint v100, GLint v010, GLint v110, GLint v001, GLint v101, GLint v011, GLint v111)
static INLINE void lerp_rgba (GLchan result[4], GLfloat t, const GLchan a[4], const GLchan b[4])
static INLINE void lerp_rgba_2d (GLchan result[4], GLfloat a, GLfloat b, const GLchan t00[4], const GLchan t10[4], const GLchan t01[4], const GLchan t11[4])
static INLINE void lerp_rgba_3d (GLchan result[4], GLfloat a, GLfloat b, GLfloat c, const GLchan t000[4], const GLchan t100[4], const GLchan t010[4], const GLchan t110[4], const GLchan t001[4], const GLchan t101[4], const GLchan t011[4], const GLchan t111[4])
static INLINE void linear_texel_locations (GLenum wrapMode, const struct gl_texture_image *img, GLint size, GLfloat s, GLint *i0, GLint *i1, GLfloat *weight)
static INLINE GLint nearest_texel_location (GLenum wrapMode, const struct gl_texture_image *img, GLint size, GLfloat s)
static INLINE void linear_repeat_texel_location (GLuint size, GLfloat s, GLint *i0, GLint *i1, GLfloat *weight)
static INLINE GLint linear_mipmap_level (const struct gl_texture_object *tObj, GLfloat lambda)
static INLINE GLint nearest_mipmap_level (const struct gl_texture_object *tObj, GLfloat lambda)
static INLINE void compute_min_mag_ranges (const struct gl_texture_object *tObj, GLuint n, const GLfloat lambda[], GLuint *minStart, GLuint *minEnd, GLuint *magStart, GLuint *magEnd)
static INLINE void sample_1d_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static INLINE void sample_1d_linear (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_1d_nearest_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_linear_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_nearest_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_linear_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_nearest_1d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_1d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_1d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static INLINE void sample_2d_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[])
static INLINE void sample_2d_linear (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[])
static INLINE void sample_2d_linear_repeat (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[])
static void sample_2d_nearest_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_linear_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_nearest_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_linear_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_linear_mipmap_linear_repeat (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_nearest_2d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_2d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void opt_sample_rgb_2d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void opt_sample_rgba_2d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_2d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static INLINE void sample_3d_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_3d_linear (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_3d_nearest_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_3d_linear_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_3d_nearest_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_3d_linear_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_nearest_3d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_3d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_3d (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static struct gl_texture_image ** choose_cube_face (const struct gl_texture_object *texObj, const GLfloat texcoord[4], GLfloat newCoord[4])
static void sample_nearest_cube (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_cube (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_cube_nearest_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_cube_linear_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_cube_nearest_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_cube_linear_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_cube (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static INLINE GLint clamp_rect_coord_nearest (GLenum wrapMode, GLfloat coord, GLint max)
static INLINE void clamp_rect_coord_linear (GLenum wrapMode, GLfloat coord, GLint max, GLint *i0out, GLint *i1out, GLfloat *weight)
static void sample_nearest_rect (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_rect (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_rect (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_array_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_2d_array_linear (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_2d_array_nearest_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_array_linear_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_array_nearest_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_2d_array_linear_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_nearest_2d_array (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_2d_array (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_2d_array (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_array_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_1d_array_linear (GLcontext *ctx, const struct gl_texture_object *tObj, const struct gl_texture_image *img, const GLfloat texcoord[4], GLchan rgba[4])
static void sample_1d_array_nearest_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_array_linear_mipmap_nearest (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_array_nearest_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_1d_array_linear_mipmap_linear (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_nearest_1d_array (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_linear_1d_array (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_lambda_1d_array (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
static void sample_depth_texture (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan texel[][4])
static void null_sample_func (GLcontext *ctx, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoords[][4], const GLfloat lambda[], GLchan rgba[][4])
texture_sample_func _swrast_choose_texture_sample_func (GLcontext *ctx, const struct gl_texture_object *t)

Generated on Fri May 25 2012 04:58:12 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.