Home
last modified time | relevance | path

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

/frameworks/av/media/ndk/
DNdkImage.cpp228 AImage::getPlaneRowStride(int planeIdx, /*out*/int32_t* rowStride) const { in getPlaneRowStride()
234 if (rowStride == nullptr) { in getPlaneRowStride()
244 *rowStride = (planeIdx == 0) ? mBuffer->stride : mBuffer->chromaStride; in getPlaneRowStride()
247 *rowStride = mBuffer->width; in getPlaneRowStride()
254 *rowStride = (planeIdx == 0) ? mBuffer->stride : ALIGN(mBuffer->stride / 2, 16); in getPlaneRowStride()
259 *rowStride = mBuffer->stride; in getPlaneRowStride()
266 *rowStride = mBuffer->stride; in getPlaneRowStride()
277 *rowStride = mBuffer->stride * 2; in getPlaneRowStride()
280 *rowStride = mBuffer->stride * 2; in getPlaneRowStride()
284 *rowStride = mBuffer->stride * 4; in getPlaneRowStride()
[all …]
DNdkImagePriv.h58 media_status_t getPlaneRowStride(int planeIdx, /*out*/int32_t* rowStride) const;
/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/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.java473 int pixelStride, int rowStride, long offset) throws IOException { in writeByteBuffer() argument
479 long totalSize = ((long) rowStride) * height + offset; in writeByteBuffer()
485 if (minRowStride > rowStride) { in writeByteBuffer()
487 minRowStride + " is too large, expecting " + rowStride); in writeByteBuffer()
490 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset, in writeByteBuffer()
647 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/av/include/ndk/
DNdkImage.h582 const AImage* image, int planeIdx, /*out*/int32_t* rowStride);
/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()
692 int rowStride = 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
653 LOG_ALWAYS_FATAL_IF(rowStride == NULL, "rowStride is NULL!!!"); in getLockedImageInfo()
850 *rowStride = rStride; in getLockedImageInfo()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java440 final int rowStride = plane.getRowStride(); in scanImage() local
441 final int rowPadding = rowStride - pixelStride * width; in scanImage()
444 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp547 uint32_t pixStride, uint32_t rowStride, uint64_t offset, uint32_t bytesPerSample,
569 uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset, in InputStripSource() argument
571 mWidth(width), mHeight(height), mPixStride(pixStride), mRowStride(rowStride), in InputStripSource()
681 uint32_t height, uint32_t pixStride, uint32_t rowStride, uint64_t offset,
703 uint32_t width, uint32_t height, uint32_t pixStride, uint32_t rowStride, in DirectStripSource() argument
706 mRowStride(rowStride), mOffset(offset), mEnv(env), mBytesPerSample(bytesPerSample), in DirectStripSource()
2122 jint height, jobject inBuffer, jint rowStride, jint pixStride, jlong offset, in DngCreator_nativeWriteImage() argument
2127 height, rowStride, pixStride, offset); in DngCreator_nativeWriteImage()
2128 uint32_t rStride = static_cast<uint32_t>(rowStride); in DngCreator_nativeWriteImage()
2232 uint32_t rowStride = width * BYTES_PER_SAMPLE; in DngCreator_nativeWriteInputStream() local
[all …]
/frameworks/base/media/java/android/media/
DImageWriter.java756 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
757 mRowStride = rowStride; in SurfacePlane()
DImageReader.java814 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { in SurfacePlane() argument
815 mRowStride = rowStride; in SurfacePlane()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java811 int rowStride, pixelStride; in getDataFromImage() local
847 rowStride = planes[i].getRowStride(); in getDataFromImage()
852 Log.v(TAG, "rowStride " + rowStride); in getDataFromImage()
859 assertTrue("rowStride " + rowStride + " should be >= width " + w , rowStride >= w); in getDataFromImage()
880 buffer.position(buffer.position() + rowStride - length); in getDataFromImage()