Home
last modified time | relevance | path

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

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