Home
last modified time | relevance | path

Searched refs:rowStride (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/utils/
DRotationAnimationUtils.java63 int rowStride = plane.getRowStride(); 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DPixelUtils.java50 int rowStride) { in copyPixels() argument
64 nativeCopyPixels(input, output, width, height, offset, pixStride, rowStride); in copyPixels()
73 int rowStride); in nativeCopyPixels() argument
/frameworks/av/media/ndk/
DNdkImage.cpp285 AImage::getPlaneRowStride(int planeIdx, /*out*/int32_t* rowStride) const { in getPlaneRowStride()
296 if (rowStride == nullptr) { in getPlaneRowStride()
306 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride()
310 *rowStride = mLockedBuffer->width; in getPlaneRowStride()
317 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride()
323 *rowStride = mLockedBuffer->stride; in getPlaneRowStride()
331 *rowStride = mLockedBuffer->stride; in getPlaneRowStride()
343 *rowStride = mLockedBuffer->stride * 2; in getPlaneRowStride()
346 *rowStride = mLockedBuffer->stride * 2; in getPlaneRowStride()
350 *rowStride = mLockedBuffer->stride * 4; in getPlaneRowStride()
[all …]
DNdkImagePriv.h62 media_status_t getPlaneRowStride(int planeIdx, /*out*/int32_t* rowStride) const;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java140 int rowStride; in copyRotate() local
145 rowStride = mWidth; in copyRotate()
150 rowStride = 1; in copyRotate()
155 rowStride = -1; in copyRotate()
160 rowStride = -mWidth; in copyRotate()
165 PixelUtils.copyPixels(input, output, mWidth, mHeight, offset, pixStride, rowStride); in copyRotate()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dpixelutils.cpp25 jint pixStride, jint rowStride) { in JNI_PIXELUTILS_METHOD()
35 pOutRow += rowStride; in JNI_PIXELUTILS_METHOD()
Dpixelutils.h32 jint pixStride, jint rowStride);
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java494 int pixelStride, int rowStride, long offset) throws IOException { in writeByteBuffer() argument
500 long totalSize = ((long) rowStride) * height + offset; in writeByteBuffer()
506 if (minRowStride > rowStride) { in writeByteBuffer()
508 minRowStride + " is too large, expecting " + rowStride); in writeByteBuffer()
511 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset, in writeByteBuffer()
668 ByteBuffer rawBuffer, int rowStride, in nativeWriteImage() argument
/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegCompressor.cpp116 size_t rowStride = mAuxBuffer->stride;// * 3; in threadLoop() local
122 (mAuxBuffer->data + (i + mCInfo.next_scanline) * rowStride); in threadLoop()
/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()
727 int rowStride = 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
125 LOG_ALWAYS_FATAL_IF(rowStride == NULL, "rowStride is NULL!!!"); in getLockedImageInfo()
322 *rowStride = rStride; 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.cpp1953 int maxRowOffset = plane.rowStride * (desc.height / rowSampling - 1); in android_media_MediaCodec_mapHardwareBuffer()
1966 rowStrides[i] = plane.rowStride; in android_media_MediaCodec_mapHardwareBuffer()
/frameworks/av/media/ndk/include/media/
DNdkImage.h751 const AImage* image, int planeIdx, /*out*/int32_t* rowStride) __INTRODUCED_IN(24);
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java441 final int rowStride = plane.getRowStride(); in scanImage() local
442 final int rowPadding = rowStride - pixelStride * width; in scanImage()
445 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp211 outPlanes->planes[0].rowStride = yuvData.ystride; in AHardwareBuffer_lockPlanes()
214 outPlanes->planes[1].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes()
217 outPlanes->planes[2].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes()
226 outPlanes->planes[0].rowStride = gBuffer->getStride() * pixelStride; in AHardwareBuffer_lockPlanes()
/frameworks/native/libs/nativewindow/include/android/
Dhardware_buffer.h318 uint32_t rowStride; ///< Distance in bytes from the first value of one row of the image to member
/frameworks/base/media/java/android/media/
DImageWriter.java829 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
830 mRowStride = rowStride; in SurfacePlane()
DImageReader.java965 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
966 mRowStride = rowStride; in SurfacePlane()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp550 uint32_t pixStride, uint32_t rowStride, uint64_t offset, uint32_t bytesPerSample,
572 uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset, in InputStripSource() argument
574 mWidth(width), mHeight(height), mPixStride(pixStride), mRowStride(rowStride), in InputStripSource()
684 uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset,
706 uint32_t width, uint32_t height, uint32_t pixStride, uint32_t rowStride, in DirectStripSource() argument
709 mRowStride(rowStride), mOffset(offset), mEnv(env), mBytesPerSample(bytesPerSample), in DirectStripSource()
2411 jint height, jobject inBuffer, jint rowStride, jint pixStride, jlong offset, in DngCreator_nativeWriteImage() argument
2416 height, rowStride, pixStride, offset); in DngCreator_nativeWriteImage()
2417 uint32_t rStride = static_cast<uint32_t>(rowStride); in DngCreator_nativeWriteImage()
2521 uint32_t rowStride = width * BYTES_PER_SAMPLE; in DngCreator_nativeWriteInputStream() local
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java848 int rowStride, pixelStride; in getDataFromImage() local
884 rowStride = planes[i].getRowStride(); in getDataFromImage()
889 Log.v(TAG, "rowStride " + rowStride); in getDataFromImage()
896 assertTrue("rowStride " + rowStride + " should be >= width " + w , rowStride >= w); in getDataFromImage()
917 buffer.position(buffer.position() + rowStride - length); in getDataFromImage()