Home
last modified time | relevance | path

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

12

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rs29 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/rs/
DrsGrallocConsumer.cpp109 AImage *img = mAcquiredBuffer[idx].mImg; in lockNextBuffer() local
111 ret = AImage_getFormat(img, &format); in lockNextBuffer()
114 __FUNCTION__, img, ret, format); in lockNextBuffer()
125 ret = AImage_getPlaneData(img, 0, &data, &dataLength); in lockNextBuffer()
128 __FUNCTION__, img, ret, data, dataLength); in lockNextBuffer()
133 ret = AImage_getTimestamp(img, &timestamp); in lockNextBuffer()
136 __FUNCTION__, img, ret); in lockNextBuffer()
141 ret = AImage_getPlaneRowStride(img, 0, &rowstride); in lockNextBuffer()
144 __FUNCTION__, img, ret, rowstride); in lockNextBuffer()
149 ret = AImage_getHardwareBuffer(img, &hardwareBuffer); in lockNextBuffer()
[all …]
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/
DSpringActivity.java46 final View img = findViewById(R.id.imageView); in onCreate() local
48 final SpringAnimation anim = new SpringAnimation(img, DynamicAnimation.TRANSLATION_Y, in onCreate()
54 mSpringView.setMassHeight(img.getY()); in onCreate()
58 ((View) img.getParent()).setOnTouchListener(new View.OnTouchListener() { in onCreate()
65 boolean inside = motionEvent.getX() >= img.getX() in onCreate()
66 && motionEvent.getX() <= img.getX() + img.getWidth() in onCreate()
67 && motionEvent.getY() >= img.getY() in onCreate()
68 && motionEvent.getY() <= img.getY() + img.getHeight(); in onCreate()
76 touchOffset = img.getTranslationY() - motionEvent.getY(); in onCreate()
84 img.setTranslationY(motionEvent.getY() + touchOffset); in onCreate()
[all …]
/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp356 const MediaImage2 &img = describeParams.sMediaImage; in IsFlexibleColorFormat() local
357 if (img.mType == MediaImage2::MEDIA_IMAGE_TYPE_YUV) { in IsFlexibleColorFormat()
358 if (img.mNumPlanes != 3 in IsFlexibleColorFormat()
359 || img.mPlane[img.Y].mHorizSubsampling != 1 in IsFlexibleColorFormat()
360 || img.mPlane[img.Y].mVertSubsampling != 1) { in IsFlexibleColorFormat()
365 if (img.mPlane[img.U].mHorizSubsampling == 2 in IsFlexibleColorFormat()
366 && img.mPlane[img.U].mVertSubsampling == 2 in IsFlexibleColorFormat()
367 && img.mPlane[img.V].mHorizSubsampling == 2 in IsFlexibleColorFormat()
368 && img.mPlane[img.V].mVertSubsampling == 2) { in IsFlexibleColorFormat()
370 if (img.mBitDepth <= 8) { in IsFlexibleColorFormat()
/frameworks/native/libs/gui/tests/
DSurfaceTextureFBO_test.cpp47 uint8_t* img = NULL; 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()
DSurfaceTextureGL_test.cpp48 uint8_t* img = NULL; 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 = NULL; 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 = NULL; 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 = NULL; in TEST_F() local
[all …]
DFillBuffer.cpp100 uint8_t* img = NULL; in produceOneRGBA8Frame() local
102 (void**)(&img))); in produceOneRGBA8Frame()
103 fillRGBA8Buffer(img, buf->getWidth(), buf->getHeight(), buf->getStride()); in produceOneRGBA8Frame()
DCpuConsumer_test.cpp496 uint8_t* img = NULL; in produceOneFrame() local
499 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in produceOneFrame()
504 fillYV12Buffer(img, params.width, params.height, *stride); in produceOneFrame()
507 fillBayerRawBuffer(img, params.width, params.height, buf->getStride()); in produceOneFrame()
510 fillGreyscaleBuffer<uint8_t>(img, params.width, params.height, in produceOneFrame()
514 fillGreyscaleBuffer<uint16_t>((uint16_t*)img, params.width, in produceOneFrame()
519 fillRgba8888Buffer(img, params.width, params.height, buf->getStride()); in produceOneFrame()
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp1072 Swapchain::Image& img = swapchain->images[i]; in CreateSwapchainKHR() local
1076 &img.dequeue_fence); in CreateSwapchainKHR()
1084 img.buffer = buffer; in CreateSwapchainKHR()
1085 img.dequeued = true; in CreateSwapchainKHR()
1088 VkExtent3D{static_cast<uint32_t>(img.buffer->width), in CreateSwapchainKHR()
1089 static_cast<uint32_t>(img.buffer->height), in CreateSwapchainKHR()
1091 image_native_buffer.handle = img.buffer->handle; in CreateSwapchainKHR()
1092 image_native_buffer.stride = img.buffer->stride; in CreateSwapchainKHR()
1093 image_native_buffer.format = img.buffer->format; in CreateSwapchainKHR()
1094 image_native_buffer.usage = img.buffer->usage; in CreateSwapchainKHR()
[all …]
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp335 android_pixel_format_t format, uint32_t stride, uint8_t* img, uint8_t r, in setColor() argument
340 img[(y * stride + x) * 4 + 0] = r; in setColor()
341 img[(y * stride + x) * 4 + 1] = g; in setColor()
342 img[(y * stride + x) * 4 + 2] = b; in setColor()
343 img[(y * stride + x) * 4 + 3] = a; in setColor()
410 uint8_t* img; in generateBuffer() local
411 mGraphicBuffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in generateBuffer()
435 setColor(x, y, mFormat, stride, img, max, min, min, 255); in generateBuffer()
439 setColor(x, y, mFormat, stride, img, min, max, min, 255); in generateBuffer()
443 setColor(x, y, mFormat, stride, img, min, min, max, 255); in generateBuffer()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp232 uint8_t* img = NULL; in produceFrame() local
234 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in produceFrame()
237 uint8_t* yPlane = img; in produceFrame()
238 uint8_t* uPlane = img + height * width; in produceFrame()
260 uint8_t* img = NULL; in produceFrame() local
262 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in produceFrame()
276 uint8_t* yPlane = img; in produceFrame()
277 uint8_t* crPlane = img + static_cast<uint32_t>(height) * stride; in produceFrame()
305 int8_t* img = NULL; in produceFrame() local
320 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in produceFrame()
[all …]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DFindRegion.java39 public FindRegion(float[] xy, Bitmap img) { in FindRegion() argument
41 int imgWidth = img.getWidth(); in FindRegion()
42 int imgHeight = img.getHeight(); in FindRegion()
DDrawView.java96 public Region getRegion(Bitmap img) { in getRegion() argument
97 Region ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
DRegion.java49 public Region(float[] xy, Bitmap img) { in Region() argument
51 mFindRegion = new FindRegion(mPointsXY, img); in Region()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DDrawView.java98 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()
DFindRegion.java47 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()
DRegion.java58 public Region(float[] xy, Bitmap img) { in Region() argument
60 mFindRegion = new FindRegion(mPointsXY, img); in Region()
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp192 uint32_t *img = NULL; in pushBlankBuffersToNativeWindow() local
193 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); in pushBlankBuffersToNativeWindow()
199 *img = 0; in pushBlankBuffersToNativeWindow()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java266 for (Icon img : imgs) { in testParcel()
267 img.writeToParcel(parcel, 0); in testParcel()
268 L("used %d bytes parceling: %s", parcel.dataPosition() - pos, img); in testParcel()
275 Icon img = Icon.CREATOR.createFromParcel(parcel); in testParcel() local
276 L("test %d: read from parcel: %s", i, img); in testParcel()
280 final Drawable draw1 = img.loadDrawable(mContext); in testParcel()
282 fail("null drawable from img: " + img); in testParcel()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchOrbView.java187 Drawable img = a.getDrawable(R.styleable.lbSearchOrbView_searchOrbIcon); in SearchOrbView() local
188 if (img == null) { in SearchOrbView()
189 img = res.getDrawable(R.drawable.lb_ic_in_app_search); in SearchOrbView()
191 setOrbIcon(img); in SearchOrbView()
/frameworks/native/cmds/surfacereplayer/replayer/
DBufferQueueScheduler.cpp93 auto img = reinterpret_cast<uint8_t*>(outBuffer.bits); in fillSurface() local
96 uint8_t* pixel = img + (4 * (y * outBuffer.stride + x)); in fillSurface()
/frameworks/native/opengl/tests/gl_yuvtex/
Dgl_yuvtex.cpp131 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setupYuvTexSurface() local
134 if (img == EGL_NO_IMAGE_KHR) { in setupYuvTexSurface()
142 glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, (GLeglImageOES)img); in setupYuvTexSurface()
/frameworks/native/opengl/tests/gl2_yuvtex/
Dgl2_yuvtex.cpp236 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setupYuvTexSurface() local
239 if (img == EGL_NO_IMAGE_KHR) { in setupYuvTexSurface()
247 glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, (GLeglImageOES)img); in setupYuvTexSurface()
/frameworks/base/data/fonts/
DAndroid.mk96 fontchain_lint: $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml $(PRODUCT_OUT)/system.img
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp41 uint8_t* img = reinterpret_cast<uint8_t*>(outBuffer.bits); in fillSurfaceRGBA8() local
44 uint8_t* pixel = img + (4 * (y*outBuffer.stride + x)); in fillSurfaceRGBA8()
77 const uint8_t* img = static_cast<const uint8_t*>(mBuf.data); in checkPixel() local
78 const uint8_t* pixel = img + (4 * (y * mBuf.stride + x)); in checkPixel()

12