Lines Matching refs:lod
270 rs_data_kind dk, rs_data_type dt, uint32_t lod) { in getBilinearSample1D() argument
272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample1D()
320 rs_data_kind dk, rs_data_type dt, uint32_t lod) { in getBilinearSample2D() argument
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample2D()
323 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getBilinearSample2D()
349 rs_data_type dt, uint32_t lod) { in getNearestSample() argument
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample()
386 rs_data_type dt, uint32_t lod) { in getNearestSample() argument
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample()
389 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getNearestSample()
424 float uv, uint32_t lod) { in sample_LOD_LinearPixel() argument
426 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
447 return getBilinearSample1D(alloc, weights, location, next, dk, dt, lod); in sample_LOD_LinearPixel()
454 float uv, uint32_t lod) { in sample_LOD_NearestPixel() argument
456 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel()
460 return getNearestSample(alloc, location, dk, dt, lod); in sample_LOD_NearestPixel()
468 float2 uv, uint32_t lod) { in sample_LOD_LinearPixel() argument
470 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
471 int sourceH = alloc->mHal.drvState.lod[lod].dimY; in sample_LOD_LinearPixel()
505 return getBilinearSample2D(alloc, w0, w1, w2, w3, lx, ly, nx, ny, dk, dt, lod); in sample_LOD_LinearPixel()
514 float2 uv, uint32_t lod) { in sample_LOD_NearestPixel() argument
515 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel()
516 int sourceH = alloc->mHal.drvState.lod[lod].dimY; in sample_LOD_NearestPixel()
526 return getNearestSample(alloc, location, dk, dt, lod); in sample_LOD_NearestPixel()
530 rsSample(rs_allocation a, rs_sampler s, float uv, float lod) { in rsSample() argument
546 if (lod <= 0.0f) { in rsSample()
555 lod = min(lod, (float)maxLOD); in rsSample()
556 uint32_t nearestLOD = (uint32_t)round(lod); in rsSample()
561 uint32_t lod0 = (uint32_t)floor(lod); in rsSample()
562 uint32_t lod1 = (uint32_t)ceil(lod); in rsSample()
568 float frac = lod - (float)lod0; in rsSample()
582 rsSample(rs_allocation a, rs_sampler s, float2 uv, float lod) { in rsSample() argument
599 if (lod <= 0.0f) { in rsSample()
608 lod = min(lod, (float)maxLOD); in rsSample()
609 uint32_t nearestLOD = (uint32_t)round(lod); in rsSample()
614 uint32_t lod0 = (uint32_t)floor(lod); in rsSample()
615 uint32_t lod1 = (uint32_t)ceil(lod); in rsSample()
621 float frac = lod - (float)lod0; in rsSample()