Home
last modified time | relevance | path

Searched refs:pixelStride (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/media/ndk/
DNdkImage.cpp225 AImage::getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const { in getPlanePixelStride()
236 if (pixelStride == nullptr) { in getPlanePixelStride()
246 *pixelStride = (planeIdx == 0) ? 1 : mLockedBuffer->chromaStep; in getPlanePixelStride()
249 *pixelStride = (planeIdx == 0) ? 1 : 2; in getPlanePixelStride()
252 *pixelStride = 1; in getPlanePixelStride()
255 *pixelStride = 1; in getPlanePixelStride()
261 *pixelStride = 2; in getPlanePixelStride()
265 *pixelStride = 4; in getPlanePixelStride()
269 *pixelStride = 3; in getPlanePixelStride()
702 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) { in AImage_getPlanePixelStride() argument
[all …]
DNdkImagePriv.h61 media_status_t getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const;
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp210 outPlanes->planes[0].pixelStride = 1; in AHardwareBuffer_lockPlanes()
213 outPlanes->planes[1].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes()
216 outPlanes->planes[2].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes()
223 const uint32_t pixelStride = AHardwareBuffer_bytesPerPixel(format); in AHardwareBuffer_lockPlanes() local
225 outPlanes->planes[0].pixelStride = pixelStride; in AHardwareBuffer_lockPlanes()
226 outPlanes->planes[0].rowStride = gBuffer->getStride() * pixelStride; in AHardwareBuffer_lockPlanes()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java440 final int pixelStride = plane.getPixelStride(); in scanImage() local
442 final int rowPadding = rowStride - pixelStride * width; in scanImage()
445 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
471 offset += pixelStride; in scanImage()
/frameworks/ex/framesequence/jni/
DFrameSequenceJNI.cpp136 int pixelStride = info.stride >> 2; in nativeGetFrame() local
138 (Color8888*) pixels, pixelStride, previousFrameNr); in nativeGetFrame()
/frameworks/base/media/jni/
Dandroid_media_Utils.h39 uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride);
Dandroid_media_ImageReader.cpp710 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
714 pixelStride, rowStride); in Image_getLockedImageInfo()
726 int pixelStride = 0; in Image_createSurfacePlanes() local
763 &pData, &dataSize, &pixelStride, &rowStride); in Image_createSurfacePlanes()
773 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
Dandroid_media_Utils.cpp119 int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in getLockedImageInfo() argument
124 LOG_ALWAYS_FATAL_IF(pixelStride == NULL, "pixelStride is NULL!!!"); in getLockedImageInfo()
321 *pixelStride = pStride; in getLockedImageInfo()
Dandroid_media_ImageWriter.cpp897 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
901 pixelStride, rowStride); in Image_getLockedImageInfo()
911 int rowStride, pixelStride; in Image_createSurfacePlanes() local
945 &pData, &dataSize, &pixelStride, &rowStride); in Image_createSurfacePlanes()
955 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
/frameworks/av/media/ndk/include/media/
DNdkImage.h722 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) __INTRODUCED_IN(24);
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java494 int pixelStride, int rowStride, long offset) throws IOException { in writeByteBuffer() argument
505 int minRowStride = pixelStride * width; in writeByteBuffer()
511 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset, in writeByteBuffer()
/frameworks/native/libs/nativewindow/include/android/
Dhardware_buffer.h317 uint32_t pixelStride; ///< Distance in bytes from the color channel of one pixel to the next member
/frameworks/base/media/java/android/media/
DImageWriter.java829 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
831 mPixelStride = pixelStride; in SurfacePlane()
DImageReader.java951 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
953 mPixelStride = pixelStride; in SurfacePlane()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java848 int rowStride, pixelStride; in getDataFromImage() local
885 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
886 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage()
888 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage()
900 if (pixelStride == bytesPerPixel) { in getDataFromImage()
909 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
912 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()