Lines Matching refs:mAlloc
36 mAlloc = new Allocation *[numAlloc];
40 mAlloc[0] = a;
65 delete[] mAlloc;
147 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer);
148 mAlloc[idx]->mHal.drvState.lod[0].stride = mSlots[slot].mGraphicBuffer->getStride() *
149 mAlloc[idx]->mHal.state.type->getElementSizeBytes();
150 mAlloc[idx]->mHal.state.nativeBuffer = mAcquiredBuffer[idx].mGraphicBuffer->getNativeBuffer();
151 mAlloc[idx]->mHal.state.timestamp = b.mTimestamp;
153 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimX ==
155 rsAssert(mAlloc[idx]->mHal.drvState.lod[0].dimY ==
158 //mAlloc->format = mSlots[buf].mGraphicBuffer->getPixelFormat();
160 //mAlloc->crop = b.mCrop;
161 //mAlloc->transform = b.mTransform;
162 //mAlloc->scalingMode = b.mScalingMode;
163 //mAlloc->frameNumber = b.mFrameNumber;
172 if (mAlloc[idx]->mHal.state.yuv == HAL_PIXEL_FORMAT_YCbCr_420_888) {
173 const int yWidth = mAlloc[idx]->mHal.drvState.lod[0].dimX;
174 const int yHeight = mAlloc[idx]->mHal.drvState.lod[0].dimY;
181 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth;
182 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight;
183 mAlloc[idx]->mHal.drvState.lod[2].dimX = cWidth;
184 mAlloc[idx]->mHal.drvState.lod[2].dimY = cHeight;
186 mAlloc[idx]->mHal.drvState.lod[0].mallocPtr = ycbcr.y;
187 mAlloc[idx]->mHal.drvState.lod[1].mallocPtr = ycbcr.cb;
188 mAlloc[idx]->mHal.drvState.lod[2].mallocPtr = ycbcr.cr;
190 mAlloc[idx]->mHal.drvState.lod[0].stride = ycbcr.ystride;
191 mAlloc[idx]->mHal.drvState.lod[1].stride = ycbcr.cstride;
192 mAlloc[idx]->mHal.drvState.lod[2].stride = ycbcr.cstride;
194 mAlloc[idx]->mHal.drvState.yuv.shift = 1;
195 mAlloc[idx]->mHal.drvState.yuv.step = ycbcr.chroma_step;
196 mAlloc[idx]->mHal.drvState.lodCount = 3;
205 mAlloc[idx]->mHal.drvState.lod[1].dimX = cWidth;
206 mAlloc[idx]->mHal.drvState.lod[1].dimY = cHeight;
207 mAlloc[idx]->mHal.drvState.lod[2].dimX = cWidth;
208 mAlloc[idx]->mHal.drvState.lod[2].dimY = cHeight;
211 mAlloc[idx]->mHal.state.type->getElementSizeBytes(), 16);
214 uint8_t *yPtr = (uint8_t *)mAlloc[idx]->mHal.drvState.lod[0].mallocPtr;
218 mAlloc[idx]->mHal.drvState.lod[1].mallocPtr = cbPtr;
219 mAlloc[idx]->mHal.drvState.lod[2].mallocPtr = crPtr;
221 mAlloc[idx]->mHal.drvState.lod[0].stride = yStride;
222 mAlloc[idx]->mHal.drvState.lod[1].stride = cStride;
223 mAlloc[idx]->mHal.drvState.lod[2].stride = cStride;
225 mAlloc[idx]->mHal.drvState.yuv.shift = 1;
226 mAlloc[idx]->mHal.drvState.yuv.step = 1;
227 mAlloc[idx]->mHal.drvState.lodCount = 3;
279 mAlloc[i] = a;
302 mAlloc[idx] = nullptr;