Searched defs:pixels (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/av/cmds/screenrecord/
H A DFontBitmap.h10 static const uint8_t pixels[]; member in class:FontBitmap
14 const uint8_t FontBitmap::pixels[] = { member in class:FontBitmap
/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/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/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);
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp107 // Lock the pixels.
108 void* pixels; local
109 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels);
111 throwIllegalStateException(env, (char*) "Cannot lock bitmap pixels");
115 // Read the pixels.
117 read = readAllBytes(fd, (void*) pixels, byteCount);
119 throwIllegalStateException(env, (char*) "Cannot read bitmap pixels");
123 // Unlock the pixels.
126 throwIllegalStateException(env, (char*) "Cannot unlock bitmap pixels");
146 // Lock the pixels
147 void* pixels; local
[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 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/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.cpp237 uint8_t pixels[rowBytes * texture->height]; local
261 uint8_t* dst = pixels;
278 memcpy(pixels + rowBytes, pixels, rowBytes);
287 GL_RGBA, GL_FLOAT, pixels);
290 GL_RGBA, GL_UNSIGNED_BYTE, pixels);
/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/base/media/mca/filterfw/native/core/
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/tests/touchlag/
H A Dtouchlag.cpp46 uint32_t* pixels; member in union:Buffer::__anon1071
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/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp117 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 Dfill_common.cpp125 double pixels = (gWidth * gHeight) * count; local
126 double mpps = pixels / delta / 1000000;
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp210 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 DDngCreator.java153 * @param pixels a {@link android.graphics.Bitmap} of pixel data.
159 public DngCreator setThumbnail(@NonNull Bitmap pixels) { argument
160 if (pixels == null) {
164 int width = pixels.getWidth();
165 int height = pixels.getHeight();
173 ByteBuffer rgbBuffer = convertToRGB(pixels);
188 * @param pixels an {@link android.media.Image} object with the format
195 public DngCreator setThumbnail(@NonNull Image pixels) { argument
196 if (pixels == null) {
200 int format = pixels
307 writeInputStream(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull InputStream pixels, @IntRange(from=0) long offset) argument
361 writeByteBuffer(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull ByteBuffer pixels, @IntRange(from=0) long offset) argument
398 writeImage(@onNull OutputStream dngOutput, @NonNull Image pixels) argument
464 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
[all...]
/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;
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp151 * width - width of the pixelBuffer in pixels.
152 * height - height of the pixelBuffer in pixels.
575 jbyte* pixels = env->GetByteArrayElements(pixelBuffer, /*is_copy*/NULL); local
577 if (pixels == NULL) {
578 jniThrowNullPointerException(env, "pixels");
582 status_t err = produceFrame(anw, reinterpret_cast<uint8_t*>(pixels), width, height,
584 env->ReleaseByteArrayElements(pixelBuffer, pixels, JNI_ABORT);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java379 /*package*/ static void nativeGetPixels(long nativeBitmap, int[] pixels, int offset, argument
386 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DRenderEngine.cpp249 void RenderEngine::readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels) { argument
250 glReadPixels(l, b, w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatSpinner.java317 public void setDropDownVerticalOffset(int pixels) { argument
319 mPopup.setVerticalOffset(pixels);
321 super.setDropDownVerticalOffset(pixels);
334 public void setDropDownHorizontalOffset(int pixels) { argument
336 mPopup.setHorizontalOffset(pixels);
338 super.setDropDownHorizontalOffset(pixels);
343 * Get the configured horizontal offset in pixels for the spinner's popup window of choices.
346 * @return Horizontal offset in pixels
357 public void setDropDownWidth(int pixels) { argument
359 mDropDownWidth = pixels;
[all...]
/frameworks/base/core/java/android/widget/
H A DSpinner.java351 * Set a vertical offset in pixels for the spinner's popup window of choices.
354 * @param pixels Vertical offset in pixels
358 public void setDropDownVerticalOffset(int pixels) { argument
359 mPopup.setVerticalOffset(pixels);
363 * Get the configured vertical offset in pixels for the spinner's popup window of choices.
366 * @return Vertical offset in pixels
375 * Set a horizontal offset in pixels for the spinner's popup window of choices.
378 * @param pixels Horizontal offset in pixels
382 setDropDownHorizontalOffset(int pixels) argument
411 setDropDownWidth(int pixels) argument
[all...]
H A DSwitch.java414 * @param pixels Amount of padding in pixels
418 public void setSwitchPadding(int pixels) { argument
419 mSwitchPadding = pixels;
426 * @return Amount of padding in pixels
435 * Set the minimum width of the switch in pixels. The switch's width will be the maximum
438 * @param pixels Minimum width of the switch in pixels
442 public void setSwitchMinWidth(int pixels) { argument
443 mSwitchMinWidth = pixels;
466 setThumbTextPadding(int pixels) argument
[all...]
/frameworks/native/opengl/libagl/
H A Dtexture.cpp486 uint8_t const* pixels = (uint8_t *)data + paletteSize; local
490 pixels += h * ((w * indexBits) / 8);
501 int index = 2 * (*pixels++);
507 int v = *pixels++;
525 int index = 3 * (*pixels++);
532 int v = *pixels++;
552 int index = 4 * (*pixels++);
560 int v = *pixels++;
1169 GLenum format, GLenum type, const GLvoid *pixels)
1197 if (pixels) {
[all...]

Completed in 763 milliseconds

12