Home
last modified time | relevance | path

Searched refs:rowSampling (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()
456 mediaImage->mPlane[mediaImage->Y].mVertSubsampling = yPlane.rowSampling; in GraphicView2MediaImageConverter()
457 int32_t offset = rowInc * vStride / yPlane.rowSampling; in GraphicView2MediaImageConverter()
464 mediaImage->mPlane[mediaImage->U].mVertSubsampling = uPlane.rowSampling; in GraphicView2MediaImageConverter()
465 offset += rowInc * vStride / uPlane.rowSampling; in GraphicView2MediaImageConverter()
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp81 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy()
91 uint32_t planeH = img->mHeight / plane.rowSampling; in _ImageCopy()
301 && layout.planes[layout.PLANE_Y].rowSampling == 1 in IsYUV420()
307 && layout.planes[layout.PLANE_U].rowSampling == 2 in IsYUV420()
313 && layout.planes[layout.PLANE_V].rowSampling == 2); in IsYUV420()
324 && layout.planes[layout.PLANE_Y].rowSampling == 1 in IsYUV420_10bit()
329 && layout.planes[layout.PLANE_U].rowSampling == 2 in IsYUV420_10bit()
334 && layout.planes[layout.PLANE_V].rowSampling == 2); in IsYUV420_10bit()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp196 ASSERT_EQ(1u, yPlane.rowSampling); in TEST()
203 ASSERT_EQ(2u, uPlane.rowSampling); in TEST()
210 ASSERT_EQ(2u, vPlane.rowSampling); in TEST()
333 ASSERT_EQ(1u, yPlane.rowSampling); in TEST()
340 ASSERT_EQ(2u, uPlane.rowSampling); in TEST()
347 ASSERT_EQ(2u, vPlane.rowSampling); in TEST()
652 for (uint32_t row = 0; row < view.height() / plane.rowSampling; ++row) { in FillPlane()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp436 for (uint32_t row = 0; row < rect.height / info.rowSampling; ++row) { in fillPlane()
437 int32_t rowOffset = (row + rect.top / info.rowSampling) * info.rowInc; in fillPlane()
446 for (uint32_t row = 0; row < rect.height / info.rowSampling; ++row) { in verifyPlane()
447 int32_t rowOffset = (row + rect.top / info.rowSampling) * info.rowInc; in verifyPlane()
/frameworks/av/media/codec2/vndk/
DC2Buffer.cpp1313 const uint32_t rowSampling = mLayout.planes[planeIx].rowSampling; in Mapped() local
1315 || crop.top % rowSampling || crop.bottom() % rowSampling) { in Mapped()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h1626 uint32_t rowSampling; ///< subsampling compared to height (must be a power of 2) member
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp2662 int rowSampling = 1; in android_media_MediaCodec_mapHardwareBuffer() local
2667 int maxRowOffset = plane.rowStride * (desc.height / rowSampling - 1); in android_media_MediaCodec_mapHardwareBuffer()
2683 rowSampling = 2; in android_media_MediaCodec_mapHardwareBuffer()