/frameworks/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 89 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() 257 image.mPlane[image.Y].mOffset = 0; in DescribeDefaultColorFormat() 258 image.mPlane[image.Y].mColInc = 1; in DescribeDefaultColorFormat() 259 image.mPlane[image.Y].mRowInc = params.nStride; in DescribeDefaultColorFormat() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 361 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 …]
|
D | CCodecBuffers_test.cpp | 256 const MediaImage2::PlaneInfo &yPlane = img->mPlane[MediaImage2::Y]; in TEST() 257 const MediaImage2::PlaneInfo &uPlane = img->mPlane[MediaImage2::U]; in TEST() 258 const MediaImage2::PlaneInfo &vPlane = img->mPlane[MediaImage2::V]; in TEST() 396 const MediaImage2::PlaneInfo &yPlane = img->mPlane[MediaImage2::Y]; in TEST() 397 const MediaImage2::PlaneInfo &uPlane = img->mPlane[MediaImage2::U]; in TEST() 398 const MediaImage2::PlaneInfo &vPlane = img->mPlane[MediaImage2::V]; in TEST() 677 MediaImage2::PlaneInfo plane = mediaImage->mPlane[index]; in VerifyPlane() 817 legacyYLayout.mPlane[MediaImage2::Y] = { in VerifyClientBuffer()
|
/frameworks/av/media/codec2/sfplugin/ |
D | Codec2Buffer.cpp | 353 mediaImage->mPlane[mediaImage->Y].mOffset = 0; in GraphicView2MediaImageConverter() 354 mediaImage->mPlane[mediaImage->Y].mColInc = 1; in GraphicView2MediaImageConverter() 355 mediaImage->mPlane[mediaImage->Y].mRowInc = stride; in GraphicView2MediaImageConverter() 356 mediaImage->mPlane[mediaImage->Y].mHorizSubsampling = 1; in GraphicView2MediaImageConverter() 357 mediaImage->mPlane[mediaImage->Y].mVertSubsampling = 1; in GraphicView2MediaImageConverter() 359 mediaImage->mPlane[mediaImage->U].mOffset = stride * vStride; in GraphicView2MediaImageConverter() 360 mediaImage->mPlane[mediaImage->U].mColInc = 1; in GraphicView2MediaImageConverter() 361 mediaImage->mPlane[mediaImage->U].mRowInc = stride / 2; in GraphicView2MediaImageConverter() 362 mediaImage->mPlane[mediaImage->U].mHorizSubsampling = 2; in GraphicView2MediaImageConverter() 363 mediaImage->mPlane[mediaImage->U].mVertSubsampling = 2; in GraphicView2MediaImageConverter() [all …]
|
D | CCodecBuffers.cpp | 108 int32_t stride = img->mPlane[0].mRowInc; in handleImageData() 116 (int64_t)img->mPlane[1].mOffset - (int64_t)img->mPlane[0].mOffset; in handleImageData() 121 img->mPlane[0].mOffset, in handleImageData() 122 buffer->size() - img->mPlane[0].mOffset); in handleImageData()
|
D | CCodec.cpp | 1744 int32_t stride = img->mPlane[0].mRowInc; in configure() 1748 (int64_t)img->mPlane[1].mOffset - (int64_t)img->mPlane[0].mOffset; in configure()
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 76 imgBase + img->mPlane[i].mOffset; in _ImageCopy() 80 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy() 81 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy() 93 bool canCopyByRow = (plane.colInc == bpp) && (img->mPlane[i].mColInc == bpp); in _ImageCopy() 94 bool canCopyByPlane = canCopyByRow && (plane.rowInc == img->mPlane[i].mRowInc); in _ImageCopy() 100 imgRow, viewRow, std::min(plane.rowInc, img->mPlane[i].mRowInc)); in _ImageCopy() 101 imgRow += img->mPlane[i].mRowInc; in _ImageCopy() 110 imgPtr += img->mPlane[i].mColInc; in _ImageCopy() 113 imgRow += img->mPlane[i].mRowInc; in _ImageCopy() 136 uint8_t* dst_y = imgBase + img->mPlane[0].mOffset; in ImageCopy() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_impl_CameraExtensionJpegProcessor.cpp | 143 Plane mPlane; member in RowIterator 153 : mPlane(plane), mTransform(transform) { in RowIterator() 165 if (mPlane.width == 0 || mPlane.height == 0) { in loadAt() 175 output_width = min(output_width, mPlane.width); in loadAt() 190 startX = min(startX, mPlane.width - 1); in loadAt() 191 startY = min(startY, mPlane.height - 1); in loadAt() 192 endX = min(endX, mPlane.width - 1); in loadAt() 193 endY = min(endY, mPlane.height - 1); in loadAt() 210 int plane_start = startX * mPlane.pixelStride + startY * mPlane.rowStride; in loadAt() 212 int plane_end = endX * mPlane.pixelStride + endY * mPlane.rowStride; in loadAt() [all …]
|
/frameworks/ex/camera2/extensions/jni/ |
D | JpegEncoder.cpp | 141 Plane mPlane; member in RowIterator 151 : mPlane(plane), mTransform(transform) { in RowIterator() 163 if (mPlane.width == 0 || mPlane.height == 0) { in loadAt() 173 output_width = min(output_width, mPlane.width); in loadAt() 188 startX = min(startX, mPlane.width - 1); in loadAt() 189 startY = min(startY, mPlane.height - 1); in loadAt() 190 endX = min(endX, mPlane.width - 1); in loadAt() 191 endY = min(endY, mPlane.height - 1); in loadAt() 208 int plane_start = startX * mPlane.pixelStride + startY * mPlane.rowStride; in loadAt() 210 int plane_end = endX * mPlane.pixelStride + endY * mPlane.rowStride; in loadAt() [all …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicCompositeStream.cpp | 1551 __FUNCTION__, imageInfo->mPlane[MediaImage2::U].mOffset, in copyOneYuvTile() 1552 imageInfo->mPlane[MediaImage2::V].mOffset, in copyOneYuvTile() 1553 imageInfo->mPlane[MediaImage2::U].mRowInc, in copyOneYuvTile() 1554 imageInfo->mPlane[MediaImage2::V].mRowInc, in copyOneYuvTile() 1555 imageInfo->mPlane[MediaImage2::U].mColInc, in copyOneYuvTile() 1556 imageInfo->mPlane[MediaImage2::V].mColInc); in copyOneYuvTile() 1560 uint8_t *dst = codecBuffer->data() + imageInfo->mPlane[MediaImage2::Y].mOffset + in copyOneYuvTile() 1561 imageInfo->mPlane[MediaImage2::Y].mRowInc * (row - top); in copyOneYuvTile() 1566 bool codecUPlaneFirst = imageInfo->mPlane[MediaImage2::V].mOffset > in copyOneYuvTile() 1567 imageInfo->mPlane[MediaImage2::U].mOffset; in copyOneYuvTile() [all …]
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | ColorConverter.cpp | 155 .mPlane = { in CreateYUV420PlanarMediaImage2() 192 .mPlane = { in CreateYUV420SemiPlanarMediaImage2() 223 img.mPlane[MediaImage2::PlaneIndex::Y]; in Image() 225 img.mPlane[MediaImage2::PlaneIndex::U]; in Image() 227 img.mPlane[MediaImage2::PlaneIndex::V]; in Image() 293 const MediaImage2::PlaneInfo &yPlane = mImage.mPlane[MediaImage2::PlaneIndex::Y]; in getYUVPlaneOffsetAndStride() 298 const MediaImage2::PlaneInfo &uPlane = mImage.mPlane[MediaImage2::PlaneIndex::U]; in getYUVPlaneOffsetAndStride() 303 const MediaImage2::PlaneInfo &vPlane = mImage.mPlane[MediaImage2::PlaneIndex::V]; in getYUVPlaneOffsetAndStride() 317 const MediaImage2::PlaneInfo &uPlane = mImage.mPlane[MediaImage2::PlaneIndex::U]; in isNV21() 318 const MediaImage2::PlaneInfo &vPlane = mImage.mPlane[MediaImage2::PlaneIndex::V]; in isNV21() [all …]
|
/frameworks/base/core/java/com/android/internal/graphics/cam/ |
D | HctSolver.java | 571 int mPlane = (int) Math.floor((lPlane + rPlane) / 2.0); in bisectToLimit() local 572 double midPlaneCoordinate = CRITICAL_PLANES[mPlane]; in bisectToLimit() 577 rPlane = mPlane; in bisectToLimit() 581 lPlane = mPlane; in bisectToLimit()
|
/frameworks/native/headers/media_plugin/media/hardware/ |
D | VideoAPI.h | 54 PlaneInfo mPlane[MAX_NUM_PLANES]; member 96 PlaneInfo mPlane[MAX_NUM_PLANES]; member
|
/frameworks/av/media/libstagefright/ |
D | ACodec.cpp | 5289 MediaImage2::PlaneInfo *plane = img.mPlane; in getPortFormat()
|