Searched refs:img (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A 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) {
[all...]
/frameworks/support/frameworks/support/samples/SupportAnimationDemos/src/main/java/com/example/android/support/animation/
H A DSpringActivity.java47 final View img = findViewById(R.id.imageView);
49 final SpringAnimation anim = new SpringAnimation(img, DynamicAnimation.TRANSLATION_Y,
55 mSpringView.setMassHeight(img.getY());
59 ((View) img.getParent()).setOnTouchListener(new View.OnTouchListener() {
65 // check whether the touch happens inside of the img view.
66 boolean inside = motionEvent.getX() >= img.getX()
67 && motionEvent.getX() <= img.getX() + img.getWidth()
68 && motionEvent.getY() >= img.getY()
69 && motionEvent.getY() <= img
[all...]
/frameworks/support/samples/SupportAnimationDemos/src/main/java/com/example/android/support/animation/
H A DSpringActivity.java47 final View img = findViewById(R.id.imageView);
49 final SpringAnimation anim = new SpringAnimation(img, DynamicAnimation.TRANSLATION_Y,
55 mSpringView.setMassHeight(img.getY());
59 ((View) img.getParent()).setOnTouchListener(new View.OnTouchListener() {
65 // check whether the touch happens inside of the img view.
66 boolean inside = motionEvent.getX() >= img.getX()
67 && motionEvent.getX() <= img.getX() + img.getWidth()
68 && motionEvent.getY() >= img.getY()
69 && motionEvent.getY() <= img
[all...]
/frameworks/rs/
H A DrsGrallocConsumer.cpp104 ALOGE("%s: acquire image from reader %p failed! ret: %d, img %p",
109 AImage *img = mAcquiredBuffer[idx].mImg; local
111 ret = AImage_getFormat(img, &format);
114 __FUNCTION__, img, ret, format);
125 ret = AImage_getPlaneData(img, 0, &data, &dataLength);
128 __FUNCTION__, img, ret, data, dataLength);
133 ret = AImage_getTimestamp(img, &timestamp);
136 __FUNCTION__, img, ret);
141 ret = AImage_getPlaneRowStride(img, 0, &rowstride);
144 __FUNCTION__, img, re
[all...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureFBO_test.cpp47 uint8_t* img = NULL; local
48 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
49 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 0, 255,
72 (void**)(&img)));
73 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 255, 0,
H A DSurfaceTextureGL_test.cpp48 uint8_t* img = NULL; local
49 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
50 fillYV12Buffer(img, texWidth, texHeight, buf->getStride());
98 uint8_t* img = NULL; local
99 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
100 fillYV12Buffer(img, texWidth, texHeight, buf->getStride());
162 uint8_t* img = NULL; local
163 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
164 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop);
251 uint8_t* img local
[all...]
H A DFillBuffer.cpp100 uint8_t* img = NULL;
102 (void**)(&img)));
103 fillRGBA8Buffer(img, buf->getWidth(), buf->getHeight(), buf->getStride());
H A DCpuConsumer_test.cpp492 uint8_t* img = NULL; local
495 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
500 fillYV12Buffer(img, params.width, params.height, *stride);
503 fillBayerRawBuffer(img, params.width, params.height, buf->getStride());
506 fillGreyscaleBuffer<uint8_t>(img, params.width, params.height,
510 fillGreyscaleBuffer<uint16_t>((uint16_t*)img, params.width,
515 fillRgba8888Buffer(img, params.width, params.height, buf->getStride());
/frameworks/av/media/libstagefright/omx/
H A DOMXUtils.cpp362 const MediaImage2 &img = describeParams.sMediaImage; local
363 if (img.mType == MediaImage2::MEDIA_IMAGE_TYPE_YUV) {
364 if (img.mNumPlanes != 3
365 || img.mPlane[img.Y].mHorizSubsampling != 1
366 || img.mPlane[img.Y].mVertSubsampling != 1) {
371 if (img.mPlane[img.U].mHorizSubsampling == 2
372 && img
[all...]
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestPixelComparator.cpp25 uint8_t* img) const
27 uint32_t r = img[(y * stride + x) * 4 + 0];
28 uint32_t g = img[(y * stride + x) * 4 + 1];
29 uint32_t b = img[(y * stride + x) * 4 + 2];
30 uint32_t a = img[(y * stride + x) * 4 + 3];
H A DHwc2TestBuffer.cpp338 android_pixel_format_t format, uint32_t stride, uint8_t* img, uint8_t r,
343 img[(y * stride + x) * 4 + 0] = r;
344 img[(y * stride + x) * 4 + 1] = g;
345 img[(y * stride + x) * 4 + 2] = b;
346 img[(y * stride + x) * 4 + 3] = a;
414 uint8_t* img; local
416 (void**)(&img));
440 setColor(x, y, mFormat, stride, img, max, min, min, 255);
444 setColor(x, y, mFormat, stride, img, min, max, min, 255);
448 setColor(x, y, mFormat, stride, img, mi
337 setColor(int32_t x, int32_t y, android_pixel_format_t format, uint32_t stride, uint8_t* img, uint8_t r, uint8_t g, uint8_t b, uint8_t a) argument
477 uint8_t* img; local
731 uint8_t* img; local
[all...]
H A DHwc2TestPixelComparator.h48 uint32_t getPixel(int32_t x, int32_t y, uint32_t stride, uint8_t* img) const;
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DDrawView.java98 public Region getRegion(Bitmap img) { argument
105 ret = new Region(Arrays.copyOf(defaultPath, defaultPath.length), img);
107 ret = new Region(Arrays.copyOf(path, len), img);
H A DFindRegion.java47 public FindRegion(float[] xy, Bitmap img) { argument
50 int imgWidth = img.getWidth();
51 int imgHeight = img.getHeight();
65 img.getPixels(mPaste, 0, mRoiBounds.width(),
H A DRegion.java56 * @param img The original polygon
58 public Region(float[] xy, Bitmap img) { argument
60 mFindRegion = new FindRegion(mPointsXY, img);
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DFindRegion.java39 public FindRegion(float[] xy, Bitmap img) { argument
41 int imgWidth = img.getWidth();
42 int imgHeight = img.getHeight();
H A DDrawView.java96 public Region getRegion(Bitmap img) { argument
97 Region ret = new Region(Arrays.copyOf(path, len), img);
H A DRegion.java47 * @param img The original polygon
49 public Region(float[] xy, Bitmap img) { argument
51 mFindRegion = new FindRegion(mPointsXY, img);
/frameworks/native/cmds/surfacereplayer/replayer/
H A DBufferQueueScheduler.cpp93 auto img = reinterpret_cast<uint8_t*>(outBuffer.bits); local
96 uint8_t* pixel = img + (4 * (y * outBuffer.stride + x));
/frameworks/native/vulkan/libvulkan/
H A Dswapchain.cpp1230 Swapchain::Image& img = swapchain->images[i]; local
1234 &img.dequeue_fence);
1242 img.buffer = buffer;
1243 img.dequeued = true;
1246 VkExtent3D{static_cast<uint32_t>(img.buffer->width),
1247 static_cast<uint32_t>(img.buffer->height),
1249 image_native_buffer.handle = img.buffer->handle;
1250 image_native_buffer.stride = img.buffer->stride;
1251 image_native_buffer.format = img.buffer->format;
1252 image_native_buffer.usage = int(img
1272 Swapchain::Image& img = swapchain->images[i]; local
1513 Swapchain::Image& img = swapchain.images[image_idx]; local
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DSearchOrbView.java188 Drawable img = a.getDrawable(R.styleable.lbSearchOrbView_searchOrbIcon);
189 if (img == null) {
190 img = res.getDrawable(R.drawable.lb_ic_in_app_search);
192 setOrbIcon(img);
/frameworks/av/media/libstagefright/
H A DSurfaceUtils.cpp226 uint32_t *img = NULL; local
227 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
233 *img = 0;
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp257 uint8_t* img = NULL; local
259 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
262 uint8_t* yPlane = img;
263 uint8_t* uPlane = img + height * width;
285 uint8_t* img = NULL; local
287 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
301 uint8_t* yPlane = img;
302 uint8_t* crPlane = img + static_cast<uint32_t>(height) * stride;
330 int8_t* img = NULL; local
345 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
[all...]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DIconTest.java281 for (Icon img : imgs) {
282 img.writeToParcel(parcel, 0);
283 L("used %d bytes parceling: %s", parcel.dataPosition() - pos, img);
290 Icon img = Icon.CREATOR.createFromParcel(parcel);
291 L("test %d: read from parcel: %s", i, img);
295 final Drawable draw1 = img.loadDrawable(mContext);
297 fail("null drawable from img: " + img);
/frameworks/native/opengl/tests/gl_yuvtex/
H A Dgl_yuvtex.cpp131 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, local
134 if (img == EGL_NO_IMAGE_KHR) {
142 glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, (GLeglImageOES)img);

Completed in 231 milliseconds

12