Lines Matching refs:mWidth
35 mWidth(w), mHeight(h), mFourcc(fourcc), in V4L2Frame()
80 mWidth(w), mHeight(h), mFourcc(V4L2_PIX_FMT_YUV420) {}; in AllocatedFrame()
86 if ((mWidth % 2) || (mHeight % 2)) { in allocate()
87 ALOGE("%s: bad dimension %dx%d (not multiple of 2)", __FUNCTION__, mWidth, mHeight); in allocate()
91 uint32_t dataSize = mWidth * mHeight * 3 / 2; // YUV420 in allocate()
98 out->yStride = mWidth; in allocate()
99 uint8_t* cbStart = mData.data() + mWidth * mHeight; in allocate()
100 uint8_t* crStart = cbStart + mWidth * mHeight / 4; in allocate()
103 out->cStride = mWidth / 2; in allocate()
111 static_cast<int32_t>(mWidth), in getLayout()
123 if ((rect.left + rect.width) > static_cast<int>(mWidth) || in getCroppedLayout()
131 out->y = mData.data() + mWidth * rect.top + rect.left; in getCroppedLayout()
132 out->yStride = mWidth; in getCroppedLayout()
133 uint8_t* cbStart = mData.data() + mWidth * mHeight; in getCroppedLayout()
134 uint8_t* crStart = cbStart + mWidth * mHeight / 4; in getCroppedLayout()
135 out->cb = cbStart + mWidth * rect.top / 4 + rect.left / 2; in getCroppedLayout()
136 out->cr = crStart + mWidth * rect.top / 4 + rect.left / 2; in getCroppedLayout()
137 out->cStride = mWidth / 2; in getCroppedLayout()