Lines Matching refs:p
50 getElementAt1(const uint8_t *p, int32_t x) { in getElementAt1() argument
51 float r = p[x]; in getElementAt1()
56 getElementAt2(const uint8_t *p, int32_t x) { in getElementAt2() argument
58 float2 r = {p[x], p[x+1]}; in getElementAt2()
63 getElementAt3(const uint8_t *p, int32_t x) { in getElementAt3() argument
65 float3 r = {p[x], p[x+1], p[x+2]}; in getElementAt3()
70 getElementAt4(const uint8_t *p, int32_t x) { in getElementAt4() argument
72 const uchar4 *p2 = (const uchar4 *)&p[x]; in getElementAt4()
77 getElementAt565(const uint8_t *p, int32_t x) { in getElementAt565() argument
79 float3 r = getFrom565(((const uint16_t *)p)[0]); in getElementAt565()
84 getElementAt1(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt1() argument
85 p += y * stride; in getElementAt1()
86 float r = p[x]; in getElementAt1()
91 getElementAt2(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt2() argument
92 p += y * stride; in getElementAt2()
94 float2 r = {p[x], p[x+1]}; in getElementAt2()
99 getElementAt3(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt3() argument
100 p += y * stride; in getElementAt3()
102 float3 r = {p[x], p[x+1], p[x+2]}; in getElementAt3()
107 getElementAt4(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt4() argument
108 p += y * stride; in getElementAt4()
110 float4 r = {p[x], p[x+1], p[x+2], p[x+3]}; in getElementAt4()
115 getElementAt565(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt565() argument
116 p += y * stride; in getElementAt565()
118 float3 r = getFrom565(((const uint16_t *)p)[0]); in getElementAt565()
127 getSample_A(const uint8_t *p, int32_t iPixel, in getSample_A() argument
129 float p0 = getElementAt1(p, iPixel); in getSample_A()
130 float p1 = getElementAt1(p, next); in getSample_A()
137 getSample_L(const uint8_t *p, int32_t iPixel, in getSample_L() argument
139 float p0 = getElementAt1(p, iPixel); in getSample_L()
140 float p1 = getElementAt1(p, next); in getSample_L()
147 getSample_LA(const uint8_t *p, int32_t iPixel, in getSample_LA() argument
149 float2 p0 = getElementAt2(p, iPixel); in getSample_LA()
150 float2 p1 = getElementAt2(p, next); in getSample_LA()
157 getSample_RGB(const uint8_t *p, int32_t iPixel, in getSample_RGB() argument
159 float3 p0 = getElementAt3(p, iPixel); in getSample_RGB()
160 float3 p1 = getElementAt3(p, next); in getSample_RGB()
167 getSample_565(const uint8_t *p, int32_t iPixel, in getSample_565() argument
169 float3 p0 = getElementAt565(p, iPixel); in getSample_565()
170 float3 p1 = getElementAt565(p, next); in getSample_565()
177 getSample_RGBA(const uint8_t *p, int32_t iPixel, in getSample_RGBA() argument
179 float4 p0 = getElementAt4(p, iPixel); in getSample_RGBA()
180 float4 p1 = getElementAt4(p, next); in getSample_RGBA()
188 getSample_A(const uint8_t *p, size_t stride, in getSample_A() argument
191 float p0 = getElementAt1(p, stride, locX, locY); in getSample_A()
192 float p1 = getElementAt1(p, stride, nextX, locY); in getSample_A()
193 float p2 = getElementAt1(p, stride, locX, nextY); in getSample_A()
194 float p3 = getElementAt1(p, stride, nextX, nextY); in getSample_A()
201 getSample_L(const uint8_t *p, size_t stride, in getSample_L() argument
204 float p0 = getElementAt1(p, stride, locX, locY); in getSample_L()
205 float p1 = getElementAt1(p, stride, nextX, locY); in getSample_L()
206 float p2 = getElementAt1(p, stride, locX, nextY); in getSample_L()
207 float p3 = getElementAt1(p, stride, nextX, nextY); in getSample_L()
214 getSample_LA(const uint8_t *p, size_t stride, in getSample_LA() argument
217 float2 p0 = getElementAt2(p, stride, locX, locY); in getSample_LA()
218 float2 p1 = getElementAt2(p, stride, nextX, locY); in getSample_LA()
219 float2 p2 = getElementAt2(p, stride, locX, nextY); in getSample_LA()
220 float2 p3 = getElementAt2(p, stride, nextX, nextY); in getSample_LA()
227 getSample_RGB(const uint8_t *p, size_t stride, in getSample_RGB() argument
230 float4 p0 = getElementAt4(p, stride, locX, locY); in getSample_RGB()
231 float4 p1 = getElementAt4(p, stride, nextX, locY); in getSample_RGB()
232 float4 p2 = getElementAt4(p, stride, locX, nextY); in getSample_RGB()
233 float4 p3 = getElementAt4(p, stride, nextX, nextY); in getSample_RGB()
240 getSample_RGBA(const uint8_t *p, size_t stride, in getSample_RGBA() argument
243 float4 p0 = getElementAt4(p, stride, locX, locY); in getSample_RGBA()
244 float4 p1 = getElementAt4(p, stride, nextX, locY); in getSample_RGBA()
245 float4 p2 = getElementAt4(p, stride, locX, nextY); in getSample_RGBA()
246 float4 p3 = getElementAt4(p, stride, nextX, nextY); in getSample_RGBA()
252 getSample_565(const uint8_t *p, size_t stride, in getSample_565() argument
255 float3 p0 = getElementAt565(p, stride, locX, locY); in getSample_565()
256 float3 p1 = getElementAt565(p, stride, nextX, locY); in getSample_565()
257 float3 p2 = getElementAt565(p, stride, locX, nextY); in getSample_565()
258 float3 p3 = getElementAt565(p, stride, nextX, nextY); in getSample_565()
272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample1D() local
276 return getSample_RGBA(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
278 return getSample_A(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
281 return getSample_565(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
283 return getSample_RGB(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
285 return getSample_L(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
287 return getSample_LA(p, iPixel, next, weights.x, weights.y); in getBilinearSample1D()
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample2D() local
327 return getSample_RGBA(p, stride, lx, ly, nx, ny, w0, w1, w2, w3); in getBilinearSample2D()
329 return getSample_A(p, stride, lx, ly, nx, ny, w0, w1, w2, w3); in getBilinearSample2D()
331 return getSample_LA(p, stride, lx, ly, nx, ny, w0, w1, w2, w3); in getBilinearSample2D()
334 return getSample_565(p, stride, lx, ly, nx, ny, w0, w1, w2, w3); in getBilinearSample2D()
336 return getSample_RGB(p, stride, lx, ly, nx, ny, w0, w1, w2, w3); in getBilinearSample2D()
338 return getSample_L(p, stride, lx, ly, nx, ny, w0, w1, w2, w3); in getBilinearSample2D()
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample() local
357 result = getElementAt4(p, iPixel); in getNearestSample()
360 result.w = getElementAt1(p, iPixel); in getNearestSample()
363 result.zw = getElementAt2(p, iPixel); in getNearestSample()
368 result.xyz = getElementAt565(p, iPixel); in getNearestSample()
370 result.xyz = getElementAt3(p, iPixel); in getNearestSample()
374 result.xyz = getElementAt1(p, iPixel); in getNearestSample()
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample() local
395 result = getElementAt4(p, stride, iPixel.x, iPixel.y); in getNearestSample()
398 result.w = getElementAt1(p, stride, iPixel.x, iPixel.y); in getNearestSample()
401 result.zw = getElementAt2(p, stride, iPixel.x, iPixel.y); in getNearestSample()
406 result.xyz = getElementAt565(p, stride, iPixel.x, iPixel.y); in getNearestSample()
408 result.xyz = getElementAt3(p, stride, iPixel.x, iPixel.y); in getNearestSample()
532 const Allocation_t *alloc = (const Allocation_t *)a.p; in rsSample()
533 const Sampler_t *prog = (Sampler_t *)s.p; in rsSample()
584 const Allocation_t *alloc = (const Allocation_t *)a.p; in rsSample()
585 const Sampler_t *prog = (Sampler_t *)s.p; in rsSample()
631 const Allocation_t *alloc = (const Allocation_t *)a.p; in rsSample()
632 const Sampler_t *prog = (Sampler_t *)s.p; in rsSample()