/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/av/services/camera/libcameraservice/ |
H A D | FakeCamera.cpp | 106 * G = (pixels >> 3) & 0xFC; 107 * R = (pixels >> 8) & 0xF8; 108 * B = (pixels & 0x1f) << 3; 110 * R2 = (pixels >> 11) R = R2*8 111 * B2 = (pixels & 0x1f) B = B2*8 219 uint16_t pixels; local 237 pixels = inputRGB[i]; 238 temp = (BETA*(pixels & 0x001F) + ALPHA*(pixels>>11) ); 239 y0 = y_tab[(temp>>SHIFT1) + ((pixels>> [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.h | 66 // Copies the pixels from another GL frame to this frame. 141 // Copies pixels from texture or FBO to the specified buffer. 144 // Reads the pixels from the internal texture to the given buffer. 145 bool ReadTexturePixels(uint8_t* pixels) const; 147 // Reads the pixels from the internal FBO to the given buffer. 148 bool ReadFboPixels(uint8_t* pixels) const; 150 // Writes the specified pixels to the internal texture. 151 bool UploadTexturePixels(const uint8_t* pixels);
|
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/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapTest.java | 89 int[] pixels = new int[100]; 90 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 93 assertEquals("getPixels", p, pixels[i]); 114 int[] pixels = new int[100]; 115 bm.getPixels(pixels, 0, 10, 0, 0, 10, 10); 118 assertEquals("getPixels", p, pixels[i]);
|
/frameworks/base/telephony/java/com/android/internal/telephony/cat/ |
H A D | IconLoader.java | 242 int[] pixels = new int[numOfPixels]; 253 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01); 259 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); 299 int[] pixels = new int[numOfPixels]; 316 pixels[pixelIndex++] = Color.rgb(clut[clutIndex], 321 return Bitmap.createBitmap(pixels, width, height,
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 201 // 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/tests/touchlag/ |
H A D | touchlag.cpp | 46 uint32_t* pixels; member in union:Buffer::__anon1189 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/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 214 * to try to access its pixels, and the bitmap will not draw. 275 * how pixels are stored. This affects the quality (color depth) as 350 * Copy the bitmap's pixels into the specified buffer (allocated by the 352 * hold all of the pixels (taking into account the number of bytes per 373 throw new RuntimeException("Buffer not large enough for pixels"); 385 * Copy the pixels from the buffer, beginning at the current position, 386 * overwriting the bitmap's pixels. The data in the buffer is not changed 409 throw new RuntimeException("Buffer not large enough for pixels"); 418 * this bitmap's pixels into the new bitmap. If the conversion is not 424 * its pixels ca 963 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1002 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument 1072 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1236 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Spinner.java | 247 * Set a vertical offset in pixels for the spinner's popup window of choices. 250 * @param pixels Vertical offset in pixels 254 public void setDropDownVerticalOffset(int pixels) { argument 255 mPopup.setVerticalOffset(pixels); 259 * Get the configured vertical offset in pixels for the spinner's popup window of choices. 262 * @return Vertical offset in pixels 271 * Set a horizontal offset in pixels for the spinner's popup window of choices. 274 * @param pixels Horizontal offset in pixels 278 setDropDownHorizontalOffset(int pixels) argument 307 setDropDownWidth(int pixels) argument [all...] |
H A D | Switch.java | 293 * @param pixels Amount of padding in pixels 297 public void setSwitchPadding(int pixels) { argument 298 mSwitchPadding = pixels; 305 * @return Amount of padding in pixels 314 * Set the minimum width of the switch in pixels. The switch's width will be the maximum 317 * @param pixels Minimum width of the switch in pixels 321 public void setSwitchMinWidth(int pixels) { argument 322 mSwitchMinWidth = pixels; 345 setThumbTextPadding(int pixels) argument [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 397 int[] pixels = new int[numOfPixels]; 408 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01); 414 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 562 ScreenshotPixelRef* pixels = new ScreenshotPixelRef(NULL); local 563 if (pixels->update(width, height, minLayer, maxLayer, allLayers) != NO_ERROR) { 564 delete pixels; 568 uint32_t w = pixels->getWidth(); 569 uint32_t h = pixels->getHeight(); 570 uint32_t s = pixels->getStride(); 571 uint32_t f = pixels->getFormat(); 581 bitmap->setPixelRef(pixels)->unref(); 585 delete pixels;
|
H A D | android_opengl_GLES10.cpp | 2869 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */ 2876 GLvoid *pixels = (GLvoid *) 0; local 2878 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining); 2886 (GLvoid *)pixels 2889 releasePointer(_env, _array, pixels, _exception ? JNI_FALSE : JNI_TRUE); 3270 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */ 3276 GLvoid *pixels = (GLvoid *) 0; local 3279 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining); 3290 (GLvoid *)pixels 3293 releasePointer(_env, _array, pixels, JNI_FALS 3325 GLvoid *pixels = (GLvoid *) 0; local [all...] |
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 486 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...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | AutoFixFilter.java | 279 int pixels = (width - 2 * x_border_thickness) * (height - 2 * y_border_thickness); 296 long temp = (256 * 256 - 1l) * histArray[i] / pixels;
|
/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 | 209 const unsigned int pixels[] = local 222 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 818 // Determine the minimum number of pixels that the HWC will ever commit to. 842 uint64_t pixels = dim.width() * dim.height(); local 843 if (!bestSet || (pixels < bestMinPixels)) { 844 bestMinPixels = pixels; 891 uint64_t pixels = dim.width() * dim.height(); local 892 if (!bestSet || (pixels > bestMaxPixels)) { 893 bestMaxPixels = pixels; 988 // Discovers the source crop with the least number of pixels that the 1014 uint64_t pixels = dim.width() * dim.height(); local 1015 if (!bestSet || (pixels < bestMinPixel 1065 uint64_t pixels = dim.width() * dim.height(); local [all...] |
/frameworks/native/opengl/tests/gl_basic/ |
H A D | gl_basic.cpp | 316 const unsigned int pixels[] = 330 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
H A D | GLES10.spec | 82 void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 99 void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) 102 void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
|
H A D | GLES20.spec | 94 void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
107 void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels )
112 void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES10.java | 1055 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 1064 java.nio.Buffer pixels 1237 // C function void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) 1248 java.nio.Buffer pixels 1267 // C function void glTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels ) 1278 java.nio.Buffer pixels
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
H A D | GL10.java | 799 java.nio.Buffer pixels 919 java.nio.Buffer pixels 943 java.nio.Buffer pixels
|