/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/base/libs/hwui/ |
H A D | GradientCache.cpp | 181 uint32_t pixels[width * texture->height]; local 198 uint8_t* p = (uint8_t*) pixels; 229 memcpy(pixels + width * i, pixels, rowBytes); 238 GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/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/media/mca/filterfw/native/core/ |
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/tests/touchlag/ |
H A D | touchlag.cpp | 46 uint32_t* pixels; member in union:Buffer::__anon1144 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 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/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 350 /*package*/ static void nativeGetPixels(int nativeBitmap, int[] pixels, int offset, argument 357 delegate.getImage().getRGB(x, y, width, height, pixels, offset, stride);
|
/frameworks/base/core/java/android/widget/ |
H A D | Spinner.java | 256 * Set a vertical offset in pixels for the spinner's popup window of choices. 259 * @param pixels Vertical offset in pixels 263 public void setDropDownVerticalOffset(int pixels) { argument 264 mPopup.setVerticalOffset(pixels); 268 * Get the configured vertical offset in pixels for the spinner's popup window of choices. 271 * @return Vertical offset in pixels 280 * Set a horizontal offset in pixels for the spinner's popup window of choices. 283 * @param pixels Horizontal offset in pixels 287 setDropDownHorizontalOffset(int pixels) argument 316 setDropDownWidth(int pixels) argument [all...] |
H A D | Switch.java | 304 * @param pixels Amount of padding in pixels 308 public void setSwitchPadding(int pixels) { argument 309 mSwitchPadding = pixels; 316 * @return Amount of padding in pixels 325 * Set the minimum width of the switch in pixels. The switch's width will be the maximum 328 * @param pixels Minimum width of the switch in pixels 332 public void setSwitchMinWidth(int pixels) { argument 333 mSwitchMinWidth = pixels; 356 setThumbTextPadding(int pixels) argument [all...] |
H A D | TextView.java | 1433 * @return the height of one standard line in pixels. Note that markup 2363 * @return the size (in pixels) of the default text size in this TextView. 2934 * height was set in pixels instead using {@link #setMinHeight(int) or #setHeight(int)}. 2945 * Makes the TextView at least this many pixels tall. 2961 * @return the minimum height of this TextView expressed in pixels, or -1 if the minimum 2990 * height was set in pixels instead using {@link #setMaxHeight(int) or #setHeight(int)}. 3001 * Makes the TextView at most this many pixels tall. This option is mutually exclusive with the 3018 * @return the maximum height of this TextView expressed in pixels, or -1 if the maximum 3047 * Makes the TextView exactly this many pixels tall. 3057 public void setHeight(int pixels) { argument 3205 setWidth(int pixels) argument [all...] |
/frameworks/av/services/camera/tests/CameraServiceTest/ |
H A D | CameraServiceTest.cpp | 774 int pixels = w * h; local 786 //cc->assertDataSize(CAMERA_MSG_RAW_IMAGE, MCameraClient::EQ, pixels*3/2); 789 int(pixels * rate));
|
/frameworks/base/core/jni/ |
H A D | android_view_Surface.cpp | 491 ScreenshotPixelRef* pixels = new ScreenshotPixelRef(NULL); local 492 if (pixels->update(displayToken, width, height, 494 delete pixels; 498 uint32_t w = pixels->getWidth(); 499 uint32_t h = pixels->getHeight(); 500 uint32_t s = pixels->getStride(); 501 uint32_t f = pixels->getFormat(); 511 bitmap->setPixelRef(pixels)->unref(); 515 delete pixels;
|
H A D | android_opengl_GLES10.cpp | 3214 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */ 3221 GLvoid *pixels = (GLvoid *) 0; local 3223 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining, &_bufferOffset); 3224 if (pixels == NULL) { 3226 pixels = (GLvoid *) (_pixelsBase + _bufferOffset); 3235 (GLvoid *)pixels 3238 releasePointer(_env, _array, pixels, JNI_TRUE); 3670 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */ 3677 GLvoid *pixels = (GLvoid *) 0; local 3680 pixels 3731 GLvoid *pixels = (GLvoid *) 0; local [all...] |
H A D | android_opengl_GLES20.cpp | 4280 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */ 4287 GLvoid *pixels = (GLvoid *) 0; local 4289 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining, &_bufferOffset); 4290 if (pixels == NULL) { 4292 pixels = (GLvoid *) (_pixelsBase + _bufferOffset); 4301 (GLvoid *)pixels 4304 releasePointer(_env, _array, pixels, JNI_TRUE); 4527 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */ 4534 GLvoid *pixels = (GLvoid *) 0; local 4537 pixels 4764 GLvoid *pixels = (GLvoid *) 0; local [all...] |
H A D | com_google_android_gles_jni_GLImpl.cpp | 3342 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */ 3349 GLvoid *pixels = (GLvoid *) 0; local 3351 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining, &_bufferOffset); 3352 if (pixels == NULL) { 3354 pixels = (GLvoid *) (_pixelsBase + _bufferOffset); 3363 (GLvoid *)pixels 3366 releasePointer(_env, _array, pixels, JNI_TRUE); 3798 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */ 3805 GLvoid *pixels = (GLvoid *) 0; local 3808 pixels 3859 GLvoid *pixels = (GLvoid *) 0; local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 218 * to try to access its pixels, and the bitmap will not draw. 279 * how pixels are stored. This affects the quality (color depth) as 354 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the 356 * hold all of the pixels (taking into account the number of bytes per 360 * that if this bitmap stores its pixels pre-multiplied 381 throw new RuntimeException("Buffer not large enough for pixels"); 393 * <p>Copy the pixels from the buffer, beginning at the current position, 394 * overwriting the bitmap's pixels. The data in the buffer is not changed 417 throw new RuntimeException("Buffer not large enough for pixels"); 431 * this bitmap's pixels int 1134 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1174 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument 1248 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1411 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument [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/core/jni/android/opengl/ |
H A D | util.cpp | 680 void* const pixels = (char*)data + palette_size; local 683 memcpy(pixels, p, size); 819 * Encode a block of pixels. 822 * 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R 852 * Decode a block of pixels. 857 * 4 x 4 square of 3-byte pixels in form R, G, B. Byte (3 * (x + 4 * y) is the R
|
/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/support/renderscript/v8/jni/ |
H A D | android_renderscript_RenderScript.cpp | 354 void *pixels = NULL; local 355 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); 358 if (pixels != NULL) { 360 (RsAllocationMipmapControl)mip, pixels, 370 void *pixels = NULL; local 371 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); 374 if (pixels != NULL) { 377 pixels, GetBitmapSize(_env, jbitmap), usage); 390 void *pixels = NULL; local 391 AndroidBitmap_lockPixels(_env, jbitmap, &pixels); 408 void *pixels = NULL; local [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLErrorWrapper.java | 664 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 D | GLLogWrapper.java | 2252 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/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_api.cpp | 3575 void GLTrace_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) { argument 3617 // copy argument pixels 3621 arg_pixels->add_intvalue((int)pixels); 3626 glContext->hooks->gl.glReadPixels(x, y, width, height, format, type, pixels); 3631 (void *) pixels, 4124 void GLTrace_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) { argument 4178 // copy argument pixels 4182 arg_pixels->add_intvalue((int)pixels); 4187 glContext->hooks->gl.glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels); 4192 (void *) pixels, 4363 GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) argument 6021 GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels) argument 6104 GLTrace_glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels) argument [all...] |