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

/frameworks/av/media/ndk/
H A DNdkImage.cpp238 AImage::getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const {
249 if (pixelStride == nullptr) {
259 *pixelStride = (planeIdx == 0) ? 1 : mLockedBuffer->chromaStep;
262 *pixelStride = (planeIdx == 0) ? 1 : 2;
265 *pixelStride = 1;
268 *pixelStride = 1;
274 *pixelStride = 2;
278 *pixelStride = 4;
282 *pixelStride = 3;
715 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) {
714 AImage_getPlanePixelStride( const AImage* image, int planeIdx, int32_t* pixelStride) argument
[all...]
H A DNdkImagePriv.h61 media_status_t getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const;
/frameworks/av/include/ndk/
H A DNdkImage.h644 * @param pixelStride the pixel stride of the image will be filled here if the method call succeeeds.
648 * <li>{@link AMEDIA_ERROR_INVALID_PARAMETER} if image or pixelStride is NULL, or planeIdx
658 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride);
/frameworks/ex/framesequence/jni/
H A DFrameSequenceJNI.cpp136 int pixelStride = info.stride >> 2; local
138 (Color8888*) pixels, pixelStride, previousFrameNr);
/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java439 final int pixelStride = plane.getPixelStride();
441 final int rowPadding = rowStride - pixelStride * width;
444 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride);
470 offset += pixelStride;
/frameworks/base/media/jni/
H A Dandroid_media_Utils.h130 uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride);
H A Dandroid_media_ImageReader.cpp694 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) {
698 pixelStride, rowStride);
710 int pixelStride = 0; local
747 &pData, &dataSize, &pixelStride, &rowStride);
757 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer);
693 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
H A Dandroid_media_ImageWriter.cpp715 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) {
719 pixelStride, rowStride);
729 int rowStride, pixelStride; local
754 // Buildup buffer info: rowStride, pixelStride and byteBuffers.
763 &pData, &dataSize, &pixelStride, &rowStride);
773 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer);
714 Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
H A Dandroid_media_Utils.cpp647 int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) {
652 LOG_ALWAYS_FATAL_IF(pixelStride == NULL, "pixelStride is NULL!!!");
849 *pixelStride = pStride;
646 getLockedImageInfo(LockedImage* buffer, int idx, int32_t containerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) argument
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java490 * Offset, rowStride, and pixelStride are given in bytes. Height and width are given in pixels.
493 int pixelStride, int rowStride, long offset) throws IOException {
504 int minRowStride = pixelStride * width;
510 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset,
492 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
/frameworks/base/media/java/android/media/
H A DImageWriter.java795 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { argument
797 mPixelStride = pixelStride;
H A DImageReader.java943 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) { argument
945 mPixelStride = pixelStride;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java811 int rowStride, pixelStride;
848 pixelStride = planes[i].getPixelStride();
849 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0);
851 Log.v(TAG, "pixelStride " + pixelStride);
863 if (pixelStride == bytesPerPixel) {
869 // Generic case: should work for any pixelStride but slower.
872 length = (w - 1) * pixelStride + bytesPerPixel;
875 data[offset++] = rowData[col * pixelStride];
[all...]

Completed in 233 milliseconds