Home
last modified time | relevance | path

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

/frameworks/av/media/ndk/
DNdkImage.cpp173 AImage::getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const { in getPlanePixelStride()
179 if (pixelStride == nullptr) { in getPlanePixelStride()
189 *pixelStride = (planeIdx == 0) ? 1 : mBuffer->chromaStep; in getPlanePixelStride()
192 *pixelStride = (planeIdx == 0) ? 1 : 2; in getPlanePixelStride()
195 *pixelStride = 1; in getPlanePixelStride()
198 *pixelStride = 1; in getPlanePixelStride()
204 *pixelStride = 2; in getPlanePixelStride()
208 *pixelStride = 4; in getPlanePixelStride()
212 *pixelStride = 3; in getPlanePixelStride()
598 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) { in AImage_getPlanePixelStride() argument
[all …]
DNdkImagePriv.h57 media_status_t getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const;
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java439 final int pixelStride = plane.getPixelStride(); in scanImage() local
441 final int rowPadding = rowStride - pixelStride * width; in scanImage()
444 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
470 offset += pixelStride; in scanImage()
/frameworks/ex/framesequence/jni/
DFrameSequenceJNI.cpp132 int pixelStride = info.stride >> 2; in nativeGetFrame() local
134 (Color8888*) pixels, pixelStride, previousFrameNr); in nativeGetFrame()
/frameworks/av/include/ndk/
DNdkImage.h557 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride);
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp677 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
681 pixelStride, rowStride); in Image_getLockedImageInfo()
693 int pixelStride = 0; in Image_createSurfacePlanes() local
727 &pData, &dataSize, &pixelStride, &rowStride); in Image_createSurfacePlanes()
737 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
Dandroid_media_ImageWriter.cpp716 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
720 pixelStride, rowStride); in Image_getLockedImageInfo()
730 int rowStride, pixelStride; in Image_createSurfacePlanes() local
764 &pData, &dataSize, &pixelStride, &rowStride); in Image_createSurfacePlanes()
774 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
Dandroid_media_Utils.h130 uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride);
Dandroid_media_Utils.cpp647 int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in getLockedImageInfo() argument
652 LOG_ALWAYS_FATAL_IF(pixelStride == NULL, "pixelStride is NULL!!!"); in getLockedImageInfo()
849 *pixelStride = pStride; in getLockedImageInfo()
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java473 int pixelStride, int rowStride, long offset) throws IOException { in writeByteBuffer() argument
484 int minRowStride = pixelStride * width; in writeByteBuffer()
490 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset, in writeByteBuffer()
/frameworks/base/media/java/android/media/
DImageWriter.java756 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
758 mPixelStride = pixelStride; in SurfacePlane()
DImageReader.java814 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
816 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()