Searched defs:bytesPerPixel (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_graphics_PixelFormat.cpp34 jfieldID bytesPerPixel; member in struct:android::offsets_t
53 info.bytesPerPixel = 1;
58 info.bytesPerPixel = 1;
63 info.bytesPerPixel = 1;
75 env->SetIntField(pixelFormatObject, offsets.bytesPerPixel, info.bytesPerPixel);
94 offsets.bytesPerPixel = env->GetFieldID(clazz, "bytesPerPixel", "I");
/frameworks/base/graphics/java/android/graphics/
H A DPixelFormat.java104 public int bytesPerPixel; field in class:PixelFormat
/frameworks/native/libs/ui/
H A DPixelFormat.cpp73 size = width * bytesPerPixel;
78 ssize_t bytesPerPixel(PixelFormat format) function in namespace:android
82 return (err < 0) ? err : info.bytesPerPixel;
112 info->bytesPerPixel = 1;
128 info->bytesPerPixel = i->size;
/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();
/frameworks/native/include/ui/
H A DPixelFormat.h100 size_t bytesPerPixel; member in struct:android::PixelFormatInfo
122 ssize_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp203 const int bytesPerPixel = 4; local
205 bPtr += (y * buf.stride + x) * bytesPerPixel;
257 const int bytesPerPixel = 4; local
269 buf[(y*stride + x)*bytesPerPixel + 0] = r;
270 buf[(y*stride + x)*bytesPerPixel + 1] = g;
271 buf[(y*stride + x)*bytesPerPixel + 2] = b;
272 buf[(y*stride + x)*bytesPerPixel + 3] = 255;

Completed in 204 milliseconds