Searched refs:bytesPerPixel (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DPixelFormat.java89 info.bytesPerPixel = 4;
93 info.bytesPerPixel = 3;
100 info.bytesPerPixel = 2;
106 info.bytesPerPixel = 1;
111 info.bytesPerPixel = 1;
115 info.bytesPerPixel = 1;
136 public int bytesPerPixel; field in class:PixelFormat
/frameworks/native/libs/ui/
H A DPixelFormat.cpp24 ssize_t bytesPerPixel(PixelFormat format) { function in namespace:android
H A DGraphicBufferAllocator.cpp113 int bpp = bytesPerPixel(format);
/frameworks/native/include/ui/
H A DPixelFormat.h70 ssize_t bytesPerPixel(PixelFormat format);
/frameworks/native/services/surfaceflinger/tests/resize/
H A Dresize.cpp52 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp178 b.setConfig(flinger2skia(f), w, h, s*bytesPerPixel(f));
190 size_t Bpp = bytesPerPixel(f);
/frameworks/base/libs/hwui/
H A DGradientCache.cpp120 const uint32_t size = texture->width * texture->height * bytesPerPixel();
183 const uint32_t size = texture->width * texture->height * bytesPerPixel();
196 size_t GradientCache::bytesPerPixel() const { function in class:android::uirenderer::GradientCache
244 const GLsizei rowBytes = width * bytesPerPixel();
H A DTextureCache.cpp248 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap->bytesPerPixel());
254 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap->bytesPerPixel());
263 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap->bytesPerPixel());
H A DGradientCache.h163 size_t bytesPerPixel() const;
H A DLayerRenderer.cpp420 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp328 int bytesPerPixel = 0; local
412 bytesPerPixel = 4;
415 dataSize = buffer->stride * buffer->height * bytesPerPixel;
419 bytesPerPixel = 2;
422 dataSize = buffer->stride * buffer->height * bytesPerPixel;
426 bytesPerPixel = 3;
429 dataSize = buffer->stride * buffer->height * bytesPerPixel;
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp204 const int bytesPerPixel = 4; local
206 bPtr += (y * buf.stride + x) * bytesPerPixel;
258 const int bytesPerPixel = 4; local
270 buf[(y*stride + x)*bytesPerPixel + 0] = r;
271 buf[(y*stride + x)*bytesPerPixel + 1] = g;
272 buf[(y*stride + x)*bytesPerPixel + 2] = b;
273 buf[(y*stride + x)*bytesPerPixel + 3] = 255;
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp153 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
H A Dandroid_view_GraphicBuffer.cpp190 ssize_t bytesCount = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat());
H A Dandroid_view_Surface.cpp234 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
H A Dandroid_view_SurfaceControl.cpp181 ssize_t bpr = s * android::bytesPerPixel(f);
H A Dcom_google_android_gles_jni_EGLImpl.cpp294 pixmap.stride = nativeBitmap->rowBytes() / nativeBitmap->bytesPerPixel();
/frameworks/base/services/jni/
H A Dcom_android_server_AssetAtlasService.cpp203 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap->bytesPerPixel());
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp159 const int bytesPerPixel = SkBitmap::ComputeBytesPerPixel( local
161 const int requestedSize = bytesPerPixel *
H A DBitmap.cpp741 const size_t size = bm0->width() * bm0->bytesPerPixel();
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DSceneManager.java87 final int bytesPerPixel = 4;
88 int arraySize = dimension * dimension * bytesPerPixel;
/frameworks/base/services/input/
H A DSpriteController.cpp208 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
/frameworks/native/libs/gui/
H A DSurface.cpp686 const size_t bpp = bytesPerPixel(src->format);
H A DSurfaceComposerClient.cpp715 return mBuffer.stride * mBuffer.height * bytesPerPixel(mBuffer.format);

Completed in 5650 milliseconds