HomeSort by relevance Sort by last modified time
    Searched refs:drvState (Results 1 - 25 of 27) sorted by null

1 2

  /frameworks/rs/support/jni/
android_rscompat_usage_io_driver.cpp 28 alloc->mHal.drvState.lod[0].mallocPtr = dst;
29 alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes;
49 r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX,
50 alloc->mHal.drvState.lod[0].dimY,
73 if (alloc->mHal.drvState.lod[0].mallocPtr) {
78 free(alloc->mHal.drvState.lod[0].mallocPtr);
80 alloc->mHal.drvState.lod[0].mallocPtr = NULL;
  /frameworks/rs/rsov/driver/
rsovAllocation.cpp 33 size_t DeriveYUVLayout(int yuv, Allocation::Hal::DrvState *state) {
85 alloc->mHal.drvState.lod[0].dimX = type->getDimX();
86 alloc->mHal.drvState.lod[0].dimY = type->getDimY();
87 alloc->mHal.drvState.lod[0].dimZ = type->getDimZ();
88 alloc->mHal.drvState.lod[0].mallocPtr = 0;
91 alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes();
92 alloc->mHal.drvState.lod[0].stride = rsRound(stride, requiredAlignment);
93 alloc->mHal.drvState.lodCount = type->getLODCount();
94 alloc->mHal.drvState.faceCount = type->getDimFaces();
99 size_t o = alloc->mHal.drvState.lod[0].stride
    [all...]
rsovRuntimeStubs.cpp 480 uint8_t *p = (uint8_t *)a->mHal.drvState.lod[0].mallocPtr;
482 const uint32_t stride = a->mHal.drvState.lod[0].stride;
483 const uint32_t dimY = a->mHal.drvState.lod[0].dimY;
    [all...]
  /frameworks/rs/
rsGrallocConsumer.cpp 36 uint32_t width = a->mHal.drvState.lod[0].dimX;
37 uint32_t height = a->mHal.drvState.lod[0].dimY;
158 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = data;
159 mAlloc[idx]->mHal.drvState.lod[0].stride = rowstride;
164 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX;
165 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY;
212 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth;
213 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight;
214 mAlloc[idx]->mHal.drvState.lod[2].dimX = cWidth;
215 mAlloc[idx]->mHal.drvState.lod[2].dimY = cHeight
    [all...]
rsAllocation.h 84 struct DrvState {
104 mutable DrvState drvState;
199 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr;
201 p += y * mHal.drvState.lod[lod].stride;
202 p += z * mHal.drvState.lod[lod].stride * mHal.drvState.lod[lod].dimY;
rsAllocation.cpp 175 if ((lod >= mHal.drvState.lodCount) ||
176 (z && (z >= mHal.drvState.lod[lod].dimZ)) ||
188 if ((stride != nullptr) && mHal.drvState.lod[0].dimY) {
189 *stride = mHal.drvState.lod[lod].stride;
191 return mHal.drvState.lod[lod].mallocPtr;
275 if (x >= mHal.drvState.lod[0].dimX) {
280 if (y > 0 && y >= mHal.drvState.lod[0].dimY) {
285 if (z > 0 && z >= mHal.drvState.lod[0].dimZ) {
308 if (x >= mHal.drvState.lod[0].dimX) {
313 if (y > 0 && y >= mHal.drvState.lod[0].dimY)
    [all...]
rsScriptC_Lib.cpp 252 if (lod >= alloc->mHal.drvState.lodCount) {
255 ss << lod << " >= " << alloc->mHal.drvState.lodCount;
260 const uint32_t allocDimX = alloc->mHal.drvState.lod[lod].dimX;
272 const uint32_t allocDimY = alloc->mHal.drvState.lod[lod].dimY;
  /frameworks/rs/driver/
rsdAllocation.cpp 87 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
88 ptr += face * alloc->mHal.drvState.faceOffset;
89 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
90 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
172 if (!alloc->mHal.drvState.lod[0].mallocPtr) {
186 if (alloc->mHal.drvState.lod[0].mallocPtr) {
187 free(alloc->mHal.drvState.lod[0].mallocPtr);
188 alloc->mHal.drvState.lod[0].mallocPtr = nullptr;
214 alloc->mHal.drvState.lod[0].dimX, alloc->mHal.drvState.lod[0].dimY)
    [all...]
rsdMeshObj.cpp 158 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr;
179 idxAlloc->mHal.drvState.lod[0].mallocPtr);
  /frameworks/rs/cpu_ref/
rsCpuIntrinsicYuvToRGB.cpp 106 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
112 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride;
115 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) {
124 size_t cstep = cp->alloc->mHal.drvState.yuv.step;
126 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr;
127 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride;
130 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr;
131 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride;
137 //ALOGE("dimX, %d, dimY, %d", cp->alloc->mHal.drvState.lod[0].dimX, cp->alloc->mHal.drvState.lod[0].dimY)
    [all...]
rsCpuIntrinsicResize.cpp 315 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
316 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY;
317 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
318 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
382 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
383 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY;
384 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX;
385 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
449 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
450 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY
    [all...]
rsCpuIntrinsic3DLUT.cpp 64 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr;
67 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1),
68 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1),
69 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1),
74 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride;
75 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY;
rsCpuScriptGroup.cpp 69 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr;
76 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y);
78 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) {
81 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->lid);
94 (uint8_t *)sl->outs[ct]->mHal.drvState.lod[0].mallocPtr;
101 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->current.y;
103 } else if (sl->outs[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) {
106 sl->outs[ct]->mHal.drvState.lod[0].stride * kinfo->lid;
rsCpuIntrinsicLUT.cpp 60 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr;
rsCpuIntrinsicConvolve3x3.cpp 188 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
189 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
235 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
236 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
280 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
281 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
325 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
326 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
370 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
371 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride
    [all...]
rsCpuIntrinsicConvolve5x5.cpp 351 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
352 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
411 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
412 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
460 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
461 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
509 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
510 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride;
558 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr;
559 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride
    [all...]
rsCpuScript.cpp 55 return alloc && alloc->mHal.drvState.lod[0].mallocPtr == nullptr;
599 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr;
606 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr;
720 mtls->fep.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr;
726 mtls->fep.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr;
919 ptr = data->mHal.drvState.lod[0].mallocPtr;
958 if (a->mHal.drvState.lod[0].mallocPtr == ptr) {
    [all...]
rsCpuIntrinsicBlur.cpp 300 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
301 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
371 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr;
372 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride;
rsCpuScriptGroup2.cpp 57 const uint8_t* ptr = (uint8_t*)(a->mHal.drvState.lod[0].mallocPtr) +
60 ptr += a->mHal.drvState.lod[0].stride * kinfo->current.y;
69 const uint8_t* ptr = (uint8_t *)(out->mHal.drvState.lod[0].mallocPtr) +
72 ptr += out->mHal.drvState.lod[0].stride * kinfo->current.y;
rsCpuIntrinsicBLAS.cpp 73 *A = ain[0]->mHal.drvState.lod[0].mallocPtr;
74 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size);
77 *B = ain[1]->mHal.drvState.lod[0].mallocPtr;
78 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size);
81 *C = ain[2]->mHal.drvState.lod[0].mallocPtr;
82 *ldc = (int)(ain[2]->mHal.drvState.lod[0].stride/size);
    [all...]
rsCpuCore.cpp 856 if ((mtls->aout[0] != nullptr) && mtls->aout[0]->mHal.drvState.lod[0].stride) {
857 s2 = targetByteChunk / mtls->aout[0]->mHal.drvState.lod[0].stride;
859 s2 = targetByteChunk / mtls->ains[0]->mHal.drvState.lod[0].stride;
    [all...]
rsCpuIntrinsicHistogram.cpp 149 unsigned int *o = (unsigned int *)mAllocOut->mHal.drvState.lod[0].mallocPtr;
  /frameworks/rs/driver/runtime/
rs_allocation.c 8 return alloc->mHal.drvState.lod[0].dimX;
14 return alloc->mHal.drvState.lod[0].dimY;
20 return alloc->mHal.drvState.lod[0].dimZ;
69 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr;
70 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride;
71 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY;
81 uint8_t *p = (uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr;
82 const uint32_t stride = alloc->mHal.drvState.lod[0].stride;
83 const uint32_t dimY = alloc->mHal.drvState.lod[0].dimY;
256 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[0].mallocPtr
    [all...]
rs_sample.c 272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
323 size_t stride = alloc->mHal.drvState.lod[lod].stride;
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr;
389 size_t stride = alloc->mHal.drvState.lod[lod].stride;
426 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX;
456 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX;
470 int sourceW = alloc->mHal.drvState.lod[lod].dimX;
471 int sourceH = alloc->mHal.drvState.lod[lod].dimY
    [all...]
rs_structs.h 62 struct DrvState {
81 } drvState;

Completed in 227 milliseconds

1 2