/frameworks/av/cmds/screenrecord/ |
H A D | FontBitmap.h | 10 static const uint8_t pixels[]; member in class:FontBitmap 14 const uint8_t FontBitmap::pixels[] = { member in class:FontBitmap
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | HwBitmapInCompositeShader.cpp | 44 unsigned char* pixels = nullptr; variable 45 buffer->lock(GraphicBuffer::USAGE_SW_WRITE_RARELY, ((void**)&pixels)); 48 memset(pixels, 0, size); 50 pixels[4000 + 4 * i + 0] = 255; 51 pixels[4000 + 4 * i + 1] = 255; 52 pixels[4000 + 4 * i + 2] = 0; 53 pixels[4000 + 4 * i + 3] = 255;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/ |
H A D | Throughput.java | 30 public Throughput(int totalFrames, int periodFrames, int periodTime, int pixels) { argument 34 mPixels = pixels;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilter.java | 70 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/webview/chromium/plat_support/ |
H A D | graphics_utils.cpp | 62 PixelInfo* pixels = new PixelInfo(nativeCanvas); 63 if (!pixels->state) { 64 delete pixels; 65 pixels = NULL; 67 return pixels; 70 void ReleasePixels(AwPixelInfo* pixels) { argument 71 delete static_cast<PixelInfo*>(pixels);
|
/frameworks/base/packages/PrintSpooler/jni/ |
H A D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 114 // 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GLToolbox.java | 70 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 D | TextureSource.java | 69 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 D | RenderTarget.java | 265 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/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | ViewBindingAdapter.java | 219 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/base/libs/hwui/ |
H A D | GradientCache.cpp | 220 uint8_t pixels[rowBytes * height]; local 241 uint8_t* dst = pixels; 258 memcpy(pixels + rowBytes, pixels, rowBytes); 261 texture->upload(GL_RGBA16F, width, height, GL_RGBA, GL_FLOAT, pixels); 264 texture->upload(internalFormat, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
H A D | Texture.cpp | 121 GLenum format, GLenum type, const void* pixels) { 132 format, type, pixels); 133 } else if (pixels) { 135 format, type, pixels); 367 bitmap.info().bytesPerPixel(), bitmap.width(), bitmap.height(), bitmap.pixels()); 120 upload(GLint internalFormat, uint32_t width, uint32_t height, GLenum format, GLenum type, const void* pixels) argument
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 193 // Read the frame pixels 194 uint8_t* pixels = new uint8_t[frame->Size()]; local 195 frame->CopyDataTo(pixels, frame->Size()); 198 ConvertRGBAToFloats(pixels, frame->Size(), float_array); 201 delete[] pixels; 214 uint8_t* pixels; local 215 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); 217 const bool success = frame->WriteData(pixels, size); 230 uint8_t* pixels; local 231 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.cpp | 347 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/tests/touchlag/ |
H A D | touchlag.cpp | 46 uint32_t* pixels; member in union:Buffer::__anon1324 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/ex/framesequence/jni/ |
H A D | FrameSequenceJNI.cpp | 124 void* pixels; local 131 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { 132 throwIae(env, "Bitmap pixels couldn't be locked", ret); 138 (Color8888*) pixels, pixelStride, previousFrameNr);
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 117 const unsigned int pixels[] = local 131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/native/opengl/tests/gl_perf/ |
H A D | fill_common.cpp | 125 double pixels = (gWidth * gHeight) * count; local 126 double mpps = pixels / delta / 1000000;
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 210 const unsigned int pixels[] = local 223 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 181 * @param pixels a {@link android.graphics.Bitmap} of pixel data. 187 public DngCreator setThumbnail(@NonNull Bitmap pixels) { argument 188 if (pixels == null) { 192 int width = pixels.getWidth(); 193 int height = pixels.getHeight(); 201 ByteBuffer rgbBuffer = convertToRGB(pixels); 216 * @param pixels an {@link android.media.Image} object with the format 223 public DngCreator setThumbnail(@NonNull Image pixels) { argument 224 if (pixels == null) { 228 int format = pixels 335 writeInputStream(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull InputStream pixels, @IntRange(from=0) long offset) argument 389 writeByteBuffer(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull ByteBuffer pixels, @IntRange(from=0) long offset) argument 426 writeImage(@onNull OutputStream dngOutput, @NonNull Image pixels) argument 492 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument [all...] |
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | ColorCutQuantizer.java | 87 * @param pixels histogram representing an image's pixel data 91 ColorCutQuantizer(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { argument 96 for (int i = 0; i < pixels.length; i++) { 97 final int quantizedColor = quantizeFromRgb888(pixels[i]); 99 pixels[i] = quantizedColor;
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | ColorCutQuantizer.java | 67 * @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;
|
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 140 * width - width of the pixelBuffer in pixels. 141 * height - height of the pixelBuffer in pixels. 583 jbyte* pixels = env->GetByteArrayElements(pixelBuffer, /*is_copy*/NULL); local 585 if (pixels == NULL) { 586 jniThrowNullPointerException(env, "pixels"); 590 status_t err = produceFrame(anw, reinterpret_cast<uint8_t*>(pixels), width, height, 592 env->ReleaseByteArrayElements(pixelBuffer, pixels, JNI_ABORT);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 412 /*package*/ static void nativeGetPixels(long nativeBitmap, int[] pixels, int offset, argument 419 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 251 void RenderEngine::readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels) { argument 252 glReadPixels(l, b, w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|