Searched defs:pixels (Results 1 - 25 of 44) sorted by path

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/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/core/java/android/widget/
H A DSpinner.java363 * Set a vertical offset in pixels for the spinner's popup window of choices.
366 * @param pixels Vertical offset in pixels
370 public void setDropDownVerticalOffset(int pixels) { argument
371 mPopup.setVerticalOffset(pixels);
375 * Get the configured vertical offset in pixels for the spinner's popup window of choices.
378 * @return Vertical offset in pixels
387 * Set a horizontal offset in pixels for the spinner's popup window of choices.
390 * @param pixels Horizontal offset in pixels
394 setDropDownHorizontalOffset(int pixels) argument
423 setDropDownWidth(int pixels) argument
[all...]
H A DSwitch.java415 * @param pixels Amount of padding in pixels
419 public void setSwitchPadding(int pixels) { argument
420 mSwitchPadding = pixels;
427 * @return Amount of padding in pixels
436 * Set the minimum width of the switch in pixels. The switch's width will be the maximum
439 * @param pixels Minimum width of the switch in pixels
443 public void setSwitchMinWidth(int pixels) { argument
444 mSwitchMinWidth = pixels;
467 setThumbTextPadding(int pixels) argument
[all...]
H A DTextView.java1705 * @return the height of one standard line in pixels. Note that markup
2939 * @return the size (in pixels) of the default text size in this TextView.
2947 * @return the size (in scaled pixels) of thee default text size in this TextView.
3695 * height was set in pixels instead using {@link #setMinHeight(int) or #setHeight(int)}.
3706 * Makes the TextView at least this many pixels tall.
3722 * @return the minimum height of this TextView expressed in pixels, or -1 if the minimum
3751 * height was set in pixels instead using {@link #setMaxHeight(int) or #setHeight(int)}.
3762 * Makes the TextView at most this many pixels tall. This option is mutually exclusive with the
3779 * @return the maximum height of this TextView expressed in pixels, or -1 if the maximum
3808 * Makes the TextView exactly this many pixels tal
3818 setHeight(int pixels) argument
3966 setWidth(int pixels) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp243 // We just restored this from 0, pin the pixels and inc the strong count
313 LOG_ALWAYS_FATAL("Cannot pin invalid pixels!");
325 LOG_ALWAYS_FATAL("Failed to acquire strong reference to pixels");
336 LOG_ALWAYS_FATAL("Cannot unpin invalid pixels!");
357 // would require locking the pixels first.
372 // Convenience class that does not take a global ref on the pixels, relying
383 void* pixels() { function in class:LocalScopedBitmap
384 return mBitmap->peekAtPixelRef()->pixels();
1027 // Map the pixels in place and take ownership of the ashmem region.
1054 // Copy the pixels int
[all...]
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp756 void* const pixels = (char*)data + palette_size; local
759 memcpy(pixels, p, size);
889 * Encode a block of pixels.
892 * 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R
922 * Decode a block of pixels.
927 * 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp140 * 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);
H A Dandroid_opengl_GLES10.cpp2629 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
2636 GLvoid *pixels = (GLvoid *) 0; local
2638 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
2639 if (pixels == NULL) {
2641 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
2650 (GLvoid *)pixels
2653 releasePointer(_env, _array, pixels, JNI_TRUE);
3041 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
3048 GLvoid *pixels = (GLvoid *) 0; local
3051 pixels
3102 GLvoid *pixels = (GLvoid *) 0; local
[all...]
H A Dandroid_opengl_GLES20.cpp4080 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
4087 GLvoid *pixels = (GLvoid *) 0; local
4089 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
4090 if (pixels == NULL) {
4092 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
4101 (GLvoid *)pixels
4104 releasePointer(_env, _array, pixels, JNI_TRUE);
4347 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
4354 GLvoid *pixels = (GLvoid *) 0; local
4357 pixels
4584 GLvoid *pixels = (GLvoid *) 0; local
[all...]
H A Dandroid_opengl_GLES30.cpp495 /* void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
502 GLvoid *pixels = (GLvoid *) 0; local
505 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
507 if (pixels_buf && pixels == NULL) {
509 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
521 (GLvoid *)pixels
524 releasePointer(_env, _array, pixels, JNI_FALSE);
546 /* void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels ) */
553 GLvoid *pixels = (GLvoid *) 0; local
555 pixels
[all...]
H A Dcom_google_android_gles_jni_GLImpl.cpp3346 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
3353 GLvoid *pixels = (GLvoid *) 0; local
3355 pixels = (GLvoid *)getPointer(_env, pixels_buf, (jarray*)&_array, &_remaining, &_bufferOffset);
3356 if (pixels == NULL) {
3358 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
3367 (GLvoid *)pixels
3370 releasePointer(_env, _array, pixels, JNI_TRUE);
3802 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
3809 GLvoid *pixels = (GLvoid *) 0; local
3812 pixels
3863 GLvoid *pixels = (GLvoid *) 0; local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java355 * to try to access its pixels, and the bitmap will not draw.
419 * how pixels are stored. This affects the quality (color depth) as
497 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the
499 * hold all of the pixels (taking into account the number of bytes per
503 * that if this bitmap stores its pixels pre-multiplied
527 throw new RuntimeException("Buffer not large enough for pixels");
539 * <p>Copy the pixels from the buffer, beginning at the current position,
540 * overwriting the bitmap's pixels. The data in the buffer is not changed
567 throw new RuntimeException("Buffer not large enough for pixels");
581 * this bitmap's pixels int
1427 getPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1467 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1541 setPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1709 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java667 * @param left position in pixels of the left bound
668 * @param top position in pixels of the top bound
669 * @param right position in pixels of the right bound
670 * @param bottom position in pixels of the bottom bound
1438 * @param pixels the pixel value for use in source density
1443 static float scaleFromDensity(float pixels, int sourceDensity, int targetDensity) { argument
1444 return pixels * targetDensity / sourceDensity;
1458 * @param pixels the pixel value for use in source density
1466 int pixels, int sourceDensity, int targetDensity, boolean isSize) {
1467 if (pixels
1465 scaleFromDensity( int pixels, int sourceDensity, int targetDensity, boolean isSize) argument
[all...]
/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/libs/hwui/debug/
H A Dnullgles.cpp218 void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels) {} argument
231 void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels) {} argument
236 void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels) {} argument
/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/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/opengl/java/android/opengl/
H A DGLErrorWrapper.java664 int type, Buffer pixels) {
666 mgl.glReadPixels(x, y, width, height, format, type, pixels);
781 Buffer pixels) {
784 format, type, pixels);
814 Buffer pixels) {
817 format, type, pixels);
663 glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) argument
779 glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) argument
812 glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) argument
H A DGLLogWrapper.java2252 int type, Buffer pixels) {
2260 arg("pixels", pixels.toString());
2263 mgl.glReadPixels(x, y, width, height, format, type, pixels);
2465 Buffer pixels) {
2475 arg("pixels", pixels.toString());
2479 format, type, pixels);
2529 Buffer pixels) {
2539 arg("pixels", pixel
2251 glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) argument
2463 glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) argument
2527 glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) argument
[all...]
/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/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 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;

Completed in 4888 milliseconds

12