Home
last modified time | relevance | path

Searched refs:mPlane (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp89 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX in initFromV1()
90 || image.mPlane[ix].mVertSubsampling > INT32_MAX) { in initFromV1()
103 mPlane[ix].mOffset = image.mPlane[ix].mOffset; in initFromV1()
104 mPlane[ix].mColInc = image.mPlane[ix].mColInc; in initFromV1()
105 mPlane[ix].mRowInc = image.mPlane[ix].mRowInc; in initFromV1()
106 mPlane[ix].mHorizSubsampling = (int32_t)image.mPlane[ix].mHorizSubsampling; in initFromV1()
107 mPlane[ix].mVertSubsampling = (int32_t)image.mPlane[ix].mVertSubsampling; in initFromV1()
255 image.mPlane[image.Y].mOffset = 0; in DescribeDefaultColorFormat()
256 image.mPlane[image.Y].mColInc = 1; in DescribeDefaultColorFormat()
257 image.mPlane[image.Y].mRowInc = params.nStride; in DescribeDefaultColorFormat()
[all …]
/frameworks/av/media/codec2/sfplugin/tests/
DMediaCodec_sanity_test.cpp361 EXPECT_EQ(img->mPlane[img->Y].mHorizSubsampling, 1u); in TEST_P()
362 EXPECT_EQ(img->mPlane[img->Y].mVertSubsampling, 1u); in TEST_P()
363 EXPECT_EQ(img->mPlane[img->U].mHorizSubsampling, 2u); in TEST_P()
364 EXPECT_EQ(img->mPlane[img->U].mVertSubsampling, 2u); in TEST_P()
365 EXPECT_EQ(img->mPlane[img->V].mHorizSubsampling, 2u); in TEST_P()
366 EXPECT_EQ(img->mPlane[img->V].mVertSubsampling, 2u); in TEST_P()
372 EXPECT_EQ(img->mPlane[img->Y].mOffset, 0u); in TEST_P()
373 EXPECT_EQ(img->mPlane[img->Y].mColInc, 1); in TEST_P()
374 EXPECT_EQ(img->mPlane[img->Y].mRowInc, stride); in TEST_P()
376 EXPECT_EQ(img->mPlane[img->U].mOffset, (uint32_t)(stride * vstride)); in TEST_P()
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp73 imgBase + img->mPlane[i].mOffset; in _ImageCopy()
77 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy()
78 || plane.rowSampling != img->mPlane[i].mVertSubsampling 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()
97 imgRow, viewRow, std::min(plane.rowInc, img->mPlane[i].mRowInc)); in _ImageCopy()
98 imgRow += img->mPlane[i].mRowInc; in _ImageCopy()
107 imgPtr += img->mPlane[i].mColInc; in _ImageCopy()
110 imgRow += img->mPlane[i].mRowInc; in _ImageCopy()
132 uint8_t* dst_y = imgBase + img->mPlane[0].mOffset; in ImageCopy()
[all …]
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp286 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()
[all …]
DCCodecBuffers.cpp87 int32_t stride = img->mPlane[0].mRowInc; in handleImageData()
91 int32_t vstride = (img->mPlane[1].mOffset - img->mPlane[0].mOffset) / stride; in handleImageData()
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp1422 __FUNCTION__, imageInfo->mPlane[MediaImage2::U].mOffset, in copyOneYuvTile()
1423 imageInfo->mPlane[MediaImage2::V].mOffset, in copyOneYuvTile()
1424 imageInfo->mPlane[MediaImage2::U].mRowInc, in copyOneYuvTile()
1425 imageInfo->mPlane[MediaImage2::V].mRowInc, in copyOneYuvTile()
1426 imageInfo->mPlane[MediaImage2::U].mColInc, in copyOneYuvTile()
1427 imageInfo->mPlane[MediaImage2::V].mColInc); in copyOneYuvTile()
1431 uint8_t *dst = codecBuffer->data() + imageInfo->mPlane[MediaImage2::Y].mOffset + in copyOneYuvTile()
1432 imageInfo->mPlane[MediaImage2::Y].mRowInc * (row - top); in copyOneYuvTile()
1437 bool codecUPlaneFirst = imageInfo->mPlane[MediaImage2::V].mOffset > in copyOneYuvTile()
1438 imageInfo->mPlane[MediaImage2::U].mOffset; in copyOneYuvTile()
[all …]
/frameworks/native/headers/media_plugin/media/hardware/
DVideoAPI.h54 PlaneInfo mPlane[MAX_NUM_PLANES]; member
96 PlaneInfo mPlane[MAX_NUM_PLANES]; member
/frameworks/av/media/libstagefright/
DACodec.cpp5032 MediaImage2::PlaneInfo *plane = img.mPlane; in getPortFormat()