Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/utils/
DRotationAnimationUtils.java62 int pixelStride = plane.getPixelStride(); in getMedianBorderLuma() local
69 borderLumas[l++] = getPixelLuminance(buffer, x, 0, pixelStride, rowStride); in getMedianBorderLuma()
70 borderLumas[l++] = getPixelLuminance(buffer, x, height - 1, pixelStride, rowStride); in getMedianBorderLuma()
75 borderLumas[l++] = getPixelLuminance(buffer, 0, y, pixelStride, rowStride); in getMedianBorderLuma()
76 borderLumas[l++] = getPixelLuminance(buffer, width - 1, y, pixelStride, rowStride); in getMedianBorderLuma()
89 int pixelStride, int rowStride) { in getPixelLuminance() argument
90 int offset = y * rowStride + x * pixelStride; in getPixelLuminance()
/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()
728 int pixelStride = 0; in Image_createSurfacePlanes() local
764 &pData, &dataSize, &pixelStride, &rowStride)) { in Image_createSurfacePlanes()
776 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.cpp935 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) { in Image_getLockedImageInfo() argument
939 pixelStride, rowStride); in Image_getLockedImageInfo()
951 int rowStride, pixelStride; in Image_createSurfacePlanes() local
985 &pData, &dataSize, &pixelStride, &rowStride)) { in Image_createSurfacePlanes()
997 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer); in Image_createSurfacePlanes()
Dandroid_media_MediaCodec.cpp1954 int maxColOffset = plane.pixelStride * (desc.width / colSampling - 1); in android_media_MediaCodec_mapHardwareBuffer()
1967 pixelStrides[i] = plane.pixelStride; in android_media_MediaCodec_mapHardwareBuffer()
/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.java965 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
967 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()