Home
last modified time | relevance | path

Searched refs:colSampling (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp320 bool yuv420888 = yPlane.rowSampling == 1 && yPlane.colSampling == 1 in GraphicView2MediaImageConverter()
321 && uPlane.rowSampling == 2 && uPlane.colSampling == 2 in GraphicView2MediaImageConverter()
322 && vPlane.rowSampling == 2 && vPlane.colSampling == 2; in GraphicView2MediaImageConverter()
436 && yPlane.rowSampling == 1 && yPlane.colSampling == 1 in GraphicView2MediaImageConverter()
437 && uPlane.rowSampling == 2 && uPlane.colSampling == 2 in GraphicView2MediaImageConverter()
438 && vPlane.rowSampling == 2 && vPlane.colSampling == 2 in GraphicView2MediaImageConverter()
451 int32_t rowInc = stride * colInc / yPlane.colSampling; in GraphicView2MediaImageConverter()
455 mediaImage->mPlane[mediaImage->Y].mHorizSubsampling = yPlane.colSampling; in GraphicView2MediaImageConverter()
459 rowInc = stride * colInc / uPlane.colSampling; in GraphicView2MediaImageConverter()
463 mediaImage->mPlane[mediaImage->U].mHorizSubsampling = uPlane.colSampling; in GraphicView2MediaImageConverter()
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp80 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy()
90 uint32_t planeW = img->mWidth / plane.colSampling; in _ImageCopy()
300 && layout.planes[layout.PLANE_Y].colSampling == 1 in IsYUV420()
306 && layout.planes[layout.PLANE_U].colSampling == 2 in IsYUV420()
312 && layout.planes[layout.PLANE_V].colSampling == 2 in IsYUV420()
323 && layout.planes[layout.PLANE_Y].colSampling == 1 in IsYUV420_10bit()
328 && layout.planes[layout.PLANE_U].colSampling == 2 in IsYUV420_10bit()
333 && layout.planes[layout.PLANE_V].colSampling == 2 in IsYUV420_10bit()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp195 ASSERT_EQ(1u, yPlane.colSampling); in TEST()
202 ASSERT_EQ(2u, uPlane.colSampling); in TEST()
209 ASSERT_EQ(2u, vPlane.colSampling); in TEST()
332 ASSERT_EQ(1u, yPlane.colSampling); in TEST()
339 ASSERT_EQ(2u, uPlane.colSampling); in TEST()
346 ASSERT_EQ(2u, vPlane.colSampling); in TEST()
654 for (uint32_t col = 0; col < view.width() / plane.colSampling; ++col) { in FillPlane()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp438 for (uint32_t col = 0; col < rect.width / info.colSampling; ++col) { in fillPlane()
439 int32_t colOffset = (col + rect.left / info.colSampling) * info.colInc; in fillPlane()
448 for (uint32_t col = 0; col < rect.width / info.colSampling; ++col) { in verifyPlane()
449 int32_t colOffset = (col + rect.left / info.colSampling) * info.colInc; in verifyPlane()
/frameworks/av/media/codec2/vndk/
DC2Buffer.cpp1312 const uint32_t colSampling = mLayout.planes[planeIx].colSampling; in Mapped() local
1314 if (crop.left % colSampling || crop.right() % colSampling in Mapped()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h1625 uint32_t colSampling; ///< subsampling compared to width (must be a power of 2) member
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp2663 int colSampling = 1; in android_media_MediaCodec_mapHardwareBuffer() local
2668 int maxColOffset = plane.pixelStride * (desc.width / colSampling - 1); in android_media_MediaCodec_mapHardwareBuffer()
2684 colSampling = 2; in android_media_MediaCodec_mapHardwareBuffer()