/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 | 69 static status_t _ImageCopy(View &view, const MediaImage2 *img, ImagePixel *imgBase) { in _ImageCopy() argument 72 const size_t bpp = divUp(img->mBitDepthAllocated, 8u); in _ImageCopy() 76 imgBase + img->mPlane[i].mOffset; in _ImageCopy() 80 if (plane.colSampling != img->mPlane[i].mHorizSubsampling in _ImageCopy() 81 || plane.rowSampling != img->mPlane[i].mVertSubsampling in _ImageCopy() 82 || plane.allocatedDepth != img->mBitDepthAllocated in _ImageCopy() 90 uint32_t planeW = img->mWidth / plane.colSampling; in _ImageCopy() 91 uint32_t planeH = img->mHeight / plane.rowSampling; in _ImageCopy() 93 bool canCopyByRow = (plane.colInc == bpp) && (img->mPlane[i].mColInc == bpp); in _ImageCopy() 94 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); 123 bool IsYUV420(const MediaImage2 *img); 128 bool IsNV12(const MediaImage2 *img); 133 bool IsNV21(const MediaImage2 *img); 138 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/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/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() 163 uint8_t* img = nullptr; in TEST_F() local 164 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in TEST_F() 165 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); in TEST_F() 252 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/av/media/ndk/fuzzer/ |
D | ndk_image_reader_fuzzer.cpp | 40 AImage* img = nullptr; in process() local 60 [&]() { AImageReader_acquireNextImage(reader, &img); }, in process() 61 [&]() { AImageReader_acquireLatestImage(reader, &img); }, in process() 63 [&]() { AImageReader_acquireNextImageAsync(reader, &img, acquireFenceFd); }, in process() 64 [&]() { AImageReader_acquireLatestImageAsync(reader, &img, acquireFenceFd); }, in process()
|
/frameworks/av/media/ndk/tests/ |
D | AImageReaderWindowTest.cpp | 84 auto imageDeleter = [](AImage *img) { AImage_delete(img); }; in HandleImageAvailable() argument 85 std::unique_ptr<AImage, decltype(imageDeleter)> img(nullptr, imageDeleter); in HandleImageAvailable() local 90 img.reset(outImage); in HandleImageAvailable() 91 ASSERT_NE(img, nullptr); in HandleImageAvailable() 96 ret = AImage_getHardwareBuffer(img.get(), &hardwareBuffer); in HandleImageAvailable() 148 uint8_t* img = nullptr; in validateIGBP() local 149 ASSERT_EQ(NO_ERROR, dequeuedBuffer->lock(kImageBufferUsage, (void**)(&img))); in validateIGBP() 152 fillRGBA8Buffer(img, dequeuedBuffer->getWidth(), dequeuedBuffer->getHeight(), in validateIGBP()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 512 aom_image_t* img = aom_codec_get_frame(mCodecCtx, &iter); in outputBuffer() local 514 if (!img) return false; in outputBuffer() 516 if (img->d_w != mWidth || img->d_h != mHeight) { in outputBuffer() 517 mWidth = img->d_w; in outputBuffer() 518 mHeight = img->d_h; in outputBuffer() 535 CHECK(img->fmt == AOM_IMG_FMT_I420 || img->fmt == AOM_IMG_FMT_I42016); in outputBuffer() 540 if (img->fmt == AOM_IMG_FMT_I42016) { in outputBuffer() 571 (int)*(int64_t*)img->user_priv); in outputBuffer() 576 size_t srcYStride = img->stride[AOM_PLANE_Y]; in outputBuffer() 577 size_t srcUStride = img->stride[AOM_PLANE_U]; in outputBuffer() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraExtensionSessionImpl.java | 1247 Image img = mCapturePendingMap.get(timestamp).first; in onCaptureCompleted() local 1249 mCaptureStageMap.put(stageId, new Pair<>(img, result)); in onCaptureCompleted() 1336 public void onImageAvailable(ImageReader reader, Image img) { in onImageAvailable() argument 1338 img.close(); in onImageAvailable() 1341 long timestamp = img.getTimestamp(); in onImageAvailable() 1342 reader.detachImage(img); in onImageAvailable() 1350 new Pair<>(img, in onImageAvailable() 1361 new Pair<>(img, in onImageAvailable() 1373 public void onImageAvailable(ImageReader reader, Image img) { in onImageAvailable() argument 1374 img.close(); in onImageAvailable() [all …]
|
D | CameraAdvancedExtensionSessionImpl.java | 1098 Image img; in onImageAvailable() local 1100 img = reader.acquireNextImage(); in onImageAvailable() 1105 if (img == null) { in onImageAvailable() 1111 reader.detachImage(img); in onImageAvailable() 1114 img.close(); in onImageAvailable() 1119 parcelImage.buffer = img.getHardwareBuffer(); in onImageAvailable() 1121 SyncFence fd = img.getFence(); in onImageAvailable() 1128 parcelImage.width = img.getWidth(); in onImageAvailable() 1129 parcelImage.height = img.getHeight(); in onImageAvailable() 1130 parcelImage.format = img.getFormat(); in onImageAvailable() [all …]
|
/frameworks/av/media/codec2/components/dav1d/ |
D | C2SoftDav1dDec.cpp | 591 const Dav1dPicture &img) { in finishWork() argument 598 auto fillWork = [buffer, index, img, this](const std::unique_ptr<C2Work>& work) { in finishWork() 605 getHDRStaticParams(&img, work); in finishWork() 606 getHDR10PlusInfoData(&img, work); in finishWork() 949 Dav1dPicture img; in outputBuffer() local 950 memset(&img, 0, sizeof(img)); in outputBuffer() 953 res = dav1d_get_picture(mDav1dCtx, &img); in outputBuffer() 962 getVuiParams(&img); in outputBuffer() 965 int64_t out_frameIndex = img.m.timestamp; in outputBuffer() 967 const bool isMonochrome = img.p.layout == DAV1D_PIXEL_LAYOUT_I400; in outputBuffer() [all …]
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.cpp | 708 vpx_image_t *img = vpx_codec_get_frame(mCodecCtx, &iter); in outputBuffer() local 710 if (!img) return NOT_ENOUGH_DATA; in outputBuffer() 712 if (img->d_w != mWidth || img->d_h != mHeight) { in outputBuffer() 713 mWidth = img->d_w; in outputBuffer() 714 mHeight = img->d_h; in outputBuffer() 731 if(img->fmt != VPX_IMG_FMT_I420 && img->fmt != VPX_IMG_FMT_I42016) { in outputBuffer() 732 ALOGE("img->fmt %d not supported", img->fmt); in outputBuffer() 742 if (img->fmt == VPX_IMG_FMT_I42016 && in outputBuffer() 794 ((c2_cntr64_t *)img->user_priv)->peekll()); in outputBuffer() 800 size_t srcYStride = img->stride[VPX_PLANE_Y]; in outputBuffer() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | swapchain.cpp | 2024 Swapchain::Image& img = swapchain->images[i]; in CreateSwapchainKHR() local 2025 img.buffer = nullptr; in CreateSwapchainKHR() 2026 img.dequeued = false; in CreateSwapchainKHR() 2028 result = dispatch.CreateImage(device, &image_create, nullptr, &img.image); in CreateSwapchainKHR() 2039 Swapchain::Image& img = swapchain->images[i]; in CreateSwapchainKHR() local 2042 err = window->dequeueBuffer(window, &buffer, &img.dequeue_fence); in CreateSwapchainKHR() 2055 img.buffer = buffer; in CreateSwapchainKHR() 2056 img.dequeued = true; in CreateSwapchainKHR() 2058 image_native_buffer.handle = img.buffer->handle; in CreateSwapchainKHR() 2059 image_native_buffer.stride = img.buffer->stride; in CreateSwapchainKHR() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_HardwareRenderer.cpp | 481 static sk_sp<SkImage> imageForCache(SkImage* img) { in imageForCache() argument 482 const SkBitmap* bitmap = as_IB(img)->onPeekBitmap(); in imageForCache() 489 if (img->isTextureBacked()) { in imageForCache() 491 return img->makeNonTextureImage(); in imageForCache() 494 if (img->isLazyGenerated() && !img->peekPixels(&pm)) { in imageForCache() 498 if (!bm.tryAllocPixels(img->imageInfo())) { in imageForCache() 500 return sk_ref_sp(img); in imageForCache() 502 if (RenderProxy::copyImageInto(sk_ref_sp(img), &bm)) { in imageForCache() 504 return sk_ref_sp(img); in imageForCache() 513 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()
|
D | DrawView.java | 96 public Region getRegion(Bitmap img) { in getRegion() argument 97 Region ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
|
/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/av/media/libstagefright/ |
D | SurfaceUtils.cpp | 296 uint32_t *img = nullptr; in pushBlankBuffersToNativeWindow() local 297 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in pushBlankBuffersToNativeWindow() 302 if (img == nullptr) { in pushBlankBuffersToNativeWindow() 308 *img = 0; in pushBlankBuffersToNativeWindow()
|
/frameworks/base/data/fonts/ |
D | Android.bp | 86 // Because `system.img` is a dependency of `fontchain_lint`, it cannot be 88 // After system.img can be generated by Soong, then it can be converted to Android.bp.
|