Lines Matching refs:mediaImage

222         MediaImage2 *mediaImage = (MediaImage2 *)mMediaImage->base();  in GraphicView2MediaImageConverter()  local
229 memset(mediaImage, 0, sizeof(*mediaImage)); in GraphicView2MediaImageConverter()
239 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_YUV; in GraphicView2MediaImageConverter()
286 mediaImage->mPlane[i].mOffset = mView.data()[i] - minPtr; in GraphicView2MediaImageConverter()
287 mediaImage->mPlane[i].mColInc = plane.colInc; in GraphicView2MediaImageConverter()
288 mediaImage->mPlane[i].mRowInc = plane.rowInc; in GraphicView2MediaImageConverter()
289 mediaImage->mPlane[i].mHorizSubsampling = plane.colSampling; in GraphicView2MediaImageConverter()
290 mediaImage->mPlane[i].mVertSubsampling = plane.rowSampling; in GraphicView2MediaImageConverter()
301 mediaImage->mPlane[mediaImage->Y].mOffset = 0; in GraphicView2MediaImageConverter()
302 mediaImage->mPlane[mediaImage->Y].mColInc = 1; in GraphicView2MediaImageConverter()
303 mediaImage->mPlane[mediaImage->Y].mRowInc = stride; in GraphicView2MediaImageConverter()
304 mediaImage->mPlane[mediaImage->Y].mHorizSubsampling = 1; in GraphicView2MediaImageConverter()
305 mediaImage->mPlane[mediaImage->Y].mVertSubsampling = 1; in GraphicView2MediaImageConverter()
307 mediaImage->mPlane[mediaImage->U].mOffset = stride * vStride; in GraphicView2MediaImageConverter()
308 mediaImage->mPlane[mediaImage->U].mColInc = 1; in GraphicView2MediaImageConverter()
309 mediaImage->mPlane[mediaImage->U].mRowInc = stride / 2; in GraphicView2MediaImageConverter()
310 mediaImage->mPlane[mediaImage->U].mHorizSubsampling = 2; in GraphicView2MediaImageConverter()
311 mediaImage->mPlane[mediaImage->U].mVertSubsampling = 2; in GraphicView2MediaImageConverter()
313 mediaImage->mPlane[mediaImage->V].mOffset = stride * vStride * 5 / 4; in GraphicView2MediaImageConverter()
314 mediaImage->mPlane[mediaImage->V].mColInc = 1; in GraphicView2MediaImageConverter()
315 mediaImage->mPlane[mediaImage->V].mRowInc = stride / 2; in GraphicView2MediaImageConverter()
316 mediaImage->mPlane[mediaImage->V].mHorizSubsampling = 2; in GraphicView2MediaImageConverter()
317 mediaImage->mPlane[mediaImage->V].mVertSubsampling = 2; in GraphicView2MediaImageConverter()
322 mediaImage->mPlane[mediaImage->Y].mOffset = 0; in GraphicView2MediaImageConverter()
323 mediaImage->mPlane[mediaImage->Y].mColInc = 1; in GraphicView2MediaImageConverter()
324 mediaImage->mPlane[mediaImage->Y].mRowInc = stride; in GraphicView2MediaImageConverter()
325 mediaImage->mPlane[mediaImage->Y].mHorizSubsampling = 1; in GraphicView2MediaImageConverter()
326 mediaImage->mPlane[mediaImage->Y].mVertSubsampling = 1; in GraphicView2MediaImageConverter()
328 mediaImage->mPlane[mediaImage->U].mOffset = stride * vStride; in GraphicView2MediaImageConverter()
329 mediaImage->mPlane[mediaImage->U].mColInc = 2; in GraphicView2MediaImageConverter()
330 mediaImage->mPlane[mediaImage->U].mRowInc = stride; in GraphicView2MediaImageConverter()
331 mediaImage->mPlane[mediaImage->U].mHorizSubsampling = 2; in GraphicView2MediaImageConverter()
332 mediaImage->mPlane[mediaImage->U].mVertSubsampling = 2; in GraphicView2MediaImageConverter()
334 mediaImage->mPlane[mediaImage->V].mOffset = stride * vStride + 1; in GraphicView2MediaImageConverter()
335 mediaImage->mPlane[mediaImage->V].mColInc = 2; in GraphicView2MediaImageConverter()
336 mediaImage->mPlane[mediaImage->V].mRowInc = stride; in GraphicView2MediaImageConverter()
337 mediaImage->mPlane[mediaImage->V].mHorizSubsampling = 2; in GraphicView2MediaImageConverter()
338 mediaImage->mPlane[mediaImage->V].mVertSubsampling = 2; in GraphicView2MediaImageConverter()
348 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_YUVA; in GraphicView2MediaImageConverter()
354 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_RGB; in GraphicView2MediaImageConverter()
373 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_RGBA; in GraphicView2MediaImageConverter()
393 mediaImage->mType = MediaImage2::MEDIA_IMAGE_TYPE_UNKNOWN; in GraphicView2MediaImageConverter()
398 mediaImage->mNumPlanes = layout.numPlanes; in GraphicView2MediaImageConverter()
399 mediaImage->mWidth = view.crop().width; in GraphicView2MediaImageConverter()
400 mediaImage->mHeight = view.crop().height; in GraphicView2MediaImageConverter()
401 mediaImage->mBitDepth = bitDepth; in GraphicView2MediaImageConverter()
402 mediaImage->mBitDepthAllocated = mAllocatedDepth; in GraphicView2MediaImageConverter()