Searched refs:pixels (Results 1 - 25 of 48) sorted by relevance

12

/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/media/mca/filterfw/native/core/
H A Dgl_frame.h66 // 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 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/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java89 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/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DIconLoader.java240 int[] pixels = new int[numOfPixels];
251 pixels[pixelIndex++] = bitToBnW((currentByte >> bitIndex-- ) & 0x01);
257 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
297 int[] pixels = new int[numOfPixels];
314 pixels[pixelIndex++] = Color.rgb(clut[clutIndex],
319 return Bitmap.createBitmap(pixels, width, height,
/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/libs/hwui/
H A DGradientCache.cpp245 uint8_t pixels[rowBytes * texture->height]; local
269 uint8_t* dst = pixels;
286 memcpy(pixels + rowBytes, pixels, rowBytes);
295 GL_RGBA, GL_FLOAT, pixels);
298 GL_RGBA, GL_UNSIGNED_BYTE, pixels);
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp46 uint32_t* pixels; member in union:Buffer::__anon1178
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/core/jni/
H A Dandroid_view_SurfaceControl.cpp172 ScreenshotPixelRef* pixels = new ScreenshotPixelRef(NULL); local
173 if (pixels->update(displayToken, width, height,
175 delete pixels;
179 uint32_t w = pixels->getWidth();
180 uint32_t h = pixels->getHeight();
181 uint32_t s = pixels->getStride();
182 uint32_t f = pixels->getFormat();
192 bitmap->setPixelRef(pixels)->unref();
196 delete pixels;
H A Dandroid_opengl_GLES10.cpp2503 /* void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) */
2510 GLvoid *pixels = (GLvoid *) 0; local
2512 pixels = (GLvoid *)getPointer(_env, pixels_buf, &_array, &_remaining, &_bufferOffset);
2513 if (pixels == NULL) {
2515 pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
2524 (GLvoid *)pixels
2527 releasePointer(_env, _array, pixels, JNI_TRUE);
2915 /* void glTexImage2D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) */
2922 GLvoid *pixels = (GLvoid *) 0; local
2925 pixels
2976 GLvoid *pixels = (GLvoid *) 0; local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java219 * to try to access its pixels, and the bitmap will not draw.
280 * how pixels are stored. This affects the quality (color depth) as
355 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the
357 * hold all of the pixels (taking into account the number of bytes per
361 * that if this bitmap stores its pixels pre-multiplied
385 throw new RuntimeException("Buffer not large enough for pixels");
397 * <p>Copy the pixels from the buffer, beginning at the current position,
398 * overwriting the bitmap's pixels. The data in the buffer is not changed
425 throw new RuntimeException("Buffer not large enough for pixels");
439 * this bitmap's pixels int
1142 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1182 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1256 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1419 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp358 void *pixels = NULL; local
359 AndroidBitmap_lockPixels(_env, jbitmap, &pixels);
361 if (pixels != NULL) {
364 pixels, GetBitmapSize(_env, jbitmap), usage);
374 void *pixels = NULL; local
375 AndroidBitmap_lockPixels(_env, jbitmap, &pixels);
377 if (pixels != NULL) {
380 (uint32_t)usage, (uintptr_t)pixels);
389 void *pixels = NULL; local
390 AndroidBitmap_lockPixels(_env, jbitmap, &pixels);
409 void *pixels = NULL; local
427 void *pixels = NULL; local
[all...]
/frameworks/base/core/java/android/widget/
H A DSpinner.java258 * Set a vertical offset in pixels for the spinner's popup window of choices.
261 * @param pixels Vertical offset in pixels
265 public void setDropDownVerticalOffset(int pixels) { argument
266 mPopup.setVerticalOffset(pixels);
270 * Get the configured vertical offset in pixels for the spinner's popup window of choices.
273 * @return Vertical offset in pixels
282 * Set a horizontal offset in pixels for the spinner's popup window of choices.
285 * @param pixels Horizontal offset in pixels
289 setDropDownHorizontalOffset(int pixels) argument
318 setDropDownWidth(int pixels) argument
[all...]
H A DSwitch.java304 * @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...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccUtils.java395 int[] pixels = new int[numOfPixels];
406 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01);
412 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java395 int[] pixels = new int[numOfPixels];
406 pixels[pixelIndex++] = bitToRGB((currentByte >> bitIndex-- ) & 0x01);
412 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
/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...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DAutoFixFilter.java279 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 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/tritex/
H A Dtritex.cpp209 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 DhwcCommit.cpp818 // 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 Dgl_basic.cpp316 const unsigned int pixels[] =
330 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/tools/glgen/specs/gles11/
H A DGLES10.spec82 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 DGLES20.spec94 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 )

Completed in 860 milliseconds

12