Home
last modified time | relevance | path

Searched refs:pixels (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/services/camera/libcameraservice/
DFakeCamera.cpp219 uint16_t pixels; in ccrgb16toyuv_wo_colorkey() local
237 pixels = inputRGB[i]; in ccrgb16toyuv_wo_colorkey()
238 temp = (BETA*(pixels & 0x001F) + ALPHA*(pixels>>11) ); in ccrgb16toyuv_wo_colorkey()
239 y0 = y_tab[(temp>>SHIFT1) + ((pixels>>3) & 0x00FC)]; in ccrgb16toyuv_wo_colorkey()
241 G_ds += (pixels>>1) & 0x03E0; in ccrgb16toyuv_wo_colorkey()
242 B_ds += (pixels<<5) & 0x03E0; in ccrgb16toyuv_wo_colorkey()
243 R_ds += (pixels>>6) & 0x03E0; in ccrgb16toyuv_wo_colorkey()
245 pixels = inputRGB[i+1]; in ccrgb16toyuv_wo_colorkey()
246 temp = (BETA*(pixels & 0x001F) + ALPHA*(pixels>>11) ); in ccrgb16toyuv_wo_colorkey()
247 y1 = y_tab[(temp>>SHIFT1) + ((pixels>>3) & 0x00FC)]; in ccrgb16toyuv_wo_colorkey()
[all …]
/frameworks/base/services/surfaceflinger/
DLayerBlur.cpp169 uint16_t* const pixels = (uint16_t*)malloc(s*h*pixelSize); in onDraw() local
174 glReadPixels(X, Y, w, h, mReadFormat, mReadType, pixels); in onDraw()
183 bl.data = (GGLubyte*)pixels; in onDraw()
188 mReadFormat, mReadType, pixels); in onDraw()
200 mReadFormat, mReadType, pixels); in onDraw()
206 free((void*)pixels); in onDraw()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
DIconLoader.java242 int[] pixels = new int[numOfPixels]; in parseToBnW() local
253 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); in parseToBnW()
259 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW()
299 int[] pixels = new int[numOfPixels]; in parseToRGB() local
316 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], in parseToRGB()
321 return Bitmap.createBitmap(pixels, width, height, in parseToRGB()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java87 int[] pixels = new int[100]; in testGetPixelsWithAlpha() local
88 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithAlpha()
91 assertEquals("getPixels", p, pixels[i]); in testGetPixelsWithAlpha()
112 int[] pixels = new int[100]; in testGetPixelsWithoutAlpha() local
113 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); in testGetPixelsWithoutAlpha()
116 assertEquals("getPixels", p, pixels[i]); in testGetPixelsWithoutAlpha()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java774 public void getPixels(int[] pixels, int offset, int stride, in getPixels() argument
780 checkPixelsAccess(x, y, width, height, offset, stride, pixels); in getPixels()
781 nativeGetPixels(mNativeBitmap, pixels, offset, stride, in getPixels()
814 int offset, int stride, int pixels[]) { in checkPixelsAccess() argument
834 int length = pixels.length; in checkPixelsAccess()
883 public void setPixels(int[] pixels, int offset, int stride, in setPixels() argument
892 checkPixelsAccess(x, y, width, height, offset, stride, pixels); in setPixels()
893 nativeSetPixels(mNativeBitmap, pixels, offset, stride, in setPixels()
1041 private static native void nativeGetPixels(int nativeBitmap, int[] pixels, in nativeGetPixels() argument
/frameworks/base/docs/html/guide/webapps/
Dtargeting.jd60 <dd>The screen density (the number of pixels per inch) on an Android-powered device affects
83 the viewport has its own dimensions that determine the number of pixels available to a web page.
84 That is, the number of pixels available to a web page before it exceeds the screen area is
87 480 pixels, the viewport can have a width of 800 pixels, so that a web page designed to be 800
88 pixels wide is completely visible on the screen.</p>
129 <p class="img-caption"><strong>Figure 1.</strong> A web page with an image that's 320 pixels
131 enabled, the viewport is 800 pixels wide, by default).</p>
138 "overview mode" enabled (the image in the web page is 320 pixels wide).</p>
145 viewport (the number of pixels available to the web page before it goes off screen).</p>
148 default (unless disable by the user), which sets the minimum viewport width to 800 pixels. So, if
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIccUtils.java356 int[] pixels = new int[numOfPixels]; in parseToBnW() local
367 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01); in parseToBnW()
373 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW()
/frameworks/base/opengl/libagl/
Dtexture.cpp487 uint8_t const* pixels = (uint8_t *)data + paletteSize; in decodePalette4() local
491 pixels += h * ((w * indexBits) / 8); in decodePalette4()
502 int index = 2 * (*pixels++); in decodePalette4()
508 int v = *pixels++; in decodePalette4()
526 int index = 3 * (*pixels++); in decodePalette4()
533 int v = *pixels++; in decodePalette4()
553 int index = 4 * (*pixels++); in decodePalette4()
561 int v = *pixels++; in decodePalette4()
1170 GLenum format, GLenum type, const GLvoid *pixels) in glTexImage2D() argument
1198 if (pixels) { in glTexImage2D()
[all …]
/frameworks/base/opengl/tests/gl_jni/jni/
Dgl_code.cpp117 const unsigned int pixels[] = in create_texture() local
131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
/frameworks/base/opengl/tests/tritex/
Dtritex.cpp209 const unsigned int pixels[] = in create_texture() local
222 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
/frameworks/base/docs/html/resources/articles/
Dui-1.5.jd17 For instance, Android 1.1 buttons have a minimum size of 44x48 pixels
18 whereas Android 1.5 buttons now have a minimum size of 24x48 pixels.
/frameworks/base/opengl/libs/GLES2/
Dgl2ext_api.in22 …h, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels) {
23 …lTexImage3DOES, target, level, internalformat, width, height, depth, border, format, type, pixels);
25 …, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels) {
26 …bImage3DOES, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
Dgl2_api.in277 …els)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) {
278 CALL_GL_API(glReadPixels, x, y, width, height, format, type, pixels);
316 …t, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) {
317 …L_GL_API(glTexImage2D, target, level, internalformat, width, height, border, format, type, pixels);
331 …, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) {
332 …CALL_GL_API(glTexSubImage2D, target, level, xoffset, yoffset, width, height, format, type, pixels);
/frameworks/base/opengl/tools/glgen/specs/gles11/
DGLES10.spec82 …els ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
99 …at, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
102 …t, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
DGLES20.spec94 …els ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
107 …at, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
112 …t, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java799 java.nio.Buffer pixels in glReadPixels() argument
919 java.nio.Buffer pixels in glTexImage2D() argument
943 java.nio.Buffer pixels in glTexSubImage2D() argument
/frameworks/base/opengl/tools/glgen/specs/jsr239/
Dglspec-1.082 …els ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
99 …at, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
102 …t, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
/frameworks/base/opengl/libs/GLES_CM/
Dgl_api.in361 …els)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) {
362 CALL_GL_API(glReadPixels, x, y, width, height, format, type, pixels);
406 …t, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) {
407 …L_GL_API(glTexImage2D, target, level, internalformat, width, height, border, format, type, pixels);
421 …, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) {
422 …CALL_GL_API(glTexSubImage2D, target, level, xoffset, yoffset, width, height, format, type, pixels);
/frameworks/base/opengl/java/android/opengl/
DGLES10.java1064 java.nio.Buffer pixels in glReadPixels() argument
1248 java.nio.Buffer pixels in glTexImage2D() argument
1278 java.nio.Buffer pixels in glTexSubImage2D() argument
/frameworks/base/opengl/tests/gl_basic/
Dgl_basic.cpp316 const unsigned int pixels[] = in create_texture() local
330 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd106 <dd>The total number of physical pixels on a screen. Note that, although
112 <dd>Based on the screen resolution, the spread of pixels across the physical
115 <p>A screen with lower density has fewer available pixels spread across the
117 sometimes significantly more &mdash; pixels spread across the same area. The
119 (such as a button) whose height and width are defined in terms of screen pixels
134 conversion of dp units to screen pixels is simple: <nobr><code>pixels = dps *
136 physical pixels. Using dp units to define your application's UI is highly
438 pixels will appear physically larger on the lower density screen and smaller on
471 in density-independent pixels (<code>dp</code> or <code>dp</code>) or
472 scale-independent pixels (<code>sip</code> or <code>sp</code>, for text only).
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd150 <p>In portrait orientation, each cell is 80 pixels wide by 100 pixels tall (the
164 <p>In landscape orientation, each cell is 106 pixels wide by 74 pixels tall. The
234 pixels.)</p>
/frameworks/base/opengl/include/GLES2/
Dgl2ext.h487 …th, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
488 …t, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels);
494 …th, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
495 …t, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels);
/frameworks/base/core/jni/
Dandroid_opengl_GLES10.cpp2904 GLvoid *pixels = (GLvoid *) 0; in android_glReadPixels__IIIIIILjava_nio_Buffer_2() local
2906 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining); in android_glReadPixels__IIIIIILjava_nio_Buffer_2()
2914 (GLvoid *)pixels in android_glReadPixels__IIIIIILjava_nio_Buffer_2()
2917 releasePointer(_env, _array, pixels, _exception ? JNI_FALSE : JNI_TRUE); in android_glReadPixels__IIIIIILjava_nio_Buffer_2()
3304 GLvoid *pixels = (GLvoid *) 0; in android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2() local
3307 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining); in android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2()
3318 (GLvoid *)pixels in android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2()
3321 releasePointer(_env, _array, pixels, JNI_FALSE); in android_glTexImage2D__IIIIIIIILjava_nio_Buffer_2()
3353 GLvoid *pixels = (GLvoid *) 0; in android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2() local
3356 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining); in android_glTexSubImage2D__IIIIIIIILjava_nio_Buffer_2()
[all …]
/frameworks/base/opengl/tests/angeles/include/GLES/
Dgl.h554 …xels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
571 …at, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
574 …t, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);

123