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

/frameworks/base/graphics/java/android/graphics/
H A DPixelFormat.java100 public int bytesPerPixel; field in class:PixelFormat
109 info.bytesPerPixel = 4;
113 info.bytesPerPixel = 3;
120 info.bytesPerPixel = 2;
126 info.bytesPerPixel = 1;
131 info.bytesPerPixel = 1;
135 info.bytesPerPixel = 1;
139 info.bytesPerPixel = 8;
/frameworks/native/libs/ui/
H A DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { function in namespace:android
H A DGraphicBufferAllocator.cpp122 uint32_t bpp = bytesPerPixel(format);
/frameworks/native/include/ui/
H A DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/ui/include/ui/
H A DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/ui/include_vndk/ui/
H A DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/av/media/ndk/
H A DNdkImage.cpp439 int bytesPerPixel = 0; local
498 bytesPerPixel = 2;
502 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
517 bytesPerPixel = 2;
520 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
571 bytesPerPixel = 4;
574 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
578 bytesPerPixel = 2;
581 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
585 bytesPerPixel
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp663 int bytesPerPixel = 0; local
740 bytesPerPixel = 2;
745 dataSize = buffer->stride * buffer->height * bytesPerPixel;
746 pStride = bytesPerPixel;
769 bytesPerPixel = 2;
772 dataSize = buffer->stride * buffer->height * bytesPerPixel;
773 pStride = bytesPerPixel;
819 bytesPerPixel = 4;
822 dataSize = buffer->stride * buffer->height * bytesPerPixel;
823 pStride = bytesPerPixel;
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DHwBitmapInCompositeShader.cpp44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight();
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp222 size = s * h * bytesPerPixel(f);
227 SkPixmap pixmap(info, base, s * bytesPerPixel(f));
248 size_t Bpp = bytesPerPixel(f);
/frameworks/base/libs/hwui/
H A DGradientCache.cpp157 const uint32_t size = info.width * 2 * bytesPerPixel();
171 " width = %" PRIu32 " bytesPerPixel() = %zu",
172 size, texture->objectSize(), info.width, bytesPerPixel());
178 size_t GradientCache::bytesPerPixel() const { function in class:android::uirenderer::GradientCache
H A DTexture.cpp33 static int bytesPerPixel(GLint glFormat) { function in namespace:android::uirenderer
106 notifySizeChanged(mWidth * mHeight * bytesPerPixel(internalFormat));
358 rgbaBitmap.bytesPerPixel(), rgbaBitmap.width(), rgbaBitmap.height(),
364 bitmap.info().bytesPerPixel(), bitmap.width(), bitmap.height(),
H A DGradientCache.h150 size_t bytesPerPixel() const;
H A DOpenGLReadback.cpp183 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp206 const int bytesPerPixel = 4; local
208 bPtr += (y * buf.stride + x) * bytesPerPixel;
260 const int bytesPerPixel = 4; local
272 buf[(y*stride + x)*bytesPerPixel + 0] = r;
273 buf[(y*stride + x)*bytesPerPixel + 1] = g;
274 buf[(y*stride + x)*bytesPerPixel + 2] = b;
275 buf[(y*stride + x)*bytesPerPixel + 3] = 255;
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp160 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
H A Dandroid_hardware_camera2_DngCreator.cpp2238 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; local
2241 thumbWidth, context->getThumbnailHeight(), bytesPerPixel,
2242 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE,
2344 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; local
2347 width, context->getThumbnailHeight(), bytesPerPixel,
2348 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE,
H A Dandroid_view_Surface.cpp339 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp107 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); local
108 const int requestedSize = bytesPerPixel *
H A DGraphicBuffer.cpp194 ssize_t bytesCount = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat());
H A DBitmap.cpp1498 const size_t size = bm0.width() * bm0.bytesPerPixel();
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp202 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride())
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java861 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 DSpriteController.cpp200 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
/frameworks/native/libs/gui/
H A DSurface.cpp1629 const size_t bpp = bytesPerPixel(src->format);

Completed in 418 milliseconds