Home
last modified time | relevance | path

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

12345

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilter.java70 byte[] pixels = buffer.array(); in onProcess()
74 drawBoxes(pixels, faces, dims); in onProcess()
82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) { in drawBoxes() argument
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes()
126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes()
128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes()
136 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) + in drawBoxes()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java187 public DngCreator setThumbnail(@NonNull Bitmap pixels) { in setThumbnail() argument
188 if (pixels == null) { in setThumbnail()
192 int width = pixels.getWidth(); in setThumbnail()
193 int height = pixels.getHeight(); in setThumbnail()
201 ByteBuffer rgbBuffer = convertToRGB(pixels); in setThumbnail()
223 public DngCreator setThumbnail(@NonNull Image pixels) { in setThumbnail() argument
224 if (pixels == null) { in setThumbnail()
228 int format = pixels.getFormat(); in setThumbnail()
233 int width = pixels.getWidth(); in setThumbnail()
234 int height = pixels.getHeight(); in setThumbnail()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java79 int[] pixels = new int[bitmap.getByteCount()]; in testFaceSquareFilter() local
80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), in testFaceSquareFilter()
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
126 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + in testFaceSquareFilter()
128 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + in testFaceSquareFilter()
130 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) + in testFaceSquareFilter()
138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter()
140 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter()
[all …]
/frameworks/base/native/webview/plat_support/
Dgraphics_utils.cpp62 PixelInfo* pixels = new PixelInfo(nativeCanvas); in GetPixels() local
63 if (!pixels->state) { in GetPixels()
64 delete pixels; in GetPixels()
65 pixels = NULL; in GetPixels()
67 return pixels; in GetPixels()
70 void ReleasePixels(AwPixelInfo* pixels) { in ReleasePixels() argument
71 delete static_cast<PixelInfo*>(pixels); in ReleasePixels()
/frameworks/base/libs/hwui/tests/common/scenes/
DHwBitmapInCompositeShader.cpp41 unsigned char* pixels = nullptr; in createContent() local
42 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels)); in createContent()
45 memset(pixels, 0, size); in createContent()
47 pixels[4000 + 4 * i + 0] = 255; in createContent()
48 pixels[4000 + 4 * i + 1] = 255; in createContent()
49 pixels[4000 + 4 * i + 2] = 0; in createContent()
50 pixels[4000 + 4 * i + 3] = 255; in createContent()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGLToolbox.java70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { in readFbo() argument
72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in readFbo()
76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { in readTarget() argument
78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in readTarget()
114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, in setTexturePixels() argument
119 if (pixels == null) { in setTexturePixels()
120 pixels = ByteBuffer.allocateDirect(width * height * 4); in setTexturePixels()
123 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in setTexturePixels()
DBackingStore.java605 ByteBuffer pixels = (ByteBuffer) backing.lock(ACCESS_BYTES); in syncTo() local
606 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]); in syncTo()
627 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); in syncToAllocationBacking() local
628 allocation.copyTo(pixels.array()); in syncToAllocationBacking()
629 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]); in syncToAllocationBacking()
846 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); in syncTo() local
847 GLToolbox.readTarget(target, pixels, mDimensions[0], mDimensions[1]); in syncTo()
848 mAllocation.copyFrom(pixels.array()); in syncTo()
DTextureSource.java69 public void allocateWithPixels(ByteBuffer pixels, int width, int height) { in allocateWithPixels() argument
71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height); in allocateWithPixels()
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp72 uint8_t* pixels; in expectBufferColor() local
74 reinterpret_cast<void**>(&pixels)); in expectBufferColor()
84 pixels + (mBuffer->getStride() * (region.top + j) + region.left) * 4; in expectBufferColor()
275 uint8_t* pixels; in fillColor() local
277 reinterpret_cast<void**>(&pixels)); in fillColor()
280 uint8_t* iter = pixels + (buf->getStride() * j) * 4; in fillColor()
627 uint8_t* pixels; in fillRedBufferTextureTransform() local
629 reinterpret_cast<void**>(&pixels)); in fillRedBufferTextureTransform()
631 pixels[0] = 255; in fillRedBufferTextureTransform()
632 pixels[1] = 0; in fillRedBufferTextureTransform()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperColors.java379 int[] pixels = new int[source.getWidth() * source.getHeight()]; in calculateDarkHints() local
381 final int maxDarkPixels = (int) (pixels.length * MAX_DARK_AREA); in calculateDarkHints()
383 source.getPixels(pixels, 0 /* offset */, source.getWidth(), 0 /* x */, 0 /* y */, in calculateDarkHints()
389 for (int i = 0; i < pixels.length; i++) { in calculateDarkHints()
390 ColorUtils.colorToHSL(pixels[i], tmpHsl); in calculateDarkHints()
392 final int alpha = Color.alpha(pixels[i]); in calculateDarkHints()
396 .calculateContrast(pixels[i], Color.BLACK) > DARK_PIXEL_CONTRAST; in calculateDarkHints()
400 pixels[i] = Color.RED; in calculateDarkHints()
407 double meanLuminance = totalLuminance / pixels.length; in calculateDarkHints()
417 source.setPixels(pixels, 0, source.getWidth(), 0, 0, source.getWidth(), in calculateDarkHints()
[all …]
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp115 void* pixels; in readBitmapPixels() local
116 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in readBitmapPixels()
124 read = readAllBytes(fd, (void*) pixels, byteCount); in readBitmapPixels()
154 void* pixels; in writeBitmapPixels() local
155 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in writeBitmapPixels()
163 written = writeAllBytes(fd, (void*) pixels, byteCount); in writeBitmapPixels()
/frameworks/base/media/mca/filterfw/jni/
Djni_gl_frame.cpp194 uint8_t* pixels = new uint8_t[frame->Size()]; in Java_android_filterfw_core_GLFrame_getNativeFloats() local
195 frame->CopyDataTo(pixels, frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeFloats()
198 ConvertRGBAToFloats(pixels, frame->Size(), float_array); in Java_android_filterfw_core_GLFrame_getNativeFloats()
201 delete[] pixels; in Java_android_filterfw_core_GLFrame_getNativeFloats()
214 uint8_t* pixels; in Java_android_filterfw_core_GLFrame_setNativeBitmap() local
215 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); in Java_android_filterfw_core_GLFrame_setNativeBitmap()
217 const bool success = frame->WriteData(pixels, size); in Java_android_filterfw_core_GLFrame_setNativeBitmap()
230 uint8_t* pixels; in Java_android_filterfw_core_GLFrame_getNativeBitmap() local
231 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); in Java_android_filterfw_core_GLFrame_getNativeBitmap()
233 frame->CopyDataTo(pixels, frame->Size()); in Java_android_filterfw_core_GLFrame_getNativeBitmap()
/frameworks/base/cmds/bootanimation/
DFORMAT.md27 * **WIDTH:** animation width (pixels)
28 * **HEIGHT:** animation height (pixels)
49 - `n` -- will position the text n pixels from the start; left edge for x-axis, bottom edge
51 - `-n` -- will position the text n pixels from the end; right edge for x-axis, top edge
54 * `-24` or `c -24` will position the text 24 pixels from the top of the screen,
56 * `16 c` will position the text 16 pixels from the left of the screen, centred
58 * `-32 32` will position the text such that the bottom right corner is 32 pixels above
59 and 32 pixels left of the edges of the screen
72 * For a NxM image each character glyph will be N/16 pixels wide and M/(12*2) pixels high
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dpixel_format_f32.rsh11 // whether or not a pixel is on the current target layer. For pixels that are
42 // For active pixels, dilated_depth is the same as actual depth;
43 // For inactive pixels with non-zero matte, dilated_depth is the depth of the
44 // closest active pixels;
45 // For other pixels, 0 (invalid depth).
Dlayered_filter_fast_d1new.rscript10 // for invalid pixels, e.g., padded pixels around image boundary.
107 // Marks active pixels that are on the target layer.
108 // Initializes the matte of active pixels to be the dilation_radius+1, which is
110 // Initializes dilated_depth of active pixels and pixels that are close to
111 // active pixels to be actual depths.
130 // between active and inactive pixels
153 // Marks pixels near the boundary of active pixels to compute matte later.
189 // between active and inactive pixels
213 // Marks pixels near the boundary of active pixels to compute matte later.
251 // pixels.
[all …]
Dlayered_filter_fast_f32.rscript10 // for invalid pixels, e.g., padded pixels around image boundary.
125 // Marks active pixels that are on the target layer.
126 // Initializes the matte of active pixels to be the dilation_radius+1, which is
128 // Initializes dilated_depth of active pixels and pixels that are close to
129 // active pixels to be actual depths.
147 // between active and inactive pixels
175 // Marks pixels near the boundary of active pixels to compute matte later.
215 // pixels.
218 // because these pixels will be over-written later and hence we don't need
239 // pixels.
[all …]
/frameworks/base/core/java/com/android/internal/graphics/palette/
DVariationalKMeansQuantizer.java76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) { in quantize() argument
80 final float[][] hslPixels = new float[pixels.length][3]; in quantize()
81 for (int i = 0; i < pixels.length; i++) { in quantize()
82 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_frame.h145 bool ReadTexturePixels(uint8_t* pixels) const;
148 bool ReadFboPixels(uint8_t* pixels) const;
151 bool UploadTexturePixels(const uint8_t* pixels);
Dgl_frame.cpp347 bool GLFrame::ReadFboPixels(uint8_t* pixels) const { in ReadFboPixels()
356 pixels); in ReadFboPixels()
362 bool GLFrame::ReadTexturePixels(uint8_t* pixels) const { in ReadTexturePixels()
388 return target.ReadFboPixels(pixels); in ReadTexturePixels()
448 bool GLFrame::UploadTexturePixels(const uint8_t* pixels) { in UploadTexturePixels() argument
454 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in UploadTexturePixels()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DIconLoader.java248 int[] pixels = new int[numOfPixels]; in parseToBnW() local
259 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); in parseToBnW()
265 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW()
305 int[] pixels = new int[numOfPixels]; in parseToRGB() local
322 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], in parseToRGB()
327 return Bitmap.createBitmap(pixels, width, height, in parseToRGB()
/frameworks/av/cmds/screenrecord/
DFontBitmap.h10 static const uint8_t pixels[]; variable
14 const uint8_t FontBitmap::pixels[] = {
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/
DThroughput.java30 public Throughput(int totalFrames, int periodFrames, int periodTime, int pixels) { in Throughput() argument
34 mPixels = pixels; in Throughput()
/frameworks/base/tools/aapt2/
DConfiguration.proto140 // Screen width in pixels. Prefer screen_width_dp.
143 // Screen height in pixels. Prefer screen_height_dp.
146 // Screen width in density independent pixels (dp).
149 // Screen height in density independent pixels (dp).
/frameworks/ex/framesequence/jni/
DFrameSequenceJNI.cpp124 void* pixels; in nativeGetFrame() local
131 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { in nativeGetFrame()
138 (Color8888*) pixels, pixelStride, previousFrameNr); in nativeGetFrame()
/frameworks/native/opengl/tools/glgen/specs/gles11/
Dchecks.spec99 glTexImage2D nullAllowed pixels
100 glTexImage3D nullAllowed pixels
102 glTexSubImage2D nullAllowed pixels

12345