Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp113 int bpp = bytesPerPixel(format); in alloc() local
114 if (bpp < 0) { in alloc()
117 bpp = 0; in alloc()
125 rec.size = h * stride[0] * bpp; in alloc()
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DVideoDumpView.java487 int bpp[] = new int[3]; in onSurfaceChanged() local
488 GLES20.glGetIntegerv(GLES20.GL_RED_BITS, bpp, 0); in onSurfaceChanged()
489 GLES20.glGetIntegerv(GLES20.GL_GREEN_BITS, bpp, 1); in onSurfaceChanged()
490 GLES20.glGetIntegerv(GLES20.GL_BLUE_BITS, bpp, 2); in onSurfaceChanged()
491 Log.d(TAG, "rgb bits: " + bpp[0] + "-" + bpp[1] + "-" + bpp[2]); in onSurfaceChanged()
/frameworks/base/libs/hwui/
DTextureCache.cpp360 void TextureCache::uploadToTexture(bool resize, GLenum format, GLsizei stride, GLsizei bpp, in uploadToTexture() argument
381 GLvoid * temp = (GLvoid *) malloc(width * height * bpp); in uploadToTexture()
387 memcpy(pDst, pSrc, width * bpp); in uploadToTexture()
388 pDst += width * bpp; in uploadToTexture()
389 pSrc += stride * bpp; in uploadToTexture()
DTextureCache.h145 void uploadToTexture(bool resize, GLenum format, GLsizei stride, GLsizei bpp,
/frameworks/base/tools/aapt/
DImages.cpp849 int bpp; in dump_image() local
851 bpp = 1; in dump_image()
853 bpp = 2; in dump_image()
856 bpp = 4; in dump_image()
868 row += bpp; in dump_image()
873 switch (bpp) { in dump_image()
986 int bpp = isOpaque ? 3 : 4; in analyze_image() local
987 int paletteSize = w * h + bpp * num_colors; in analyze_image()
993 paletteSize, 2 * w * h, bpp * w * h)); in analyze_image()
1016 } else if (isPalette && (paletteSize < bpp * w * h)) { in analyze_image()
/frameworks/native/libs/gui/
DSurface.cpp762 const size_t bpp = bytesPerPixel(src->format); in copyBlt() local
763 const size_t dbpr = dst->stride * bpp; in copyBlt()
764 const size_t sbpr = src->stride * bpp; in copyBlt()
770 size_t size = r.width() * bpp; in copyBlt()
771 uint8_t const * s = src_bits + (r.left + src->stride * r.top) * bpp; in copyBlt()
772 uint8_t * d = dst_bits + (r.left + dst->stride * r.top) * bpp; in copyBlt()
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp225 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) { in fillGreyscaleBuffer() argument
230 ASSERT_TRUE(bpp == 8 || bpp == 16); in fillGreyscaleBuffer()
231 ASSERT_TRUE(sizeof(T)*8 == bpp); in fillGreyscaleBuffer()
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Drate_control.cpp172 double L1, L2, L3, bpp; in InitRateControlModule() local
247 bpp = 1.0 * rateCtrl->bitRate / (rateCtrl->frame_rate * (video->PicSizeInMbs << 8)); in InitRateControlModule()
269 if (bpp <= L1) in InitRateControlModule()
271 else if (bpp <= L2) in InitRateControlModule()
273 else if (bpp <= L3) in InitRateControlModule()
/frameworks/native/opengl/libagl/
Degl.cpp465 const size_t bpp = pixelFormatTable[src->format].size; in copyBlt() local
466 const size_t dbpr = dst->stride * bpp; in copyBlt()
467 const size_t sbpr = src->stride * bpp; in copyBlt()
477 size_t size = w * bpp; in copyBlt()
478 uint8_t const * s = src_bits + (r.left + src->stride * r.top) * bpp; in copyBlt()
479 uint8_t * d = dst_bits + (r.left + dst->stride * r.top) * bpp; in copyBlt()
/frameworks/base/core/java/android/widget/
DRemoteViews.java1620 int bpp = 4; in addBitmapMemory() local
1624 bpp = 1; in addBitmapMemory()
1628 bpp = 2; in addBitmapMemory()
1631 bpp = 4; in addBitmapMemory()
1635 increment(b.getWidth() * b.getHeight() * bpp); in addBitmapMemory()