Home | History | Annotate | Download | only in libpixelflinger

Lines Matching refs:CONST

37 static void pointx_validate(void *con, const GGLcoord* c, GGLcoord r);
38 static void pointx(void *con, const GGLcoord* c, GGLcoord r);
39 static void aa_pointx(void *con, const GGLcoord* c, GGLcoord r);
40 static void aa_nice_pointx(void *con, const GGLcoord* c, GGLcoord r);
42 static void linex_validate(void *con, const GGLcoord* v0, const GGLcoord* v1, GGLcoord w);
43 static void linex(void *con, const GGLcoord* v0, const GGLcoord* v1, GGLcoord w);
44 static void aa_linex(void *con, const GGLcoord* v0, const GGLcoord* v1, GGLcoord w);
50 const GGLcoord*, const GGLcoord*, const GGLcoord*);
52 const GGLcoord*, const GGLcoord*, const GGLcoord*);
54 const GGLcoord*, const GGLcoord*, const GGLcoord*);
56 const GGLcoord*, const GGLcoord*, const GGLcoord*);
58 const GGLcoord*, const GGLcoord*, const GGLcoord*);
61 const GGLcoord* pts, int count);
63 static inline int min(int a, int b) CONST;
64 static inline int max(int a, int b) CONST;
65 static inline int min(int a, int b, int c) CONST;
66 static inline int max(int a, int b, int c) CONST;
95 triangle_dump_points( const GGLcoord* v0,
96 const GGLcoord* v1,
97 const GGLcoord* v2 )
136 void pointx_validate(void *con, const GGLcoord* v, GGLcoord rad)
152 void pointx(void *con, const GGLcoord* v, GGLcoord rad)
180 const GGLcoord d2 = x*x + y*y;
184 const int kSamples = 4;
185 const int kInc = 4; // 1/4 = 0.25
186 const int kCoverageUnit = 1; // 1/(4^2) = 0.0625
187 const GGLcoord kCoordOffset = -6; // -0.375
192 const int xval = rr - (x_sample * x_sample);
203 void aa_nice_pointx(void *con, const GGLcoord* v, GGLcoord size)
235 const int32_t sqr2Over2 = 0xC; // rounded up
262 const GGLcoord d2 = x*x + y*y;
268 void aa_pointx(void *con, const GGLcoord* v, GGLcoord size)
301 const int32_t sqr2Over2 = 0xB5; // fixed-point 24.8
336 void linex_validate(void *con, const GGLcoord* v0, const GGLcoord* v1, GGLcoord w)
348 static void linex(void *con, const GGLcoord* v0, const GGLcoord* v1, GGLcoord width)
356 const GGLcoord dx = abs(v0[0] - v1[0]);
357 const GGLcoord dy = abs(v0[1] - v1[1]);
376 static void aa_linex(void *con, const GGLcoord* v0, const GGLcoord* v1, GGLcoord width)
385 const GGLcoord dx = v0[0] - v1[0];
386 const GGLcoord dy = v0[1] - v1[1];
391 const GGLfixed norm = gglMulx(width, gglSqrtRecipx(nx*nx+ny*ny), 4);
455 const GGLFormat* fp = &(c->formats[cb->format]);
458 const size_t size = ct * fp->size;
463 const GGLcoord* v0, const GGLcoord* v1, const GGLcoord* v2)
480 const GGLcoord* v0, const GGLcoord* v1, const GGLcoord* v2)
493 const GGLcoord* v0, const GGLcoord* v1, const GGLcoord* v2)
508 const GGLcoord* v0, const GGLcoord* v1, const GGLcoord* v2)
540 const int32_t bminx = TRI_FLOOR(min(x0, x1, x2)) >> TRI_FRACTION_BITS;
541 const int32_t bminy = TRI_FLOOR(min(y0, y1, y2)) >> TRI_FRACTION_BITS;
542 const int32_t bmaxx = TRI_CEIL( max(x0, x1, x2)) >> TRI_FRACTION_BITS;
543 const
544 const int32_t minx = max(bminx, c->state.scissor.left);
545 const int32_t miny = max(bminy, c->state.scissor.top);
546 const int32_t maxx = min(bmaxx, c->state.scissor.right);
547 const int32_t maxy = min(bmaxy, c->state.scissor.bottom);
552 const int32_t my = (miny << TRI_FRACTION_BITS) + TRI_HALF;
553 const int32_t mx = (minx << TRI_FRACTION_BITS) + TRI_HALF;
629 const int TRI_ITERATORS_BITS = 16;
665 const GGLcoord* p1,
666 const GGLcoord* p2,
670 const GGLfixed* top = p1;
671 const GGLfixed* bot = p2;
694 const int x1 = top[0];
695 const int dx = bot[0] - x1;
696 const int shift = TRI_ITERATORS_BITS - TRI_FRACTION_BITS;
736 const int left_xi = left->x_incr;
737 const int right_xi = right->x_incr;
741 const int xmin = c->state.scissor.left;
742 const int xmax = c->state.scissor.right;
745 const int32_t xl = max(left_x >> TRI_ITERATORS_BITS, xmin);
746 const int32_t xr = min(right_x >> TRI_ITERATORS_BITS, xmax);
761 const GGLcoord* v0, const GGLcoord* v1, const GGLcoord* v2)
812 const GGLcoord* a, const GGLcoord* b, const GGLcoord* c)
855 const GGLcoord* p1,
856 const GGLcoord* p2,
860 const GGLfixed* top = p1;
861 const GGLfixed* bot = p2;
880 const int x1 = top[0];
881 const int dx = bot[0] - x1;
882 const int shift = FIXED_BITS - TRI_FRACTION_BITS;
907 typedef int (*compar_t)(const void*, const void*);
908 static int compare_edges(const AAEdge *e0, const AAEdge *e1) {
943 const GGLcoord* pts, int count)
958 const int xmin = c->state.scissor.left;
959 const int xmax = c->state.scissor.right;
969 GGLcoord const * p = pts;
980 int16_t* const covPtr = c->state.buffers.coverage;
1002 const int32_t shift = TRI_FRACTION_BITS + TRI_ITERATORS_BITS - FIXED_BITS;
1003 const int cf_shift = (1 + TRI_FRACTION_BITS*2 + TRI_ITERATORS_BITS - 15);
1031 const GGLfixed l_min_i = gglFloorx(l_min);
1032 const GGLfixed l_max_i = gglCeilx (l_max);
1033 const GGLfixed r_min_i = gglFloorx(r_min);
1034 const GGLfixed r_max_i = gglCeilx (r_max);
1037 const int xml = max(xmin, gglFixedToIntFloor(l_min_i));
1038 const int xmr = min(xmax, gglFixedToIntFloor(r_max_i));
1088 const int32_t y_incr = left->y_incr;
1130 const int32_t y_incr = right->y_incr;