Home
last modified time | relevance | path

Searched refs:mAlloc (Results 1 – 11 of 11) sorted by relevance

/frameworks/rs/
DrsGrallocConsumer.cpp36 mAlloc = a; in GrallocConsumer()
126 mAlloc->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); in lockNextBuffer()
127 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * in lockNextBuffer()
128 mAlloc->mHal.state.type->getElementSizeBytes(); in lockNextBuffer()
129 mAlloc->mHal.state.nativeBuffer = mAcquiredBuffer.mGraphicBuffer->getNativeBuffer(); in lockNextBuffer()
130 mAlloc->mHal.state.timestamp = b.mTimestamp; in lockNextBuffer()
132 assert(mAlloc->mHal.drvState.lod[0].dimX == in lockNextBuffer()
134 assert(mAlloc->mHal.drvState.lod[0].dimY == in lockNextBuffer()
144 if (mAlloc->mHal.state.yuv) { in lockNextBuffer()
145 mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb; in lockNextBuffer()
[all …]
DrsScriptGroup.cpp232 if (l->mAlloc.get()) { in create()
239 l->mAlloc = alloc; in create()
243 n->mOutputs[ct3]->mAlloc = alloc; in create()
259 mInputs[ct]->mAlloc = a; in setInput()
273 mOutputs[ct]->mAlloc = a; in setOutput()
286 if (mInputs[i]->mAlloc.get() == NULL) { in validateInputAndOutput()
293 if (mOutputs[i]->mAlloc.get() == NULL) { in validateInputAndOutput()
325 ain = n->mInputs[ct3]->mAlloc.get(); in execute()
331 ain = mInputs[ct3]->mAlloc.get(); in execute()
338 aout = n->mOutputs[ct3]->mAlloc.get(); in execute()
[all …]
DrsFileA3D.cpp35 mAlloc = NULL; in FileA3D()
59 if (mAlloc) { in ~FileA3D()
60 free(mAlloc); in ~FileA3D()
200 mAlloc = malloc(mDataSize); in load()
201 if (!mAlloc) { in load()
204 mData = (uint8_t *)mAlloc; in load()
205 len = fread(mAlloc, 1, mDataSize, f); in load()
DrsScriptGroup.h43 ObjectBaseRef<Allocation> mAlloc; variable
65 ObjectBaseRef<Allocation> mAlloc; variable
DrsGrallocConsumer.h55 Allocation *mAlloc; variable
DrsFileA3D.h86 void * mAlloc; variable
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp46 ObjectBaseRef<const Allocation> mAlloc; member in android::renderscript::RsdCpuScriptIntrinsicResize
66 mAlloc.set(static_cast<Allocation *>(data)); in setGlobalObj()
183 if (!cp->mAlloc.get()) { in kernelU4()
187 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
188 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4()
189 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4()
190 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
223 if (!cp->mAlloc.get()) { in kernelU2()
227 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
228 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU2()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp42 ObjectBaseRef<const Allocation> mAlloc; member in android::renderscript::RsdCpuScriptIntrinsicConvolve3x3
71 mAlloc.set(static_cast<Allocation *>(data)); in setGlobalObj()
191 if (!cp->mAlloc.get()) { in kernelU4()
195 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
238 if (!cp->mAlloc.get()) { in kernelU2()
242 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
243 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2()
283 if (!cp->mAlloc.get()) { in kernelU1()
287 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
[all …]
DrsCpuIntrinsicBlur.cpp45 ObjectBaseRef<Allocation> mAlloc; member in android::renderscript::RsdCpuScriptIntrinsicBlur
105 mAlloc.set(static_cast<Allocation *>(data)); in setGlobalObj()
288 if (!cp->mAlloc.get()) { in kernelU4()
292 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
358 if (!cp->mAlloc.get()) { in kernelU1()
362 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU1()
363 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1()
465 mAlloc.clear(); in invokeFreeChildren()
DrsCpuScriptGroup.cpp133 s->setVarObj(n->mInputs[ct2]->mDstField->mSlot, n->mInputs[ct2]->mAlloc.get()); in execute()
146 ain = n->mInputs[ct3]->mAlloc.get(); in execute()
153 ain = mSG->mInputs[ct3]->mAlloc.get(); in execute()
162 aout = n->mOutputs[ct3]->mAlloc.get(); in execute()
172 aout = mSG->mOutputs[ct3]->mAlloc.get(); in execute()
/frameworks/base/rs/java/android/renderscript/
DProgramVertexFixedFunction.java206 Allocation mAlloc; field in ProgramVertexFixedFunction.Constants
208 return mAlloc; in getAllocation()
220 mAlloc = Allocation.createTyped(rs, constInputType); in Constants()
239 mAlloc.destroy(); in destroy()
240 mAlloc = null; in destroy()
251 mAlloc.setFromFieldPacker(0, mIOBuffer); in addToBuffer()