Home
last modified time | relevance | path

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

/frameworks/av/media/ndk/
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()
135 AImage::getNumPlanes(int32_t* numPlanes) const { in getNumPlanes()
136 if (numPlanes == nullptr) { in getNumPlanes()
139 *numPlanes = -1; in getNumPlanes()
144 *numPlanes = mNumPlanes; in getNumPlanes()
761 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) { in AImage_getNumberOfPlanes() argument
763 if (image == nullptr || numPlanes == nullptr) { in AImage_getNumberOfPlanes()
765 __FUNCTION__, image, numPlanes); in AImage_getNumberOfPlanes()
768 return image->getNumPlanes(numPlanes); in AImage_getNumberOfPlanes()
DNdkImagePriv.h56 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes);
75 media_status_t getNumPlanes(/*out*/int32_t* numPlanes) const;
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp784 int numPlanes, jobject buffer, int fenceFd, int format, int cropLeft, int cropTop, in ImageReader_createImagePlanes() argument
787 ALOGV("%s: create ImagePlane array with size %d", __FUNCTION__, numPlanes); in ImageReader_createImagePlanes()
797 if (isFormatOpaque(halReaderFormat) && numPlanes > 0) { in ImageReader_createImagePlanes()
800 " must be 0", halReaderFormat, numPlanes); in ImageReader_createImagePlanes()
805 jobjectArray imagePlanes = env->NewObjectArray(numPlanes, gImagePlaneClassInfo.clazz, in ImageReader_createImagePlanes()
831 for (int i = 0; i < numPlanes; i++) { in ImageReader_createImagePlanes()
853 int numPlanes, int halReaderFormat, uint64_t ndkReaderUsage) in Image_createSurfacePlanes() argument
855 ALOGV("%s: create SurfacePlane array with size %d", __FUNCTION__, numPlanes); in Image_createSurfacePlanes()
862 if (isFormatOpaque(halReaderFormat) && numPlanes > 0) { in Image_createSurfacePlanes()
865 " must be 0", halReaderFormat, numPlanes); in Image_createSurfacePlanes()
[all …]
Dandroid_media_ImageWriter.cpp1059 int numPlanes, int writerFormat) { in Image_createSurfacePlanes() argument
1060 ALOGV("%s: create SurfacePlane array with size %d", __FUNCTION__, numPlanes); in Image_createSurfacePlanes()
1067 if (isFormatOpaque(halFormat) && numPlanes > 0) { in Image_createSurfacePlanes()
1070 " must be 0", writerFormat, numPlanes); in Image_createSurfacePlanes()
1075 jobjectArray surfacePlanes = env->NewObjectArray(numPlanes, gSurfacePlaneClassInfo.clazz, in Image_createSurfacePlanes()
1092 for (int i = 0; i < numPlanes; i++) { in Image_createSurfacePlanes()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp254 if (layout.numPlanes == 0) { in GraphicView2MediaImageConverter()
272 if (layout.numPlanes != 3) { in GraphicView2MediaImageConverter()
273 ALOGD("Converter: %d planes for YUV layout", layout.numPlanes); in GraphicView2MediaImageConverter()
504 if (layout.numPlanes != 3) { in GraphicView2MediaImageConverter()
505 ALOGD("Converter: %d planes for RGB layout", layout.numPlanes); in GraphicView2MediaImageConverter()
530 if (layout.numPlanes != 4) { in GraphicView2MediaImageConverter()
531 ALOGD("Converter: %d planes for RGBA layout", layout.numPlanes); in GraphicView2MediaImageConverter()
538 if (layout.numPlanes == 1) { in GraphicView2MediaImageConverter()
562 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in GraphicView2MediaImageConverter()
583 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in GraphicView2MediaImageConverter()
[all …]
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp403 layout->numPlanes = 0; in Gralloc4Mapper_lock()
409 uint32_t rootIx = layout->numPlanes; in Gralloc4Mapper_lock()
455 layout->numPlanes++; in Gralloc4Mapper_lock()
508 layout->numPlanes = 4; in PopulatePlaneLayout()
581 layout->numPlanes = 3; in PopulatePlaneLayout()
672 layout->numPlanes = 3; in PopulatePlaneLayout()
736 layout->numPlanes = 3; in PopulatePlaneLayout()
802 layout->numPlanes = 3; in PopulatePlaneLayout()
867 layout->numPlanes = 1; in PopulatePlaneLayout()
1119 layout->type, layout->numPlanes, layout->rootPlanes); in map()
[all …]
DC2Buffer.cpp1311 for (size_t planeIx = 0; planeIx < mLayout.numPlanes; ++planeIx) { in Mapped()
/frameworks/av/media/ndk/include/media/
DNdkImage.h693 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
/frameworks/av/media/img_utils/src/
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()
/frameworks/base/media/java/android/media/
DImageReader.java1423 private synchronized native SurfacePlane[] nativeCreatePlanes(int numPlanes, in nativeCreatePlanes() argument
1489 public static ImagePlane[] initializeImagePlanes(int numPlanes, in initializeImagePlanes() argument
1493 return nativeCreateImagePlanes(numPlanes, buffer, fenceFd, format, crop.left, crop.top, in initializeImagePlanes()
1497 private synchronized static native ImagePlane[] nativeCreateImagePlanes(int numPlanes, in nativeCreateImagePlanes() argument
DImageWriter.java1168 int numPlanes = ImageUtils.getNumPlanesForFormat(getFormat()); in getPlanes() local
1169 mPlanes = nativeCreatePlanes(numPlanes, getOwner().getFormat()); in getPlanes()
1279 private synchronized native SurfacePlane[] nativeCreatePlanes(int numPlanes, int writerFmt); in nativeCreatePlanes() argument
DMediaCodec.java5892 int numPlanes = info.getInt(); in MediaImage() local
5893 if (numPlanes != 3) { in MediaImage()
5894 throw new RuntimeException("unexpected number of planes: " + numPlanes); in MediaImage()
5924 mPlanes = new MediaPlane[numPlanes]; in MediaImage()
5925 for (int ix = 0; ix < numPlanes; ix++) { in MediaImage()
/frameworks/av/media/img_utils/include/img_utils/
DDngUtils.h141 virtual status_t addWarpRectilinear(uint32_t numPlanes,
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp74 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in _ImageCopy()
294 return (layout.numPlanes == 3 in IsYUV420()
318 return (layout.numPlanes == 3 in IsYUV420_10bit()
/frameworks/av/media/codec2/sfplugin/tests/
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()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h1700 uint32_t numPlanes; // number of component planes member
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1019 size_t numChannels, const uint8_t* planeColors, size_t numPlanes, in generateNoiseProfile() argument
1022 for (size_t p = 0; p < numPlanes; ++p) { in generateNoiseProfile()