/frameworks/base/graphics/java/android/graphics/ |
H A D | PixelFormat.java | 89 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 D | PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) { function in namespace:android
|
H A D | GraphicBufferAllocator.cpp | 122 uint32_t bpp = bytesPerPixel(format);
|
/frameworks/native/include/ui/ |
H A D | PixelFormat.h | 67 uint32_t bytesPerPixel(PixelFormat format);
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 836 int bytesPerPixel = 0; local 913 bytesPerPixel = 2; 918 dataSize = buffer->stride * buffer->height * bytesPerPixel; 919 pStride = bytesPerPixel; 929 pStride = bytesPerPixel; 934 bytesPerPixel = 2; 937 dataSize = buffer->stride * buffer->height * bytesPerPixel; 938 pStride = bytesPerPixel; 959 bytesPerPixel = 4; 962 dataSize = buffer->stride * buffer->height * bytesPerPixel; [all...] |
H A D | android_media_ImageReader.cpp | 396 int bytesPerPixel = 0; local 463 bytesPerPixel = 2; 468 dataSize = buffer->stride * buffer->height * bytesPerPixel; 480 bytesPerPixel = 2; 483 dataSize = buffer->stride * buffer->height * bytesPerPixel; 514 bytesPerPixel = 4; 517 dataSize = buffer->stride * buffer->height * bytesPerPixel; 521 bytesPerPixel = 2; 524 dataSize = buffer->stride * buffer->height * bytesPerPixel; 528 bytesPerPixel [all...] |
/frameworks/native/services/surfaceflinger/tests/resize/ |
H A D | resize.cpp | 52 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 113 const uint32_t size = texture->width * texture->height * bytesPerPixel(); 176 const uint32_t size = texture->width * texture->height * bytesPerPixel(); 189 size_t GradientCache::bytesPerPixel() const { function in class:android::uirenderer::GradientCache 236 const GLsizei rowBytes = width * bytesPerPixel();
|
H A D | TextureCache.cpp | 287 uploadToTexture(resize, GL_ALPHA, bitmap->rowBytesAsPixels(), bitmap->bytesPerPixel(), 292 uploadToTexture(resize, GL_RGB, bitmap->rowBytesAsPixels(), bitmap->bytesPerPixel(), 297 uploadToTexture(resize, GL_RGBA, bitmap->rowBytesAsPixels(), bitmap->bytesPerPixel(), 335 uploadToTexture(resize, GL_RGBA, rgbaBitmap.rowBytesAsPixels(), rgbaBitmap.bytesPerPixel(),
|
H A D | GradientCache.h | 156 size_t bytesPerPixel() const;
|
H A D | LayerRenderer.cpp | 415 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
|
/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 226 SkAutoTUnref<SkData> data(SkImageEncoder::EncodeData(info, base, s*bytesPerPixel(f), 238 size_t Bpp = bytesPerPixel(f);
|
/frameworks/native/libs/gui/tests/ |
H A D | CpuConsumer_test.cpp | 204 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/services/core/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 161 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap.bytesPerPixel());
|
/frameworks/base/core/jni/ |
H A D | android_view_GraphicBuffer.cpp | 180 ssize_t bytesCount = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat());
|
H A D | android_view_TextureView.cpp | 159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
|
H A D | android_hardware_camera2_DngCreator.cpp | 2148 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; local 2151 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, 2152 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, 2254 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; local 2257 width, context->getThumbnailHeight(), bytesPerPixel, 2258 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE,
|
H A D | android_view_Surface.cpp | 324 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
|
H A D | android_view_SurfaceControl.cpp | 174 screenshot->getStride() * android::bytesPerPixel(screenshot->getFormat());
|
H A D | com_google_android_gles_jni_EGLImpl.cpp | 295 pixmap.stride = nativeBitmap.rowBytes() / nativeBitmap.bytesPerPixel();
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 140 const int bytesPerPixel = SkColorTypeBytesPerPixel( local 142 const int requestedSize = bytesPerPixel *
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | SceneManager.java | 87 final int bytesPerPixel = 4; 88 int arraySize = dimension * dimension * bytesPerPixel;
|
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 212 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
|
/frameworks/native/libs/gui/ |
H A D | Surface.cpp | 956 const size_t bpp = bytesPerPixel(src->format);
|
H A D | SurfaceComposerClient.cpp | 794 return mBuffer.stride * mBuffer.height * bytesPerPixel(mBuffer.format);
|