Home
last modified time | relevance | path

Searched refs:plane (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/media/common/jni/
Dcodec-utils-jni.cpp55 struct plane { struct
63 } plane[3]; member
230 ScopedLocalRef<jobject> plane( in getNativeImage() local
232 img->plane[ix].colInc = env->CallIntMethod(plane.get(), gFields.methodPixelStride); in getNativeImage()
233 img->plane[ix].rowInc = env->CallIntMethod(plane.get(), gFields.methodRowStride); in getNativeImage()
235 env, env->CallObjectMethod(plane.get(), gFields.methodBuffer)); in getNativeImage()
237 img->plane[ix].buffer = (const uint8_t *)env->GetDirectBufferAddress(buffer.get()); in getNativeImage()
238 img->plane[ix].size = env->GetDirectBufferCapacity(buffer.get()); in getNativeImage()
240 img->plane[ix].cropOffs = in getNativeImage()
241 (img->crop.left >> xDecim) * img->plane[ix].colInc in getNativeImage()
[all …]
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DPixelChecker.java40 public static int getNumMatchingPixels(PixelColor expectedColor, Image.Plane plane, in getNumMatchingPixels() argument
43 ByteBuffer buffer = plane.getBuffer(); in getNumMatchingPixels()
44 int rowStride = plane.getRowStride(); in getNumMatchingPixels()
60 boolean isEmpty(Image.Plane plane, Rect boundsToCheck) { in isEmpty() argument
61 ByteBuffer buffer = plane.getBuffer(); in isEmpty()
62 int rowStride = plane.getRowStride(); in isEmpty()
94 public boolean validatePlane(Image.Plane plane, long frameNumber, in validatePlane() argument
101 if (isEmpty(plane, boundsToCheck)) { in validatePlane()
106 mMatchingPixelCount = getNumMatchingPixels(mPixelColor, plane, boundsToCheck); in validatePlane()
DMultiFramePixelChecker.java42 private boolean findStartingColor(Image.Plane plane, Rect boundsToCheck) { in findStartingColor() argument
45 int numMatchingPixels = getNumMatchingPixels(mPixelColors[mStartingColorIndex], plane, in findStartingColor()
55 public boolean validatePlane(Image.Plane plane, long frameNumber, Rect boundsToCheck, int width, in validatePlane() argument
58 mStartingColorFound = findStartingColor(plane, boundsToCheck); in validatePlane()
68 return isEmpty(plane, boundsToCheck); in validatePlane()
72 mMatchingPixelCount = getNumMatchingPixels(getColor(frameNumber), plane, boundsToCheck); in validatePlane()
DRectChecker.java51 public boolean validatePlane(Image.Plane plane, long framenumber, Rect boundsToCheck, in validatePlane() argument
54 if (validatePlaneForTarget(t, plane, boundsToCheck, width, height) == false) { in validatePlane()
61 public boolean validatePlaneForTarget(Target t, Image.Plane plane, Rect boundsToCheck, in validatePlaneForTarget() argument
63 int rowStride = plane.getRowStride(); in validatePlaneForTarget()
64 ByteBuffer buffer = plane.getBuffer(); in validatePlaneForTarget()
DSurfacePixelValidator2.java80 Image.Plane plane = image.getPlanes()[0];
81 if (plane.getPixelStride() != PIXEL_STRIDE) {
83 + plane.getPixelStride());
88 boolean success = mPixelChecker.validatePlane(plane, mFrameNumber++,
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareRendererTests.kt88 val plane = planes[0] in <lambda>() constant
89 assertEquals(4, plane.pixelStride) in <lambda>()
90 assertTrue((ActivityTestBase.TEST_WIDTH * 4) <= plane.rowStride) in <lambda>()
91 val buffer = plane.buffer in <lambda>()
105 val result = CaptureResult(pixels, 0, plane.rowStride / plane.pixelStride, in <lambda>()
176 val plane = planes[0] in testBasicDrawCpuConsumer() constant
177 assertEquals(4, plane.pixelStride) in testBasicDrawCpuConsumer()
178 assertTrue((TEST_WIDTH * 4) <= plane.rowStride) in testBasicDrawCpuConsumer()
180 val buffer = plane.buffer in testBasicDrawCpuConsumer()
458 val plane = planes[0] in testLotsOfBuffers() constant
[all …]
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java473 final Image.Plane plane = image.getPlanes()[0]; in onImageAvailable() local
475 assertThat(plane).isNotNull(); in onImageAvailable()
478 plane.getRowStride() - plane.getPixelStride() * image.getWidth(); in onImageAvailable()
480 /* width= */ image.getWidth() + rowPadding / plane.getPixelStride(), in onImageAvailable()
482 final ByteBuffer buffer = plane.getBuffer(); in onImageAvailable()
487 bitmap.copyPixelsFromBuffer(plane.getBuffer()); in onImageAvailable()
/cts/apps/CameraITS/tests/scene1_1/
Dtest_locked_burst.py100 plane = _COLORS[i]
104 plane, spread, str(means))
Dtest_burst_sameness_manual.py123 for plane, means in enumerate([r_means, g_means, b_means]):
125 logging.debug('%s spread: %.5f', _COLORS[plane], spread)
Dtest_dng_noise_model.py120 plane = image_processing_utils.get_image_patch(
122 patch_raw = plane * white_level
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java255 final Image.Plane plane = image.getPlanes()[0]; in scanImage() local
256 final ByteBuffer buffer = plane.getBuffer(); in scanImage()
259 final int pixelStride = plane.getPixelStride(); in scanImage()
260 final int rowStride = plane.getRowStride(); in scanImage()
/cts/tests/media/src/android/mediav2/cts/
DDecoderPushBlankBufferOnStopTest.java102 for (Image.Plane plane : image.mImage.getPlanes()) { in isBlankFrame()
103 ByteBuffer buffer = plane.getBuffer(); in isBlankFrame()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCtsUtilsTest.java160 private static void drawGradient(FakePlane plane, int w, int h) { in drawGradient() argument
162 final int rowStride = plane.rowStride; in drawGradient()
163 final ByteBuffer buffer = plane.buffer; in drawGradient()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecBlockModelTest.java367 for (Image.Plane plane : image.getPlanes()) { in runEncodeShortVideo()
368 ByteBuffer planeBuffer = plane.getBuffer(); in runEncodeShortVideo()
370 int rowOffset = row * plane.getRowStride(); in runEncodeShortVideo()
373 rowOffset + col * plane.getPixelStride(), in runEncodeShortVideo()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java326 Image.Plane plane = image.getPlanes()[0]; in testSDRFromSurfaceViewAndTextureView()
330 bitmap = Bitmap.createBitmap(plane.getRowStride() / 4, in testSDRFromSurfaceViewAndTextureView()
337 bitmap.copyPixelsToBuffer(plane.getBuffer()); in testSDRFromSurfaceViewAndTextureView()
379 Image.Plane plane = image.getPlanes()[0]; in testSDRFromSurfaceViewAndTextureView() local
380 Bitmap bitmap = Bitmap.createBitmap(plane.getRowStride() / 4, image.getHeight(), in testSDRFromSurfaceViewAndTextureView()
384 bitmap.copyPixelsToBuffer(plane.getBuffer()); in testSDRFromSurfaceViewAndTextureView()
460 Image.Plane plane = image.getPlanes()[0]; in testCropRect() local
461 Bitmap bitmap = Bitmap.createBitmap(plane.getRowStride() / 4, image.getHeight(), in testCropRect()
472 bitmap.copyPixelsToBuffer(plane.getBuffer()); in testCropRect()
DPixelCopyTest.java920 Image.Plane plane = image.getPlanes()[0]; in testBufferQueueCrop() local
921 Bitmap bitmap = Bitmap.createBitmap(plane.getRowStride() / 4, in testBufferQueueCrop()
936 bitmap.copyPixelsToBuffer(plane.getBuffer()); in testBufferQueueCrop()
960 Image.Plane plane = image.getPlanes()[0]; in testAutoSize() local
961 Bitmap bitmap = Bitmap.createBitmap(plane.getRowStride() / 4, in testAutoSize()
974 bitmap.copyPixelsToBuffer(plane.getBuffer()); in testAutoSize()
992 Image.Plane plane = image.getPlanes()[0]; in testAutoSizeWithCrop() local
993 Bitmap bitmap = Bitmap.createBitmap(plane.getRowStride() / 4, in testAutoSizeWithCrop()
1008 bitmap.copyPixelsToBuffer(plane.getBuffer()); in testAutoSizeWithCrop()
1027 Image.Plane plane = image.getPlanes()[0]; in testAutoSizeWithSrcRect() local
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DCompareStreams.java151 for (int plane = 0; plane < 3; plane++) { in fillByteArray()
153 if (plane != 0) { in fillByteArray()
DCodecEncoderTestBase.java424 for (int plane = 0; plane < 3; plane++) { in fillByteBuffer()
429 if (plane != 0) { in fillByteBuffer()
/cts/tests/tests/media/common/src/android/media/cts/
DCodecUtils.java93 PlaneWrapper(Image.Plane plane) { in PlaneWrapper() argument
94 mPlane = plane; in PlaneWrapper()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java694 final Image.Plane plane = image.getPlanes()[0]; in scanImage() local
695 final ByteBuffer buffer = plane.getBuffer(); in scanImage()
698 final int pixelStride = plane.getPixelStride(); in scanImage()
699 final int rowStride = plane.getRowStride(); in scanImage()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlTest.java2138 Image.Plane plane = planes[0]; in testDefaultDataSpaceForRGBBufferIssRGB() local
2139 ByteBuffer buffer = plane.getBuffer(); in testDefaultDataSpaceForRGBBufferIssRGB()
2141 int rowOffset = row * plane.getRowStride(); in testDefaultDataSpaceForRGBBufferIssRGB()
2143 buffer.put(rowOffset + col * plane.getPixelStride(), color[0]); in testDefaultDataSpaceForRGBBufferIssRGB()
2144 buffer.put(rowOffset + col * plane.getPixelStride() + 1, color[1]); in testDefaultDataSpaceForRGBBufferIssRGB()
2145 buffer.put(rowOffset + col * plane.getPixelStride() + 2, color[2]); in testDefaultDataSpaceForRGBBufferIssRGB()
2146 buffer.put(rowOffset + col * plane.getPixelStride() + 3, (byte) 255); in testDefaultDataSpaceForRGBBufferIssRGB()
2221 Image.Plane plane = planes[i]; in testDefaultDataSpaceForYUVBufferIssRGB() local
2222 ByteBuffer buffer = plane.getBuffer(); in testDefaultDataSpaceForYUVBufferIssRGB()
2226 int rowOffset = row * plane.getRowStride(); in testDefaultDataSpaceForYUVBufferIssRGB()
[all …]
/cts/tests/location/location_gnss/protos/
Dephemeris.proto70 // Longitude of ascending node of orbit plane at the beginning of week.
/cts/tests/media/jni/
DNativeCodecEncoderTest.cpp179 for (int plane = 0; plane < numOfPlanes; plane++) { in fillByteBuffer() local
180 if (plane == 0) { in fillByteBuffer()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTestBase.java838 for (int plane = 0; plane < 3; plane++) { in fillByteBuffer()
843 if (plane != 0) { in fillByteBuffer()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1168 private byte getPixelFromPlane(Plane plane, int x, int y) { in getPixelFromPlane() argument
1169 ByteBuffer buf = plane.getBuffer(); in getPixelFromPlane()
1170 return buf.get(y * plane.getRowStride() + x * plane.getPixelStride()); in getPixelFromPlane()