Home
last modified time | relevance | path

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

/frameworks/av/media/ndk/
DNdkImage.cpp239 AImage::getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const { in getPlanePixelStride()
250 if (pixelStride == nullptr) { in getPlanePixelStride()
260 *pixelStride = (planeIdx == 0) ? 1 : mLockedBuffer->chromaStep; in getPlanePixelStride()
263 *pixelStride = (planeIdx == 0) ? 1 : 2; in getPlanePixelStride()
266 *pixelStride = 1; in getPlanePixelStride()
269 *pixelStride = 1; in getPlanePixelStride()
275 *pixelStride = 2; in getPlanePixelStride()
279 *pixelStride = 4; in getPlanePixelStride()
283 *pixelStride = 3; in getPlanePixelStride()
716 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/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java441 final int pixelStride = plane.getPixelStride(); in scanImage() local
443 final int rowPadding = rowStride - pixelStride * width; in scanImage()
446 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
472 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/av/media/ndk/include/media/
DNdkImage.h663 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride);
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp763 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
767 pixelStride, rowStride); in Image_getLockedImageInfo()
777 int rowStride, pixelStride; in Image_createSurfacePlanes() local
811 &pData, &dataSize, &pixelStride, &rowStride); in Image_createSurfacePlanes()
821 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
Dandroid_media_ImageReader.cpp716 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
720 pixelStride, rowStride); in Image_getLockedImageInfo()
732 int pixelStride = 0; in Image_createSurfacePlanes() local
769 &pData, &dataSize, &pixelStride, &rowStride); in Image_createSurfacePlanes()
779 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
Dandroid_media_Utils.h129 uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride);
Dandroid_media_Utils.cpp648 int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in getLockedImageInfo() argument
653 LOG_ALWAYS_FATAL_IF(pixelStride == NULL, "pixelStride is NULL!!!"); in getLockedImageInfo()
850 *pixelStride = pStride; in getLockedImageInfo()
/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/base/media/java/android/media/
DImageWriter.java823 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
825 mPixelStride = pixelStride; in SurfacePlane()
DImageReader.java949 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
951 mPixelStride = pixelStride; in SurfacePlane()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java811 int rowStride, pixelStride; in getDataFromImage() local
848 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
849 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage()
851 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage()
863 if (pixelStride == bytesPerPixel) { in getDataFromImage()
872 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
875 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()