Home
last modified time | relevance | path

Searched refs:numPlanes (Results 1 – 17 of 17) sorted by relevance

/aosp12/frameworks/av/media/ndk/
H A DNdkImage.cpp35 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 DNdkImagePriv.h56 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 Dandroid_media_ImageReader.cpp764 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 Dandroid_media_ImageWriter.cpp1005 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 DCodec2Buffer.cpp240 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 DImageReader.java1133 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 DImageWriter.java850 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 DMediaCodec.java5129 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 DC2AllocatorGralloc.cpp407 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 DC2Buffer.cpp883 for (size_t planeIx = 0; planeIx < mLayout.numPlanes; ++planeIx) { in Mapped()
/aosp12/frameworks/av/media/img_utils/src/
H A DDngUtils.cpp388 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 DNdkImage.h693 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
/aosp12/frameworks/av/media/img_utils/include/img_utils/
H A DDngUtils.h141 virtual status_t addWarpRectilinear(uint32_t numPlanes,
/aosp12/frameworks/av/media/codec2/sfplugin/tests/
H A DCCodecBuffers_test.cpp189 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 DCodec2BufferUtils.cpp72 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 DC2Buffer.h1705 uint32_t numPlanes; // number of component planes member
/aosp12/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_DngCreator.cpp1038 size_t numChannels, const uint8_t* planeColors, size_t numPlanes, in generateNoiseProfile() argument
1041 for (size_t p = 0; p < numPlanes; ++p) { in generateNoiseProfile()