/frameworks/av/media/codec2/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 348 MediaImage2 *img = (MediaImage2*)imgBuf->data(); in TEST_P() local 349 EXPECT_EQ(img->mType, img->MEDIA_IMAGE_TYPE_YUV); in TEST_P() 350 EXPECT_EQ(img->mNumPlanes, 3u); in TEST_P() 351 EXPECT_EQ(img->mWidth, 320u); in TEST_P() 352 EXPECT_EQ(img->mHeight, 240u); in TEST_P() 353 EXPECT_EQ(img->mBitDepth, 8u); in TEST_P() 354 EXPECT_EQ(img->mBitDepthAllocated, 8u); in TEST_P() 361 EXPECT_EQ(img->mPlane[img->Y].mHorizSubsampling, 1u); in TEST_P() 362 EXPECT_EQ(img->mPlane[img->Y].mVertSubsampling, 1u); in TEST_P() 363 EXPECT_EQ(img->mPlane[img->U].mHorizSubsampling, 2u); in TEST_P() [all …]
|
D | CCodecBuffers_test.cpp | 249 MediaImage2 *img = (MediaImage2 *)imageData->data(); in TEST() local 250 ASSERT_EQ(MediaImage2::MEDIA_IMAGE_TYPE_YUV, img->mType); in TEST() 251 ASSERT_EQ(3u, img->mNumPlanes); in TEST() 252 ASSERT_EQ(kWidth, img->mWidth); in TEST() 253 ASSERT_EQ(kHeight, img->mHeight); in TEST() 254 ASSERT_EQ(8u, img->mBitDepth); in TEST() 255 ASSERT_EQ(8u, img->mBitDepthAllocated); in TEST() 256 const MediaImage2::PlaneInfo &yPlane = img->mPlane[MediaImage2::Y]; in TEST() 257 const MediaImage2::PlaneInfo &uPlane = img->mPlane[MediaImage2::U]; in TEST() 258 const MediaImage2::PlaneInfo &vPlane = img->mPlane[MediaImage2::V]; in TEST() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | bugdroid.rscript | 29 static float pillDistance(float3 p1, float3 p2, float3 img) { 31 if (dot(p2 - p1, img - p1) > 0 && dot(p1 - p2, img - p2) > 0) { 32 return length(cross(img - p1, img - p2)) / length(p2 - p1); 34 return min(distance(p1, img), distance(p2, img)); 37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) { 38 return (short) (max * sigmoid(pillDistance(p1, p2, img) - rad)); 41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) { 42 float3 vec = (p1 + p2) / 2 - img; 45 * sigmoid(pillDistance(p1, p2, img) - rad * (1 + angle / 2))); 48 static float cylinderDistance(float3 p1, float3 p2, float3 img) { [all …]
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2BufferUtils.cpp | 67 static status_t _ImageCopy(View &view, const MediaImage2 *img, ImagePixel *imgBase) { in _ImageCopy() argument 70 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy() 74 imgBase + img->mPlane[i].mOffset; in _ImageCopy() 78 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy() 79 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy() 80 || plane.allocatedDepth != img->mBitDepthAllocated in _ImageCopy() 88 uint32_t planeW = img->mWidth / plane.colSampling; in _ImageCopy() 89 uint32_t planeH = img->mHeight / plane.rowSampling; in _ImageCopy() 91 bool canCopyByRow = (plane.colInc == 1) && (img->mPlane[i].mColInc == 1); in _ImageCopy() 92 bool canCopyByPlane = canCopyByRow && (plane.rowInc == img->mPlane[i].mRowInc); in _ImageCopy() [all …]
|
D | Codec2BufferUtils.h | 77 status_t ImageCopy(uint8_t *imgBase, const MediaImage2 *img, const C2GraphicView &view); 88 status_t ImageCopy(C2GraphicView &view, const uint8_t *imgBase, const MediaImage2 *img); 113 bool IsYUV420(const MediaImage2 *img); 118 bool IsNV12(const MediaImage2 *img); 123 bool IsNV21(const MediaImage2 *img); 128 bool IsI420(const MediaImage2 *img);
|
/frameworks/rs/ |
D | rsGrallocConsumer.cpp | 112 AImage *img = mAcquiredBuffer[idx].mImg; in lockNextBuffer() local 114 ret = AImage_getFormat(img, &format); in lockNextBuffer() 117 __FUNCTION__, img, ret, format); in lockNextBuffer() 128 ret = AImage_getPlaneData(img, 0, &data, &dataLength); in lockNextBuffer() 131 __FUNCTION__, img, ret, data, dataLength); in lockNextBuffer() 136 ret = AImage_getTimestamp(img, ×tamp); in lockNextBuffer() 139 __FUNCTION__, img, ret); in lockNextBuffer() 144 ret = AImage_getPlaneRowStride(img, 0, &rowstride); in lockNextBuffer() 147 __FUNCTION__, img, ret, rowstride); in lockNextBuffer() 152 ret = AImage_getHardwareBuffer(img, &hardwareBuffer); in lockNextBuffer() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolImpl.java | 69 final BufferedImage img = in acquire() local 71 if (img == null) { in acquire() 76 … if (img.getRaster().getDataBuffer().getDataType() == java.awt.image.DataBuffer.TYPE_INT) { in acquire() 77 Arrays.fill(((DataBufferInt)img.getRaster().getDataBuffer()).getData(), 0); in acquire() 81 new ImageImpl(w, h, img, metaData.mOrientation), in acquire() 83 img, in acquire() 97 @Nullable BufferedImage img, in prepareImage() argument 110 … if (!mImagePoolStats.fitsMaxCacheSize(img.getWidth(), img.getHeight(), in prepareImage() 118 existingBucket.offer(img); in prepareImage() 121 freedCallback.accept(img); in prepareImage()
|
D | ImagePoolHelper.java | 85 BufferedImage img = bucket.remove(); in getBufferedImage() local 86 while (img == null && !bucket.isEmpty()) { in getBufferedImage() 87 img = bucket.remove(); in getBufferedImage() 90 if (img == null && bucket.isEmpty()) { in getBufferedImage() 94 return img; in getBufferedImage()
|
D | Bucket.java | 50 public void offer(BufferedImage img) { in offer() argument 51 mBufferedImageRef.offer(new SoftReference<>(img)); in offer()
|
D | ImageImpl.java | 51 @NotNull BufferedImage img, in ImageImpl() argument 53 mImg = img; in ImageImpl()
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 372 const MediaImage2 &img = describeParams.sMediaImage; in IsFlexibleColorFormat() local 373 if (img.mType == MediaImage2::MEDIA_IMAGE_TYPE_YUV) { in IsFlexibleColorFormat() 374 if (img.mNumPlanes != 3 in IsFlexibleColorFormat() 375 || img.mPlane[img.Y].mHorizSubsampling != 1 in IsFlexibleColorFormat() 376 || img.mPlane[img.Y].mVertSubsampling != 1) { in IsFlexibleColorFormat() 381 if (img.mPlane[img.U].mHorizSubsampling == 2 in IsFlexibleColorFormat() 382 && img.mPlane[img.U].mVertSubsampling == 2 in IsFlexibleColorFormat() 383 && img.mPlane[img.V].mHorizSubsampling == 2 in IsFlexibleColorFormat() 384 && img.mPlane[img.V].mVertSubsampling == 2) { in IsFlexibleColorFormat() 386 if (img.mBitDepth <= 8) { in IsFlexibleColorFormat()
|
/frameworks/av/media/ndk/tests/ |
D | AImageReaderWindowHandleTest.cpp | 78 auto imageDeleter = [](AImage *img) { AImage_delete(img); }; in HandleImageAvailable() argument 79 std::unique_ptr<AImage, decltype(imageDeleter)> img(nullptr, imageDeleter); in HandleImageAvailable() local 84 img.reset(outImage); in HandleImageAvailable() 85 ASSERT_NE(img, nullptr); in HandleImageAvailable() 90 ret = AImage_getHardwareBuffer(img.get(), &hardwareBuffer); in HandleImageAvailable() 164 uint8_t* img = nullptr; in TEST_F() local 165 ASSERT_EQ(NO_ERROR, dequeuedBuffer->lock(kImageBufferUsage, (void**)(&img))); in TEST_F() 168 fillRGBA8Buffer(img, dequeuedBuffer->getWidth(), dequeuedBuffer->getHeight(), in TEST_F()
|
/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureFBO_test.cpp | 47 uint8_t* img = nullptr; in TEST_F() local 48 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in TEST_F() 49 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 0, 255, in TEST_F() 72 (void**)(&img))); in TEST_F() 73 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 255, 0, in TEST_F()
|
D | SurfaceTextureGL_test.cpp | 48 uint8_t* img = nullptr; in TEST_F() local 49 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in TEST_F() 50 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); in TEST_F() 98 uint8_t* img = nullptr; in TEST_F() local 99 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in TEST_F() 100 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); in TEST_F() 162 uint8_t* img = nullptr; in TEST_F() local 163 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in TEST_F() 164 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); in TEST_F() 251 uint8_t* img = nullptr; in TEST_F() local [all …]
|
D | FillBuffer.cpp | 100 uint8_t* img = nullptr; in produceOneRGBA8Frame() local 102 (void**)(&img))); in produceOneRGBA8Frame() 103 fillRGBA8Buffer(img, buf->getWidth(), buf->getHeight(), buf->getStride()); in produceOneRGBA8Frame()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraExtensionSessionImpl.java | 960 Image img = mCapturePendingMap.get(timestamp).first; in onCaptureCompleted() local 962 new Pair<>(img, in onCaptureCompleted() 1041 public void onImageAvailable(ImageReader reader, Image img) { in onImageAvailable() argument 1043 img.close(); in onImageAvailable() 1046 long timestamp = img.getTimestamp(); in onImageAvailable() 1047 reader.detachImage(img); in onImageAvailable() 1054 new Pair<>(img, in onImageAvailable() 1065 new Pair<>(img, in onImageAvailable() 1074 public void onImageAvailable(ImageReader reader, Image img) { in onImageAvailable() argument 1075 img.close(); in onImageAvailable() [all …]
|
D | CameraAdvancedExtensionSessionImpl.java | 791 Image img; in onImageAvailable() local 793 img = reader.acquireNextImage(); in onImageAvailable() 798 if (img == null) { in onImageAvailable() 804 reader.detachImage(img); in onImageAvailable() 807 img.close(); in onImageAvailable() 812 parcelImage.buffer = img.getHardwareBuffer(); in onImageAvailable() 813 if (img.getFenceFd() >= 0) { in onImageAvailable() 815 parcelImage.fence = ParcelFileDescriptor.fromFd(img.getFenceFd()); in onImageAvailable() 820 parcelImage.width = img.getWidth(); in onImageAvailable() 821 parcelImage.height = img.getHeight(); in onImageAvailable() [all …]
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 633 aom_image_t* img = aom_codec_get_frame(mCodecCtx, &iter); in outputBuffer() local 635 if (!img) return false; in outputBuffer() 637 if (img->d_w != mWidth || img->d_h != mHeight) { in outputBuffer() 638 mWidth = img->d_w; in outputBuffer() 639 mHeight = img->d_h; in outputBuffer() 656 CHECK(img->fmt == AOM_IMG_FMT_I420 || img->fmt == AOM_IMG_FMT_I42016); in outputBuffer() 660 if (img->fmt == AOM_IMG_FMT_I42016) { in outputBuffer() 691 (int)*(int64_t*)img->user_priv); in outputBuffer() 696 size_t srcYStride = img->stride[AOM_PLANE_Y]; in outputBuffer() 697 size_t srcUStride = img->stride[AOM_PLANE_U]; in outputBuffer() [all …]
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.cpp | 759 vpx_image_t *img = vpx_codec_get_frame(mCodecCtx, &iter); in outputBuffer() local 761 if (!img) return NOT_ENOUGH_DATA; in outputBuffer() 763 if (img->d_w != mWidth || img->d_h != mHeight) { in outputBuffer() 764 mWidth = img->d_w; in outputBuffer() 765 mHeight = img->d_h; in outputBuffer() 782 if(img->fmt != VPX_IMG_FMT_I420 && img->fmt != VPX_IMG_FMT_I42016) { in outputBuffer() 783 ALOGE("img->fmt %d not supported", img->fmt); in outputBuffer() 792 if (img->fmt == VPX_IMG_FMT_I42016) { in outputBuffer() 819 ((c2_cntr64_t *)img->user_priv)->peekll()); in outputBuffer() 825 size_t srcYStride = img->stride[VPX_PLANE_Y]; in outputBuffer() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | swapchain.cpp | 1327 Swapchain::Image& img = swapchain->images[i]; in CreateSwapchainKHR() local 1330 err = window->dequeueBuffer(window, &buffer, &img.dequeue_fence); in CreateSwapchainKHR() 1343 img.buffer = buffer; in CreateSwapchainKHR() 1344 img.dequeued = true; in CreateSwapchainKHR() 1347 VkExtent3D{static_cast<uint32_t>(img.buffer->width), in CreateSwapchainKHR() 1348 static_cast<uint32_t>(img.buffer->height), in CreateSwapchainKHR() 1350 image_native_buffer.handle = img.buffer->handle; in CreateSwapchainKHR() 1351 image_native_buffer.stride = img.buffer->stride; in CreateSwapchainKHR() 1352 image_native_buffer.format = img.buffer->format; in CreateSwapchainKHR() 1353 image_native_buffer.usage = int(img.buffer->usage); in CreateSwapchainKHR() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_HardwareRenderer.cpp | 479 static sk_sp<SkImage> imageForCache(SkImage* img) { in imageForCache() argument 480 const SkBitmap* bitmap = as_IB(img)->onPeekBitmap(); in imageForCache() 487 if (img->isTextureBacked()) { in imageForCache() 489 return img->makeNonTextureImage(); in imageForCache() 492 if (img->isLazyGenerated() && !img->peekPixels(&pm)) { in imageForCache() 496 if (!bm.tryAllocPixels(img->imageInfo())) { in imageForCache() 498 return sk_ref_sp(img); in imageForCache() 500 if (RenderProxy::copyImageInto(sk_ref_sp(img), &bm)) { in imageForCache() 502 return sk_ref_sp(img); in imageForCache() 507 return sk_ref_sp(img); in imageForCache() [all …]
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | FindRegion.java | 39 public FindRegion(float[] xy, Bitmap img) { in FindRegion() argument 41 int imgWidth = img.getWidth(); in FindRegion() 42 int imgHeight = img.getHeight(); in FindRegion()
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | DrawView.java | 98 public Region getRegion(Bitmap img) { in getRegion() argument 105 ret = new Region(Arrays.copyOf(defaultPath, defaultPath.length), img); in getRegion() 107 ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
|
D | FindRegion.java | 47 public FindRegion(float[] xy, Bitmap img) { in FindRegion() argument 50 int imgWidth = img.getWidth(); in FindRegion() 51 int imgHeight = img.getHeight(); in FindRegion() 65 img.getPixels(mPaste, 0, mRoiBounds.width(), in FindRegion()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 282 for (Icon img : imgs) { in testParcel() 283 img.writeToParcel(parcel, 0); in testParcel() 284 L("used %d bytes parceling: %s", parcel.dataPosition() - pos, img); in testParcel() 291 Icon img = Icon.CREATOR.createFromParcel(parcel); in testParcel() local 292 L("test %d: read from parcel: %s", i, img); in testParcel() 296 final Drawable draw1 = img.loadDrawable(mContext); in testParcel() 298 fail("null drawable from img: " + img); in testParcel()
|