Lines Matching refs:plane
76 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy() local
77 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy()
78 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy()
79 || plane.allocatedDepth != img->mBitDepthAllocated in _ImageCopy()
80 || plane.allocatedDepth < plane.bitDepth in _ImageCopy()
82 || plane.rightShift != plane.allocatedDepth - plane.bitDepth in _ImageCopy()
83 || (bpp > 1 && plane.endianness != plane.NATIVE)) { in _ImageCopy()
87 uint32_t planeW = img->mWidth / plane.colSampling; in _ImageCopy()
88 uint32_t planeH = img->mHeight / plane.rowSampling; in _ImageCopy()
90 bool canCopyByRow = (plane.colInc == 1) && (img->mPlane[i].mColInc == 1); in _ImageCopy()
91 bool canCopyByPlane = canCopyByRow && (plane.rowInc == img->mPlane[i].mRowInc); in _ImageCopy()
93 MemCopier<ToMediaImage, 0>::copy(imgRow, viewRow, plane.rowInc * planeH); in _ImageCopy()
97 imgRow, viewRow, std::min(plane.rowInc, img->mPlane[i].mRowInc)); in _ImageCopy()
99 viewRow += plane.rowInc; in _ImageCopy()
108 viewPtr += plane.colInc; in _ImageCopy()
111 viewRow += plane.rowInc; in _ImageCopy()