HomeSort by relevance Sort by last modified time
    Searched refs:pixelStride (Results 1 - 23 of 23) sorted by null

  /cts/tests/tests/media/src/android/media/cts/
CodecUtils.java 166 int width, height, rowStride, pixelStride, x, y;
168 pixelStride = planes[i].getPixelStride();
181 if (pixelStride == 1) {
190 bb[y * width + x] = b[lineOffset + x * pixelStride];
196 if (pixelStride == 1) {
207 // we're only guaranteed to have pixelStride * (width - 1) + 1 bytes
208 buf.get(lb, 0, pixelStride * (width - 1) + 1);
210 bb[y * width + x] = lb[x * pixelStride];
YUVImage.java 109 YUVPlane(int w, int h, int rowStride, int pixelStride,
112 mPixelStride = pixelStride;
115 int length = (h - 1) * rowStride + (w - 1) * pixelStride + 1;
ImageReaderDecoderTest.java 608 Log.v(TAG, "first plane pixelstride " + imagePlanes[0].getPixelStride());
757 int rowStride, pixelStride;
778 pixelStride = planes[i].getPixelStride();
779 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0);
781 Log.v(TAG, "pixelStride " + pixelStride);
    [all...]
DecoderTest.java     [all...]
  /frameworks/av/media/ndk/
NdkImage.cpp 173 AImage::getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const {
179 if (pixelStride == nullptr) {
189 *pixelStride = (planeIdx == 0) ? 1 : mBuffer->chromaStep;
192 *pixelStride = (planeIdx == 0) ? 1 : 2;
195 *pixelStride = 1;
198 *pixelStride = 1;
204 *pixelStride = 2;
208 *pixelStride = 4;
212 *pixelStride = 3;
598 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) {
    [all...]
NdkImagePriv.h 57 media_status_t getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const;
  /packages/apps/Camera2/src/com/android/camera/util/
JpegUtilNative.java 228 int[] pixelStride = new int[NUM_PLANES];
237 pixelStride[i] = plane.getPixelStride();
265 planeBuf[0], pixelStride[0], rowStride[0],
266 planeBuf[1], pixelStride[1], rowStride[1],
267 planeBuf[2], pixelStride[2], rowStride[2],
  /frameworks/av/include/ndk/
NdkImage.h 545 * @param pixelStride the pixel stride of the image will be filled here if the method call succeeeds.
549 * <li>{@link AMEDIA_ERROR_INVALID_PARAMETER} if image or pixelStride is NULL, or planeIdx
557 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
ItsUtils.java 183 // JPEG doesn't have pixelstride and rowstride, treat it as 1D buffer.
217 int pixelStride = planes[i].getPixelStride();
221 format, i, width, height, rowStride, pixelStride));
226 if (pixelStride == bytesPerPixel) {
236 // Generic case: should work for any pixelStride but slower.
246 if (pixelStride >= 1) {
248 data[offset++] = rowData[col * pixelStride];
251 // PixelStride of 0 can mean pixel isn't a multiple of 8 bits, for
  /frameworks/ex/framesequence/jni/
FrameSequenceJNI.cpp 132 int pixelStride = info.stride >> 2;
134 (Color8888*) pixels, pixelStride, previousFrameNr);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
ProjectionOffscreenActivity.java 240 final int pixelStride = plane.getPixelStride();
242 final int rowPadding = rowStride - pixelStride * width;
245 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride);
268 offset += pixelStride;
  /cts/tests/tests/display/src/android/display/cts/
VirtualDisplayTest.java 385 final int pixelStride = plane.getPixelStride();
387 final int rowPadding = rowStride - pixelStride * width;
390 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride);
416 offset += pixelStride;
  /frameworks/base/core/tests/coretests/src/android/hardware/display/
VirtualDisplayTest.java 439 final int pixelStride = plane.getPixelStride();
441 final int rowPadding = rowStride - pixelStride * width;
444 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride);
470 offset += pixelStride;
  /frameworks/base/media/jni/
android_media_Utils.h 130 uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride);
android_media_ImageReader.cpp 677 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) {
681 pixelStride, rowStride);
693 int pixelStride = 0;
727 &pData, &dataSize, &pixelStride, &rowStride);
737 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer);
android_media_ImageWriter.cpp 716 int32_t writerFormat, uint8_t **base, uint32_t *size, int *pixelStride, int *rowStride) {
720 pixelStride, rowStride);
730 int rowStride, pixelStride;
755 // Buildup buffer info: rowStride, pixelStride and byteBuffers.
764 &pData, &dataSize, &pixelStride, &rowStride);
774 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer);
android_media_Utils.cpp 647 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;
  /frameworks/base/core/java/android/hardware/camera2/
DngCreator.java 470 * Offset, rowStride, and pixelStride are given in bytes. Height and width are given in pixels.
473 int pixelStride, int rowStride, long offset) throws IOException {
484 int minRowStride = pixelStride * width;
490 nativeWriteImage(dngOutput, width, height, pixels, rowStride, pixelStride, offset,
  /frameworks/base/media/java/android/media/
ImageReader.java 814 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) {
816 mPixelStride = pixelStride;
    [all...]
ImageWriter.java 756 private SurfacePlane(int rowStride, int pixelStride, ByteBuffer buffer) {
758 mPixelStride = pixelStride;
    [all...]
  /packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
TaskConvertImageToRGBPreview.java 171 * @param pixelStride Pixel Stride of the color plane in terms of bytes
180 int rowStride, int pixelStride, int inputHorizontalOffset, int inputVerticalOffset) {
182 + inputHorizontalOffset * (pixelStride / subsample)
184 + (inscribedXMin / colorSubsample) * pixelStride;
    [all...]
  /cts/tests/camera/src/android/hardware/camera2/cts/
CameraTestUtils.java     [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
CameraTestUtils.java     [all...]

Completed in 1100 milliseconds