Lines Matching refs:img
64 static status_t _ImageCopy(View &view, const MediaImage2 *img, ImagePixel *imgBase) { in _ImageCopy() argument
68 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy()
69 if (view.width() != img->mWidth in _ImageCopy()
70 || view.height() != img->mHeight) { in _ImageCopy()
75 imgBase + img->mPlane[i].mOffset; in _ImageCopy()
79 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy()
80 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy()
81 || plane.allocatedDepth != img->mBitDepthAllocated in _ImageCopy()
89 uint32_t planeW = img->mWidth / plane.colSampling; in _ImageCopy()
90 uint32_t planeH = img->mHeight / plane.rowSampling; in _ImageCopy()
96 imgPtr += img->mPlane[i].mColInc; in _ImageCopy()
99 imgRow += img->mPlane[i].mRowInc; in _ImageCopy()
108 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view) { in ImageCopy() argument
109 return _ImageCopy<true>(view, img, imgBase); in ImageCopy()
112 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img) { in ImageCopy() argument
113 return _ImageCopy<false>(view, img, imgBase); in ImageCopy()