/frameworks/base/graphics/java/android/graphics/ |
H A D | PixelFormat.java | 99 info.bytesPerPixel = 4; 103 info.bytesPerPixel = 3; 110 info.bytesPerPixel = 2; 116 info.bytesPerPixel = 1; 121 info.bytesPerPixel = 1; 125 info.bytesPerPixel = 1; 146 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/av/media/ndk/ |
H A D | NdkImage.cpp | 354 int bytesPerPixel = 0; local 405 bytesPerPixel = 2; 408 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; 422 bytesPerPixel = 2; 424 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; 474 bytesPerPixel = 4; 476 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; 480 bytesPerPixel = 2; 482 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; 486 bytesPerPixel [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_Utils.cpp | 662 int bytesPerPixel = 0; local 739 bytesPerPixel = 2; 744 dataSize = buffer->stride * buffer->height * bytesPerPixel; 745 pStride = bytesPerPixel; 768 bytesPerPixel = 2; 771 dataSize = buffer->stride * buffer->height * bytesPerPixel; 772 pStride = bytesPerPixel; 818 bytesPerPixel = 4; 821 dataSize = buffer->stride * buffer->height * bytesPerPixel; 822 pStride = bytesPerPixel; [all...] |
/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 180 SkAutoTUnref<SkData> data(SkImageEncoder::EncodeData(info, base, s*bytesPerPixel(f), 192 size_t Bpp = bytesPerPixel(f);
|
/frameworks/base/libs/hwui/ |
H A D | GradientCache.cpp | 157 const uint32_t size = info.width * 2 * bytesPerPixel(); 170 " width = %" PRIu32 " bytesPerPixel() = %zu", 171 size, texture->objectSize(), info.width, bytesPerPixel()); 177 size_t GradientCache::bytesPerPixel() const { function in class:android::uirenderer::GradientCache 224 const GLsizei rowBytes = width * bytesPerPixel();
|
H A D | Texture.cpp | 29 static int bytesPerPixel(GLint glFormat) { function in namespace:android::uirenderer 93 notifySizeChanged(mWidth * mHeight * bytesPerPixel(mFormat)); 170 uploadToTexture(resize, format, type, bitmap.rowBytesAsPixels(), bitmap.bytesPerPixel(),
|
H A D | GradientCache.h | 152 size_t bytesPerPixel() const;
|
H A D | Readback.cpp | 91 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
|
H A D | LayerRenderer.cpp | 414 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
|
/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 | 155 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
|
H A D | android_hardware_camera2_DngCreator.cpp | 2167 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; local 2170 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, 2171 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, 2273 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; local 2276 width, context->getThumbnailHeight(), bytesPerPixel, 2277 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE,
|
H A D | android_view_Surface.cpp | 328 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
|
H A D | android_view_SurfaceControl.cpp | 181 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 | 147 const int bytesPerPixel = SkColorTypeBytesPerPixel( local 149 const int requestedSize = bytesPerPixel *
|
H A D | Bitmap.cpp | 1336 const size_t size = bm0.width() * bm0.bytesPerPixel();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 861 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; 863 if (pixelStride == bytesPerPixel) { 865 length = w * bytesPerPixel; 872 length = (w - 1) * pixelStride + 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 | SurfaceComposerClient.cpp | 895 return mBuffer.stride * mBuffer.height * bytesPerPixel(mBuffer.format);
|