/aosp12/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 188 if (pixels == null) { in setThumbnail() 192 int width = pixels.getWidth(); in setThumbnail() 193 int height = pixels.getHeight(); in setThumbnail() 224 if (pixels == null) { in setThumbnail() 233 int width = pixels.getWidth(); in setThumbnail() 341 } else if (pixels == null) { in writeInputStream() 396 } else if (pixels == null) { in writeByteBuffer() 430 } else if (pixels == null) { in writeImage() 445 writeByteBuffer(pixels.getWidth(), pixels.getHeight(), buf, dngOutput, in writeImage() 512 pixels.isDirect()); in writeByteBuffer() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/ |
H A D | RefreshRateOverlay.cpp | 37 uint8_t* pixels) { in drawRect() argument 83 drawRect(rect, color, buffer, pixels); in drawSegment() 93 drawSegment(Segment::Upper, left, color, buffer, pixels); in drawDigit() 95 drawSegment(Segment::UpperLeft, left, color, buffer, pixels); in drawDigit() 101 drawSegment(Segment::Middle, left, color, buffer, pixels); in drawDigit() 103 drawSegment(Segment::LowerLeft, left, color, buffer, pixels); in drawDigit() 109 drawSegment(Segment::Buttom, left, color, buffer, pixels); in drawDigit() 131 uint8_t* pixels; in drawNumber() local 137 drawDigit(hundreds, left, color, buffer, pixels); in drawNumber() 142 drawDigit(tens, left, color, buffer, pixels); in drawNumber() [all …]
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilter.java | 70 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() 136 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) + in drawBoxes() 138 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) + in drawBoxes() [all …]
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilterTest.java | 79 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() 138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter() 140 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter() 142 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter() [all …]
|
/aosp12/frameworks/base/native/webview/plat_support/ |
H A D | graphics_utils.cpp | 60 PixelInfo* pixels = new PixelInfo(nativeCanvas); in GetPixels() local 61 if (!pixels->state) { in GetPixels() 62 delete pixels; in GetPixels() 63 pixels = NULL; in GetPixels() 65 return pixels; in GetPixels() 68 void ReleasePixels(AwPixelInfo* pixels) { in ReleasePixels() argument 69 delete static_cast<PixelInfo*>(pixels); in ReleasePixels()
|
/aosp12/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | HwBitmapInCompositeShader.cpp | 41 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()
|
/aosp12/frameworks/av/media/libmediaformatshaper/ |
H A D | CodecProperties.cpp | 237 point->pixels = width * height; in bppPoint() 245 } else if (point->pixels < mBppPoints->pixels) { in bppPoint() 252 if (point->pixels > after->next->pixels) { in bppPoint() 275 int32_t pixels = width * height; in getBpp() local 279 while (point && point->pixels < pixels) { in getBpp() 355 point->pixels = width * height; in qpMaxPoint() 363 } else if (point->pixels < mQpMaxPoints->pixels) { in qpMaxPoint() 370 if (point->pixels > after->next->pixels) { in qpMaxPoint() 393 int32_t pixels = width * height; in targetQpMax() local 397 while (point && point->pixels < pixels) { in targetQpMax()
|
/aosp12/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) { 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()
|
/aosp12/frameworks/base/native/graphics/jni/fuzz/ |
H A D | fuzz_imagedecoder.cpp | 46 void operator()(void* pixels) const { std::free(pixels); } in operator ()() 75 auto pixels = PixelPointer(std::malloc(pixelSize)); in LLVMFuzzerTestOneInput() local 76 if (!pixels.get()) { in LLVMFuzzerTestOneInput() 81 int result = AImageDecoder_decodeImage(decoder.get(), pixels.get(), stride, pixelSize); in LLVMFuzzerTestOneInput()
|
/aosp12/hardware/interfaces/automotive/evs/1.0/default/ |
H A D | EvsDisplay.cpp | 258 uint32_t* pixels = nullptr; in returnTargetBufferForDisplay() local 263 (void **)&pixels); in returnTargetBufferForDisplay() 266 if (!pixels) { in returnTargetBufferForDisplay() 288 uint32_t receivedPixel = pixels[col]; in returnTargetBufferForDisplay() 301 pixels = pixels + mBuffer.stride; in returnTargetBufferForDisplay() 306 uint32_t signature = pixels[0] & 0xFF; in returnTargetBufferForDisplay()
|
/aosp12/frameworks/base/packages/PrintSpooler/jni/ |
H A D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 115 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()
|
/aosp12/hardware/interfaces/automotive/evs/1.1/default/ |
H A D | EvsDisplay.cpp | 267 uint32_t* pixels = nullptr; in returnTargetBufferForDisplayImpl() local 272 (void **)&pixels); in returnTargetBufferForDisplayImpl() 275 if (!pixels) { in returnTargetBufferForDisplayImpl() 297 uint32_t receivedPixel = pixels[col]; in returnTargetBufferForDisplayImpl() 310 pixels = pixels + mBuffer.stride; in returnTargetBufferForDisplayImpl() 315 uint32_t signature = pixels[0] & 0xFF; in returnTargetBufferForDisplayImpl()
|
/aosp12/frameworks/native/libs/renderengine/tests/ |
H A D | RenderEngineTest.cpp | 1085 uint8_t* pixels; in fillRedBufferTextureTransform() local 1090 pixels[1] = 0; in fillRedBufferTextureTransform() 1091 pixels[2] = 0; in fillRedBufferTextureTransform() 1093 pixels[4] = 0; in fillRedBufferTextureTransform() 1095 pixels[6] = 0; in fillRedBufferTextureTransform() 1097 pixels[8] = 0; in fillRedBufferTextureTransform() 1098 pixels[9] = 0; in fillRedBufferTextureTransform() 1138 pixels[1] = 0; in fillRedBufferWithPremultiplyAlpha() 1139 pixels[2] = 0; in fillRedBufferWithPremultiplyAlpha() 1177 pixels[1] = 0; in fillRedBufferWithoutPremultiplyAlpha() [all …]
|
/aosp12/frameworks/av/media/libstagefright/renderfright/tests/ |
H A D | RenderEngineTest.cpp | 812 uint8_t* pixels; in fillRedBufferTextureTransform() local 817 pixels[1] = 0; in fillRedBufferTextureTransform() 818 pixels[2] = 0; in fillRedBufferTextureTransform() 820 pixels[4] = 0; in fillRedBufferTextureTransform() 822 pixels[6] = 0; in fillRedBufferTextureTransform() 824 pixels[8] = 0; in fillRedBufferTextureTransform() 825 pixels[9] = 0; in fillRedBufferTextureTransform() 865 pixels[1] = 0; in fillRedBufferWithPremultiplyAlpha() 866 pixels[2] = 0; in fillRedBufferWithPremultiplyAlpha() 904 pixels[1] = 0; in fillRedBufferWithoutPremultiplyAlpha() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
H A D | DisplayCreationArgs.h | 43 ui::Size pixels = ui::Size::INVALID; member 77 DisplayCreationArgsBuilder& setPixels(ui::Size pixels) { in setPixels() argument 78 mArgs.pixels = pixels; in setPixels()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/graph/ |
H A D | StreamSetObserver.cpp | 72 proto::PixelData pixels = response.pixel_data(); in startObservingStream() local 73 runner::InputFrame frame(pixels.height(), pixels.width(), in startObservingStream() 75 static_cast<int>(pixels.format())), in startObservingStream() 76 pixels.step(), in startObservingStream() 78 pixels.data().c_str())); in startObservingStream()
|
/aosp12/packages/services/Car/car_product/car_ui_portrait/bootanimation/ |
H A D | README | 24 * **WIDTH:** animation width (pixels) 25 * **HEIGHT:** animation height (pixels) 55 - `n` -- will position the text n pixels from the start; left edge for x-axis, bottom edge 57 - `-n` -- will position the text n pixels from the end; right edge for x-axis, top edge 60 * `-24` or `c -24` will position the text 24 pixels from the top of the screen, 62 * `16 c` will position the text 16 pixels from the left of the screen, centred 64 * `-32 32` will position the text such that the bottom right corner is 32 pixels above 65 and 32 pixels left of the edges of the screen
|
/aosp12/frameworks/base/libs/hwui/hwui/ |
H A D | ImageDecoder.cpp | 334 bool ImageDecoder::handleRestorePrevious(const SkImageInfo& outputInfo, void* pixels, in handleRestorePrevious() argument 349 const uint8_t* srcRow = static_cast<uint8_t*>(pixels); in handleRestorePrevious() 350 uint8_t* dstRow = static_cast<uint8_t*>(mRestoreFrame->pixels()); in handleRestorePrevious() 363 const uint8_t* srcRow = static_cast<uint8_t*>(mRestoreFrame->pixels()); in handleRestorePrevious() 364 uint8_t* dstRow = static_cast<uint8_t*>(pixels); in handleRestorePrevious() 378 SkCodec::Result ImageDecoder::decode(void* pixels, size_t rowBytes) { in decode() argument 390 if (!handleRestorePrevious(outputInfo, pixels, rowBytes)) { in decode() 394 void* decodePixels = pixels; in decode() 443 priorFrame.installPixels(outputInfo, pixels, rowBytes); in decode() 464 if (!scaledBm.installPixels(outputInfo, pixels, rowBytes)) { in decode()
|
/aosp12/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 194 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()
|
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | CelebiQuantizer.java | 43 public void quantize(int[] pixels, int maxColors) { in quantize() argument 45 wu.quantize(pixels, maxColors); in quantize() 48 kmeans.quantize(pixels, maxColors); in quantize()
|
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
H A D | ColorExtractor.java | 65 int[] pixels = mTmpPixels; in findDominantColorByHue() local 66 Arrays.fill(pixels, 0); in findDominantColorByHue() 87 pixels[pixelCount++] = rgb; in findDominantColorByHue() 106 int rgb = pixels[i]; in findDominantColorByHue()
|
/aosp12/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | pixel_format_f32.rsh | 11 // 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).
|
/aosp12/frameworks/base/cmds/bootanimation/ |
H A D | FORMAT.md | 27 * **WIDTH:** animation width (pixels) 28 * **HEIGHT:** animation height (pixels) 58 - `n` -- will position the text n pixels from the start; left edge for x-axis, bottom edge 60 - `-n` -- will position the text n pixels from the end; right edge for x-axis, top edge 63 * `-24` or `c -24` will position the text 24 pixels from the top of the screen, 65 * `16 c` will position the text 16 pixels from the left of the screen, centred 67 * `-32 32` will position the text such that the bottom right corner is 32 pixels above 68 and 32 pixels left of the edges of the screen 81 * For a NxM image each character glyph will be N/16 pixels wide and M/(12*2) pixels high
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | WallpaperColors.java | 517 int[] pixels = new int[source.getWidth() * source.getHeight()]; in calculateDarkHints() local 519 final int maxDarkPixels = (int) (pixels.length * MAX_DARK_AREA); in calculateDarkHints() 521 source.getPixels(pixels, 0 /* offset */, source.getWidth(), 0 /* x */, 0 /* y */, in calculateDarkHints() 527 for (int i = 0; i < pixels.length; i++) { in calculateDarkHints() 528 ColorUtils.colorToHSL(pixels[i], tmpHsl); in calculateDarkHints() 530 final int alpha = Color.alpha(pixels[i]); in calculateDarkHints() 534 .calculateContrast(pixels[i], Color.BLACK) > DARK_PIXEL_CONTRAST; in calculateDarkHints() 538 pixels[i] = Color.RED; in calculateDarkHints() 545 double meanLuminance = totalLuminance / pixels.length; in calculateDarkHints() 555 source.setPixels(pixels, 0, source.getWidth(), 0, 0, source.getWidth(), in calculateDarkHints() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
H A D | HistogramView.java | 47 int[] pixels = new int[w * h]; in doInBackground() local 48 bitmap.getPixels(pixels, 0, w, 0, 0, w, h); in doInBackground() 52 int r = Color.red(pixels[index]); in doInBackground() 53 int g = Color.green(pixels[index]); in doInBackground() 54 int b = Color.blue(pixels[index]); in doInBackground()
|