/aosp12/frameworks/av/media/ndk/ |
H A D | NdkImage.cpp | 35 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) : in AImage() argument 37 mTimestamp(timestamp), mWidth(width), mHeight(height), mNumPlanes(numPlanes) { in AImage() 133 AImage::getNumPlanes(int32_t* numPlanes) const { in getNumPlanes() 134 if (numPlanes == nullptr) { in getNumPlanes() 137 *numPlanes = -1; in getNumPlanes() 142 *numPlanes = mNumPlanes; in getNumPlanes() 690 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) { in AImage_getNumberOfPlanes() argument 692 if (image == nullptr || numPlanes == nullptr) { in AImage_getNumberOfPlanes() 694 __FUNCTION__, image, numPlanes); in AImage_getNumberOfPlanes() 697 return image->getNumPlanes(numPlanes); in AImage_getNumberOfPlanes()
|
H A D | NdkImagePriv.h | 56 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes); 75 media_status_t getNumPlanes(/*out*/int32_t* numPlanes) const;
|
/aosp12/frameworks/base/media/jni/ |
H A D | android_media_ImageReader.cpp | 764 int numPlanes, jobject buffer, int fenceFd, int format, int cropLeft, int cropTop, in ImageReader_createImagePlanes() argument 767 ALOGV("%s: create ImagePlane array with size %d", __FUNCTION__, numPlanes); in ImageReader_createImagePlanes() 777 if (isFormatOpaque(halReaderFormat) && numPlanes > 0) { in ImageReader_createImagePlanes() 780 " must be 0", halReaderFormat, numPlanes); in ImageReader_createImagePlanes() 785 jobjectArray imagePlanes = env->NewObjectArray(numPlanes, gImagePlaneClassInfo.clazz, in ImageReader_createImagePlanes() 811 for (int i = 0; i < numPlanes; i++) { in ImageReader_createImagePlanes() 833 int numPlanes, int readerFormat, uint64_t ndkReaderUsage) in Image_createSurfacePlanes() argument 835 ALOGV("%s: create SurfacePlane array with size %d", __FUNCTION__, numPlanes); in Image_createSurfacePlanes() 845 if (isFormatOpaque(halReaderFormat) && numPlanes > 0) { in Image_createSurfacePlanes() 848 " must be 0", halReaderFormat, numPlanes); in Image_createSurfacePlanes() [all …]
|
H A D | android_media_ImageWriter.cpp | 1005 int numPlanes, int writerFormat) { in Image_createSurfacePlanes() argument 1006 ALOGV("%s: create SurfacePlane array with size %d", __FUNCTION__, numPlanes); in Image_createSurfacePlanes() 1013 if (isFormatOpaque(format) && numPlanes > 0) { in Image_createSurfacePlanes() 1016 " must be 0", format, numPlanes); in Image_createSurfacePlanes() 1021 jobjectArray surfacePlanes = env->NewObjectArray(numPlanes, gSurfacePlaneClassInfo.clazz, in Image_createSurfacePlanes() 1039 for (int i = 0; i < numPlanes; i++) { in Image_createSurfacePlanes()
|
/aosp12/frameworks/av/media/codec2/sfplugin/ |
H A D | Codec2Buffer.cpp | 240 if (layout.numPlanes == 0) { in GraphicView2MediaImageConverter() 258 if (layout.numPlanes != 3) { in GraphicView2MediaImageConverter() 259 ALOGD("Converter: %d planes for YUV layout", layout.numPlanes); in GraphicView2MediaImageConverter() 453 if (layout.numPlanes == 1) { in GraphicView2MediaImageConverter() 477 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in GraphicView2MediaImageConverter() 498 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in GraphicView2MediaImageConverter() 511 mediaImage->mNumPlanes = layout.numPlanes; in GraphicView2MediaImageConverter() 518 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in GraphicView2MediaImageConverter()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | ImageReader.java | 1133 private synchronized native SurfacePlane[] nativeCreatePlanes(int numPlanes, in nativeCreatePlanes() argument 1199 public static ImagePlane[] initializeImagePlanes(int numPlanes, in initializeImagePlanes() argument 1203 return nativeCreateImagePlanes(numPlanes, buffer, fenceFd, format, crop.left, crop.top, in initializeImagePlanes() 1207 private synchronized static native ImagePlane[] nativeCreateImagePlanes(int numPlanes, in nativeCreateImagePlanes() argument
|
H A D | ImageWriter.java | 850 int numPlanes = ImageUtils.getNumPlanesForFormat(getFormat()); in getPlanes() local 851 mPlanes = nativeCreatePlanes(numPlanes, getOwner().getFormat()); in getPlanes() 959 private synchronized native SurfacePlane[] nativeCreatePlanes(int numPlanes, int writerFmt); in nativeCreatePlanes() argument
|
H A D | MediaCodec.java | 5129 int numPlanes = info.getInt(); in MediaImage() local 5130 if (numPlanes != 3) { in MediaImage() 5131 throw new RuntimeException("unexpected number of planes: " + numPlanes); in MediaImage() 5148 mPlanes = new MediaPlane[numPlanes]; in MediaImage() 5149 for (int ix = 0; ix < numPlanes; ix++) { in MediaImage()
|
/aosp12/frameworks/av/media/codec2/vndk/ |
H A D | C2AllocatorGralloc.cpp | 407 layout->numPlanes = 4; in map() 480 layout->numPlanes = 3; in map() 571 layout->numPlanes = 3; in map() 638 layout->numPlanes = 3; in map() 696 layout->numPlanes = 3; in map() 772 layout->numPlanes = 1; in map()
|
H A D | C2Buffer.cpp | 883 for (size_t planeIx = 0; planeIx < mLayout.numPlanes; ++planeIx) { in Mapped()
|
/aosp12/frameworks/av/media/img_utils/src/ |
H A D | DngUtils.cpp | 388 status_t OpcodeListBuilder::addWarpRectilinear(uint32_t numPlanes, in addWarpRectilinear() argument 403 const uint32_t NUMBER_COEFFS = numPlanes * 6; in addWarpRectilinear() 409 err = mEndianOut.write(&numPlanes, 0, 1); in addWarpRectilinear()
|
/aosp12/frameworks/av/media/ndk/include/media/ |
H A D | NdkImage.h | 693 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
|
/aosp12/frameworks/av/media/img_utils/include/img_utils/ |
H A D | DngUtils.h | 141 virtual status_t addWarpRectilinear(uint32_t numPlanes,
|
/aosp12/frameworks/av/media/codec2/sfplugin/tests/ |
H A D | CCodecBuffers_test.cpp | 189 ASSERT_EQ(3u, layout.numPlanes); in TEST() 326 ASSERT_EQ(3u, layout.numPlanes); in TEST() 455 for (size_t i = 0; i < mLayout.numPlanes; ++i) { in map()
|
/aosp12/frameworks/av/media/codec2/sfplugin/utils/ |
H A D | Codec2BufferUtils.cpp | 72 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in _ImageCopy() 266 return (layout.numPlanes == 3 in IsYUV420()
|
/aosp12/frameworks/av/media/codec2/core/include/ |
H A D | C2Buffer.h | 1705 uint32_t numPlanes; // number of component planes member
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 1038 size_t numChannels, const uint8_t* planeColors, size_t numPlanes, in generateNoiseProfile() argument 1041 for (size_t p = 0; p < numPlanes; ++p) { in generateNoiseProfile()
|