Home
last modified time | relevance | path

Searched refs:poly (Results 1 – 12 of 12) sorted by relevance

/frameworks/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java31 public static float[] rayIntersectPoly(float[] poly, int polyLength, float px, float py, in rayIntersectPoly() argument
35 float p1x = poly[p1 * d + 0]; in rayIntersectPoly()
36 float p1y = poly[p1 * d + 1]; in rayIntersectPoly()
37 float p2x = poly[p2 * d + 0]; in rayIntersectPoly()
38 float p2y = poly[p2 * d + 1]; in rayIntersectPoly()
57 public static void centroid2d(float[] poly, int len, float[] ret) { in centroid2d() argument
63 float x1 = poly[p1 * 2 + 0]; in centroid2d()
64 float y1 = poly[p1 * 2 + 1]; in centroid2d()
65 float x2 = poly[p2 * 2 + 0]; in centroid2d()
66 float y2 = poly[p2 * 2 + 1]; in centroid2d()
[all …]
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java69 float[] poly = getPoly(rectScaled, elevation / SCALE_DOWN, radius); in paintRectShadow() local
71 paintAmbientShadow(poly, canvas, width, height, alpha, rectOriginal, radius); in paintRectShadow()
72 paintSpotShadow(poly, rectScaled, elevation / SCALE_DOWN, in paintRectShadow()
139 … private static void paintSpotShadow(float[] poly, Rect rectBound, float elevation, Canvas canvas, in paintSpotShadow() argument
164 .setPolygon(poly, poly.length / ShadowConstants.COORDINATE_SIZE) in paintSpotShadow()
256 … float[] poly = new float[ShadowConstants.RECT_VERTICES_SIZE * ShadowConstants.COORDINATE_SIZE]; in getPoly() local
258 poly[0] = poly[9] = rect.left; in getPoly()
259 poly[1] = poly[4] = rect.top; in getPoly()
260 poly[3] = poly[6] = rect.right; in getPoly()
261 poly[7] = poly[10] = rect.bottom; in getPoly()
[all …]
DSpotShadowVertexCalculator.java81 float[] poly, in calculateShadow() argument
96 float t = lightPoly[j * 3 + 2] - poly[i * 3 + 2]; in calculateShadow()
101 float x = lightPoly[j * 3] - t * (lightPoly[j * 3] - poly[i * 3]); in calculateShadow()
102 float y = lightPoly[j * 3 + 1] - t * (lightPoly[j * 3 + 1] - poly[i * 3 + 1]); in calculateShadow()
135 float t = p[2] - poly[i * 3 + 2]; in calculateShadow()
140 float x = p[0] - t * (p[0] - poly[i * 3]); in calculateShadow()
141 float y = p[1] - t * (p[1] - poly[i * 3 + 1]); in calculateShadow()
DSpotShadowConfig.java192 public Builder setPolygon(float[] poly, int polyLength) { in setPolygon() argument
193 this.mPoly = poly; in setPolygon()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dshadows_f.rscript28 static float poly[] = {
39 static float fastevalPoly(float *poly,int n, float x){
42 float sum = poly[0]+poly[1]*f;
46 sum += poly[i]*f;
182 poly[i] = fastevalPoly(shadowFilterMap+i*2,2 , s);
188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dshadows.rscript28 static float poly[] = {
39 static float fastevalPoly(float *poly,int n, float x){
42 float sum = poly[0]+poly[1]*f;
46 sum += poly[i]*f;
182 poly[i] = fastevalPoly(shadowFilterMap+i*2,2 , s);
188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dshadows.rscript28 static float poly[] = {
39 static float fastevalPoly(float *poly,int n, float x){
42 float sum = poly[0]+poly[1]*f;
46 sum += poly[i]*f;
182 poly[i] = fastevalPoly(shadowFilterMap+i*2,2 , s);
188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dshadows.rscript28 static float poly[] = {
39 static float fastevalPoly(float *poly,int n, float x){
42 float sum = poly[0]+poly[1]*f;
46 sum += poly[i]*f;
182 poly[i] = fastevalPoly(shadowFilterMap+i*2,2 , s);
188 float v = (fastevalPoly(poly, 5, hsv.x * (1.f / 4080.f)) * 4080.f);
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript30 int2 __attribute__((invoke_cpu)) findBestFit(rs_allocation poly, rs_allocation image) {
33 borderLength = rsAllocationGetDimX(poly);
38 foreach(toInt, poly , border_coords);
Dhealing.rscript25 void __attribute__((invoke_cpu)) findBestFit(rs_allocation poly,
/frameworks/base/core/jni/android/opengl/
Dutil.cpp116 Poly poly; in visibilityTest() local
117 float* pDest = & poly.vert[0].sx; in visibilityTest()
119 poly.n = 3; in visibilityTest()
123 result = poly_clip_to_frustum(&poly); in visibilityTest()
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp956 uint32_t poly = 0x04C11DB7; in initCrcTable() local
961 crc = (crc << 1) ^ ((crc & 0x80000000) ? (poly) : 0); in initCrcTable()