Lines Matching defs:alloc

268         getBilinearSample1D(const Allocation_t *alloc, float2 weights,
272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
318 getBilinearSample2D(const Allocation_t *alloc, float w0, float w1, float w2, float w3,
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
323 size_t stride = alloc->mHal.drvState.lod[lod].stride;
348 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk,
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
385 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk,
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
389 size_t stride = alloc->mHal.drvState.lod[lod].stride;
421 sample_LOD_LinearPixel(const Allocation_t *alloc,
426 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
428 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX;
449 return getBilinearSample1D(alloc, weights, location, next, dk, dt, lod);
453 sample_LOD_NearestPixel(const Allocation_t *alloc,
458 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX;
462 return getNearestSample(alloc, location, dk, dt, lod);
466 sample_LOD_LinearPixel(const Allocation_t *alloc,
472 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
474 int sourceW = alloc->mHal.drvState.lod[lod].dimX;
475 int sourceH = alloc->mHal.drvState.lod[lod].dimY;
509 return getBilinearSample2D(alloc, w0, w1, w2, w3, lx, ly, nx, ny, dk, dt, lod);
514 sample_LOD_NearestPixel(const Allocation_t *alloc,
519 int sourceW = alloc->mHal.drvState.lod[lod].dimX;
520 int sourceH = alloc->mHal.drvState.lod[lod].dimY;
530 return getNearestSample(alloc, location, dk, dt, lod);
536 const Allocation_t *alloc = (const Allocation_t *)a.p;
538 const Type_t *type = (Type_t *)alloc->mHal.state.type;
546 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) {
552 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, uv, 0);
554 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, 0);
561 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, nearestLOD);
570 float4 sample0 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, lod0);
571 float4 sample1 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, lod1);
576 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, uv, 0);
588 const Allocation_t *alloc = (const Allocation_t *)a.p;
590 const Type_t *type = (Type_t *)alloc->mHal.state.type;
599 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) {
605 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, wrapT, uv, 0);
607 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, 0);
614 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, nearestLOD);
623 float4 sample0 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, lod0);
624 float4 sample1 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, lod1);
629 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, wrapT, uv, 0);
635 const Allocation_t *alloc = (const Allocation_t *)a.p;
637 const Type_t *type = (Type_t *)alloc->mHal.state.type;
644 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) {
649 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, wrapT, uv, 0);
651 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, 0);