Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/
DPixelFormat.java99 info.bytesPerPixel = 4; in getPixelFormatInfo()
103 info.bytesPerPixel = 3; in getPixelFormatInfo()
110 info.bytesPerPixel = 2; in getPixelFormatInfo()
116 info.bytesPerPixel = 1; in getPixelFormatInfo()
121 info.bytesPerPixel = 1; in getPixelFormatInfo()
125 info.bytesPerPixel = 1; in getPixelFormatInfo()
146 public int bytesPerPixel; field in PixelFormat
/frameworks/av/media/ndk/
DNdkImage.cpp354 int bytesPerPixel = 0; in getPlaneData() local
405 bytesPerPixel = 2; in getPlaneData()
408 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; in getPlaneData()
422 bytesPerPixel = 2; in getPlaneData()
424 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; in getPlaneData()
474 bytesPerPixel = 4; in getPlaneData()
476 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; in getPlaneData()
480 bytesPerPixel = 2; in getPlaneData()
482 dataSize = mBuffer->stride * mBuffer->height * bytesPerPixel; in getPlaneData()
486 bytesPerPixel = 3; in getPlaneData()
[all …]
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp662 int bytesPerPixel = 0; in getLockedImageInfo() local
739 bytesPerPixel = 2; in getLockedImageInfo()
744 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
745 pStride = bytesPerPixel; in getLockedImageInfo()
768 bytesPerPixel = 2; in getLockedImageInfo()
771 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
772 pStride = bytesPerPixel; in getLockedImageInfo()
818 bytesPerPixel = 4; in getLockedImageInfo()
821 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
822 pStride = bytesPerPixel; in getLockedImageInfo()
[all …]
/frameworks/base/libs/hwui/
DGradientCache.cpp157 const uint32_t size = info.width * 2 * bytesPerPixel(); in addLinearGradient()
171 size, texture->objectSize(), info.width, bytesPerPixel()); in addLinearGradient()
177 size_t GradientCache::bytesPerPixel() const { in bytesPerPixel() function in android::uirenderer::GradientCache
224 const GLsizei rowBytes = width * bytesPerPixel(); in generateTexture()
DTexture.cpp29 static int bytesPerPixel(GLint glFormat) { in bytesPerPixel() function
93 notifySizeChanged(mWidth * mHeight * bytesPerPixel(mFormat)); in updateSize()
170 uploadToTexture(resize, format, type, bitmap.rowBytesAsPixels(), bitmap.bytesPerPixel(), in uploadSkBitmapToTexture()
DGradientCache.h152 size_t bytesPerPixel() const;
DReadback.cpp91 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel()); in copySurfaceInto()
DLayerRenderer.cpp414 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel()); in copyLayer()
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp204 const int bytesPerPixel = 4; in checkPixel() local
206 bPtr += (y * buf.stride + x) * bytesPerPixel; in checkPixel()
258 const int bytesPerPixel = 4; in fillRgba8888Buffer() local
270 buf[(y*stride + x)*bytesPerPixel + 0] = r; in fillRgba8888Buffer()
271 buf[(y*stride + x)*bytesPerPixel + 1] = g; in fillRgba8888Buffer()
272 buf[(y*stride + x)*bytesPerPixel + 2] = b; in fillRgba8888Buffer()
273 buf[(y*stride + x)*bytesPerPixel + 3] = 255; in fillRgba8888Buffer()
/frameworks/base/cmds/screencap/
Dscreencap.cpp180 SkAutoTUnref<SkData> data(SkImageEncoder::EncodeData(info, base, s*bytesPerPixel(f), in main()
192 size_t Bpp = bytesPerPixel(f); in main()
/frameworks/native/libs/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
DGraphicBufferAllocator.cpp122 uint32_t bpp = bytesPerPixel(format); in alloc()
/frameworks/native/include/ui/
DPixelFormat.h67 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/base/services/core/jni/
Dcom_android_server_AssetAtlasService.cpp161 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap.bytesPerPixel()); in com_android_server_AssetAtlasService_upload()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp155 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format); in android_view_TextureView_lockCanvas()
Dandroid_view_GraphicBuffer.cpp180 ssize_t bytesCount = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in android_view_GraphicBuffer_lockCanvas()
Dandroid_hardware_camera2_DngCreator.cpp2167 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteImage() local
2170 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteImage()
2171 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteImage()
2273 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteInputStream() local
2276 width, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteInputStream()
2277 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteInputStream()
Dandroid_view_Surface.cpp328 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas()
Dcom_google_android_gles_jni_EGLImpl.cpp295 pixmap.stride = nativeBitmap.rowBytes() / nativeBitmap.bytesPerPixel(); in jni_eglCreatePixmapSurface()
Dandroid_view_SurfaceControl.cpp181 screenshot->getStride() * android::bytesPerPixel(screenshot->getFormat()); in nativeScreenshotBitmap()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp147 const int bytesPerPixel = SkColorTypeBytesPerPixel( in allocPixelRef() local
149 const int requestedSize = bytesPerPixel * in allocPixelRef()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java861 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
863 if (pixelStride == bytesPerPixel) { in getDataFromImage()
865 length = w * bytesPerPixel; in getDataFromImage()
872 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
/frameworks/base/libs/input/
DSpriteController.cpp212 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in doUpdateSprites()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp895 return mBuffer.stride * mBuffer.height * bytesPerPixel(mBuffer.format); in getSize()
DSurface.cpp1123 const size_t bpp = bytesPerPixel(src->format); in copyBlt()

12