Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_graphics_PixelFormat.cpp34 jfieldID bytesPerPixel; member
53 info.bytesPerPixel = 1; in android_graphics_getPixelFormatInfo()
58 info.bytesPerPixel = 1; in android_graphics_getPixelFormatInfo()
63 info.bytesPerPixel = 1; in android_graphics_getPixelFormatInfo()
75 env->SetIntField(pixelFormatObject, offsets.bytesPerPixel, info.bytesPerPixel); in android_graphics_getPixelFormatInfo()
94 offsets.bytesPerPixel = env->GetFieldID(clazz, "bytesPerPixel", "I"); in nativeClassInit()
Dandroid_view_TextureView.cpp159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format); in android_view_TextureView_lockCanvas()
Dandroid_view_Surface.cpp242 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas()
Dandroid_view_SurfaceControl.cpp183 ssize_t bpr = s * android::bytesPerPixel(f); in nativeScreenshotBitmap()
Dcom_google_android_gles_jni_EGLImpl.cpp295 pixmap.stride = nativeBitmap->rowBytes() / nativeBitmap->bytesPerPixel(); in jni_eglCreatePixmapSurface()
/frameworks/native/libs/ui/
DPixelFormat.cpp73 size = width * bytesPerPixel; in getScanlineSize()
78 ssize_t bytesPerPixel(PixelFormat format) in bytesPerPixel() function
82 return (err < 0) ? err : info.bytesPerPixel; in bytesPerPixel()
112 info->bytesPerPixel = 1; in getPixelFormatInfo()
128 info->bytesPerPixel = i->size; in getPixelFormatInfo()
DGraphicBufferAllocator.cpp113 int bpp = bytesPerPixel(format); in alloc()
/frameworks/native/include/ui/
DPixelFormat.h100 size_t bytesPerPixel; member
122 ssize_t bytesPerPixel(PixelFormat format);
/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.cpp441 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel()); in copyLayer()
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp203 const int bytesPerPixel = 4; in checkPixel() local
205 bPtr += (y * buf.stride + x) * bytesPerPixel; in checkPixel()
257 const int bytesPerPixel = 4; in fillRgba8888Buffer() local
269 buf[(y*stride + x)*bytesPerPixel + 0] = r; in fillRgba8888Buffer()
270 buf[(y*stride + x)*bytesPerPixel + 1] = g; in fillRgba8888Buffer()
271 buf[(y*stride + x)*bytesPerPixel + 2] = b; in fillRgba8888Buffer()
272 buf[(y*stride + x)*bytesPerPixel + 3] = 255; in fillRgba8888Buffer()
/frameworks/base/graphics/java/android/graphics/
DPixelFormat.java104 public int bytesPerPixel; field in PixelFormat
/frameworks/base/cmds/screencap/
Dscreencap.cpp182 b.setConfig(flinger2skia(f), w, h, s*bytesPerPixel(f)); in main()
194 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/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/services/input/
DSpriteController.cpp208 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in doUpdateSprites()
/frameworks/native/libs/gui/
DSurface.cpp678 const size_t bpp = bytesPerPixel(src->format); in copyBlt()
DSurfaceComposerClient.cpp706 return mBuffer.stride * mBuffer.height * bytesPerPixel(mBuffer.format); in getSize()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp644 const size_t size = bm0->width() * bm0->bytesPerPixel(); in Bitmap_sameAs()
/frameworks/base/api/
Dcurrent.txt9327 field public int bytesPerPixel;