Searched refs:pixels (Results 1 - 25 of 78) sorted by relevance

1234

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/
H A DThroughput.java30 public Throughput(int totalFrames, int periodFrames, int periodTime, int pixels) { argument
34 mPixels = pixels;
/frameworks/webview/chromium/plat_support/
H A Dgraphics_utils.cpp76 PixelInfo* pixels = new PixelInfo(canvas); local
77 if (!pixels->state) {
78 delete pixels;
79 pixels = NULL;
81 return pixels;
84 void ReleasePixels(AwPixelInfo* pixels) { argument
85 delete static_cast<PixelInfo*>(pixels);
H A Ddraw_sw.h45 typedef void (AwReleasePixelsFunction)(AwPixelInfo* pixels);
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java158 * @param pixels a {@link android.graphics.Bitmap} of pixel data.
164 public DngCreator setThumbnail(@NonNull Bitmap pixels) { argument
165 if (pixels == null) {
169 int width = pixels.getWidth();
170 int height = pixels.getHeight();
178 ByteBuffer rgbBuffer = convertToRGB(pixels);
193 * @param pixels an {@link android.media.Image} object with the format
200 public DngCreator setThumbnail(@NonNull Image pixels) { argument
201 if (pixels == null) {
205 int format = pixels
312 writeInputStream(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull InputStream pixels, @IntRange(from=0) long offset) argument
366 writeByteBuffer(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull ByteBuffer pixels, @IntRange(from=0) long offset) argument
403 writeImage(@onNull OutputStream dngOutput, @NonNull Image pixels) argument
472 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java70 byte[] pixels = buffer.array();
74 drawBoxes(pixels, faces, dims);
82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) { argument
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) +
126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) +
128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) +
136 pixels[ImageConstant
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java79 int[] pixels = new int[bitmap.getByteCount()];
80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(),
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
126 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) +
128 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) +
130 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) +
138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) +
140 pixels[ImageConstant
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGLToolbox.java70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { argument
72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { argument
78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, argument
118 // For some devices, "pixels" being null causes system error.
119 if (pixels == null) {
120 pixels = ByteBuffer.allocateDirect(width * height * 4);
123 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
H A DTextureSource.java69 public void allocateWithPixels(ByteBuffer pixels, int width, int height) { argument
70 //Log.i("TextureSource", "Uploading pixels to texture " + mTexId + ": " + width + "x" + height + ".");
71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height);
76 //Log.i("TextureSource", "Uploading pixels to texture " + mTexId + "!");
H A DBackingStore.java605 ByteBuffer pixels = (ByteBuffer) backing.lock(ACCESS_BYTES);
606 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]);
627 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize());
628 allocation.copyTo(pixels.array());
629 mTexture.allocateWithPixels(pixels, mDimensions[0], mDimensions[1]);
846 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize());
847 GLToolbox.readTarget(target, pixels, mDimensions[0], mDimensions[1]);
848 mAllocation.copyFrom(pixels.array());
H A DRenderTarget.java265 public void readPixelData(ByteBuffer pixels, int width, int height) { argument
266 GLToolbox.readTarget(this, pixels, width, height);
270 ByteBuffer pixels = ByteBuffer.allocateDirect(width * height * 4);
271 GLToolbox.readTarget(this, pixels, width, height);
272 return pixels;
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp114 // Lock the pixels.
115 void* pixels; local
116 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels);
118 throwIllegalStateException(env, (char*) "Cannot lock bitmap pixels");
122 // Read the pixels.
124 read = readAllBytes(fd, (void*) pixels, byteCount);
126 throwIllegalStateException(env, (char*) "Cannot read bitmap pixels");
130 // Unlock the pixels.
133 throwIllegalStateException(env, (char*) "Cannot unlock bitmap pixels");
153 // Lock the pixels
154 void* pixels; local
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_frame.h66 // Copies the pixels from another GL frame to this frame.
141 // Copies pixels from texture or FBO to the specified buffer.
144 // Reads the pixels from the internal texture to the given buffer.
145 bool ReadTexturePixels(uint8_t* pixels) const;
147 // Reads the pixels from the internal FBO to the given buffer.
148 bool ReadFboPixels(uint8_t* pixels) const;
150 // Writes the specified pixels to the internal texture.
151 bool UploadTexturePixels(const uint8_t* pixels);
H A Dgl_frame.cpp347 bool GLFrame::ReadFboPixels(uint8_t* pixels) const {
356 pixels);
362 bool GLFrame::ReadTexturePixels(uint8_t* pixels) const {
363 // Read pixels from texture if we do not have an FBO
388 return target.ReadFboPixels(pixels);
448 bool GLFrame::UploadTexturePixels(const uint8_t* pixels) { argument
454 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java89 int[] pixels = new int[100];
90 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10);
93 assertEquals("getPixels", p, pixels[i]);
114 int[] pixels = new int[100];
115 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10);
118 assertEquals("getPixels", p, pixels[i]);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DIconLoader.java245 int[] pixels = new int[numOfPixels];
256 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01);
262 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
302 int[] pixels = new int[numOfPixels];
319 pixels[pixelIndex++] = Color.rgb(clut[clutIndex],
324 return Bitmap.createBitmap(pixels, width, height,
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_frame.cpp201 // Read the frame pixels
202 uint8_t* pixels = new uint8_t[frame->Size()]; local
203 frame->CopyDataTo(pixels, frame->Size());
206 ConvertRGBAToFloats(pixels, frame->Size(), float_array);
209 delete[] pixels;
222 uint8_t* pixels; local
223 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels));
225 const bool success = frame->WriteData(pixels, size);
238 uint8_t* pixels; local
239 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels));
[all...]
/frameworks/ex/framesequence/jni/
H A DFrameSequenceJNI.cpp118 void* pixels; local
126 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) {
128 "Bitmap pixels couldn't be locked");
134 (Color8888*) pixels, pixelStride, previousFrameNr);
/frameworks/base/libs/hwui/
H A DGradientCache.cpp225 uint8_t pixels[rowBytes * height]; local
249 uint8_t* dst = pixels;
266 memcpy(pixels + rowBytes, pixels, rowBytes);
270 texture->upload(GL_RGBA16F, width, height, GL_RGBA, GL_FLOAT, pixels);
272 texture->upload(GL_RGBA, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
H A DTexture.cpp105 GLenum format, GLenum type, const void* pixels) {
116 format, type, pixels);
117 } else if (pixels) {
119 format, type, pixels);
104 upload(GLint internalformat, uint32_t width, uint32_t height, GLenum format, GLenum type, const void* pixels) argument
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp46 uint32_t* pixels; member in union:Buffer::__anon1127
51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4);
56 uint32_t* bits = buf->pixels + y * buf->s;
78 uint32_t* bits = buf->pixels + y * buf->s + x;
97 uint32_t* bits = buf->pixels + y * buf->s + x;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatSpinner.java326 public void setDropDownVerticalOffset(int pixels) { argument
328 mPopup.setVerticalOffset(pixels);
330 super.setDropDownVerticalOffset(pixels);
343 public void setDropDownHorizontalOffset(int pixels) { argument
345 mPopup.setHorizontalOffset(pixels);
347 super.setDropDownHorizontalOffset(pixels);
352 * Get the configured horizontal offset in pixels for the spinner's popup window of choices.
355 * @return Horizontal offset in pixels
366 public void setDropDownWidth(int pixels) { argument
368 mDropDownWidth = pixels;
[all...]
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A Dchecks.spec99 glTexImage2D nullAllowed pixels
100 glTexImage3D nullAllowed pixels
102 glTexSubImage2D nullAllowed pixels
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp71 void* addr = pixelRef->pixels();
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DViewBindingAdapter.java219 private static int pixelsToDimensionPixelSize(float pixels) { argument
220 final int result = (int) (pixels + 0.5f);
223 } else if (pixels == 0) {
225 } else if (pixels > 0) {
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DColorCutQuantizer.java67 * @param pixels histogram representing an image's pixel data
71 ColorCutQuantizer(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { argument
76 for (int i = 0; i < pixels.length; i++) {
77 final int quantizedColor = quantizeFromRgb888(pixels[i]);
79 pixels[i] = quantizedColor;

Completed in 715 milliseconds

1234