/frameworks/base/core/jni/ |
android_graphics_PixelFormat.cpp | 34 jfieldID bytesPerPixel; 53 info.bytesPerPixel = 1; 58 info.bytesPerPixel = 1; 63 info.bytesPerPixel = 1; 75 env->SetIntField(pixelFormatObject, offsets.bytesPerPixel, info.bytesPerPixel); 94 offsets.bytesPerPixel = env->GetFieldID(clazz, "bytesPerPixel", "I");
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PixelFormatTest.java | 58 assertEquals(4, mPixelFormat.bytesPerPixel); 62 assertEquals(4, mPixelFormat.bytesPerPixel); 66 assertEquals(3, mPixelFormat.bytesPerPixel); 70 assertEquals(2, mPixelFormat.bytesPerPixel); 74 assertEquals(2, mPixelFormat.bytesPerPixel); 78 assertEquals(2, mPixelFormat.bytesPerPixel); 82 assertEquals(1, mPixelFormat.bytesPerPixel); 86 assertEquals(1, mPixelFormat.bytesPerPixel); 90 assertEquals(2, mPixelFormat.bytesPerPixel); 94 assertEquals(1, mPixelFormat.bytesPerPixel); [all...] |
/external/webkit/Source/WebCore/platform/image-decoders/webp/ |
WEBPImageDecoder.cpp | 80 static const int bytesPerPixel = 3; 99 int stride = width * bytesPerPixel; 136 buffer.setRGBA(x, y, src[bytesPerPixel * x + 0], src[bytesPerPixel * x + 1], src[bytesPerPixel * x + 2], 0xff);
|
/frameworks/base/libs/ui/ |
PixelFormat.cpp | 32 size = width * bytesPerPixel; 37 ssize_t bytesPerPixel(PixelFormat format) 41 return (err < 0) ? err : info.bytesPerPixel; 71 info->bytesPerPixel = 1; 102 info->bytesPerPixel = i->size;
|
GraphicBufferAllocator.cpp | 110 int bpp = bytesPerPixel(format);
|
/frameworks/base/opengl/libagl2/src/ |
texture.cpp | 86 static inline void GetFormatAndBytesPerPixel(const GLenum format, unsigned * bytesPerPixel, 92 *bytesPerPixel = 1; 96 *bytesPerPixel = 1; 100 *bytesPerPixel = 2; 104 *bytesPerPixel = 3; 108 *bytesPerPixel = 4; 114 *bytesPerPixel = 2; 123 static inline void CopyTexture(char * dst, const char * src, const unsigned bytesPerPixel, 128 const unsigned bpp = bytesPerPixel; 207 unsigned bytesPerPixel = 0 [all...] |
/frameworks/base/graphics/java/android/graphics/ |
PixelFormat.java | 100 public int bytesPerPixel;
|
/frameworks/base/include/ui/ |
PixelFormat.h | 109 size_t bytesPerPixel; 131 ssize_t bytesPerPixel(PixelFormat format);
|
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/ |
SDL_riscossprite.c | 50 int bytesPerPixel; 56 case 32: bytesPerPixel = 4; break; 57 case 16: bytesPerPixel = 2; break; 59 bytesPerPixel = 1; 67 bytesPerRow = bytesPerPixel * width;
|
SDL_wimpvideo.c | 89 int bytesPerPixel = 1; 107 bytesPerPixel = 2; 114 bytesPerPixel = 4; 152 current->pitch = width * bytesPerPixel; 459 SDL_memcpy(data, this->hidden->bank[0], width * height * this->screen->format->BytesPerPixel);
|
/external/skia/gpu/src/ |
GrTextStrike.cpp | 186 int bytesPerPixel = GrMaskFormatBytesPerPixel(fMaskFormat); 187 size_t size = glyph->fBounds.area() * bytesPerPixel; 191 glyph->width() * bytesPerPixel,
|
/external/webkit/Source/WebCore/platform/image-decoders/bmp/ |
BMPImageReader.h | 195 inline uint32_t readCurrentPixel(int bytesPerPixel) const 197 const int offset = m_coord.x() * bytesPerPixel; 198 switch (bytesPerPixel) {
|
BMPImageReader.cpp | 647 const size_t bytesPerPixel = m_infoHeader.biBitCount / 8; 648 const size_t unpaddedNumBytes = (m_infoHeader.biBitCount < 16) ? ((numPixels + pixelsPerByte - 1) / pixelsPerByte) : (numPixels * bytesPerPixel); 692 const uint32_t pixel = readCurrentPixel(bytesPerPixel);
|
/external/skia/tests/ |
DrawBitmapRectTest.cpp | 8 size_t count = bm.width() * bm.bytesPerPixel();
|
/frameworks/base/services/surfaceflinger/tests/resize/ |
resize.cpp | 52 ssize_t bpr = info.s * bytesPerPixel(info.format);
|
/external/skia/src/images/ |
SkImageRefPool.cpp | 28 ref->fBitmap.bytesPerPixel(), 64 ref->fBitmap.bytesPerPixel(),
|
/prebuilt/linux-x86/toolchain/i686-unknown-linux-gnu-4.2.1/lib/gcc/i686-unknown-linux-gnu/4.2.1/include/xorg/ |
servermd.h | 562 int bytesPerPixel; /* only set when notPower2 is TRUE */ 572 (((int)(w) * PixmapWidthPaddingInfo[d].bytesPerPixel + \ 573 PixmapWidthPaddingInfo[d].bytesPerPixel) >> \
|
/external/skia/src/utils/mac/ |
SkCreateCGImageRef.cpp | 99 bitmap->bytesPerPixel() * 8,
|
/hardware/ti/omap4xxx/camera/ |
ANativeWindowDisplayAdapter.cpp | 1063 uint8_t bytesPerPixel; 1067 bytesPerPixel = 2; 1071 bytesPerPixel = 2; 1075 bytesPerPixel = 1; 1079 bytesPerPixel = 1; 1083 xOff/bytesPerPixel, yOff , (xOff/bytesPerPixel)+mPreviewWidth, yOff+mPreviewHeight); 1086 mANativeWindow->set_crop(mANativeWindow, xOff/bytesPerPixel, yOff, 1087 (xOff/bytesPerPixel)+mPreviewWidth, yOff+mPreviewHeight); [all...] |
AppCallbackNotifier.cpp | 439 unsigned int bytesPerPixel, 455 bytesPerPixel = 2; 458 bytesPerPixel = 1; 460 bufferDstEnd = ( unsigned char * ) dst + width*height*bytesPerPixel; 463 row = width*bytesPerPixel; 589 bytesPerPixel = 2; 595 row = width*bytesPerPixel; [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/wscons/ |
SDL_wsconsvideo.c | 324 vformat->BytesPerPixel = private->info.depth / 8; 464 int bytesPerPixel = (private->info.depth + 7) / 8; 558 src_start = private->shadowmem + (sha_y1 * width + sha_x1) * bytesPerPixel; 560 scr_x1 * bytesPerPixel;
|
/external/webkit/Source/WebKit/android/plugins/ |
ANPSurfaceInterface.cpp | 131 ssize_t bpr = info.s * bytesPerPixel(info.format);
|
/frameworks/base/libs/hwui/ |
GradientCache.cpp | 168 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap->bytesPerPixel());
|
/external/skia/src/utils/unix/ |
SkOSWindow_Unix.cpp | 238 int bitsPerPixel = bitmap.bytesPerPixel() * 8; 248 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * bitmap.bytesPerPixel();
|
/external/webkit/Source/WebCore/platform/graphics/ |
GraphicsContext3D.cpp | 304 unsigned int bytesPerPixel = componentsPerPixel * bytesPerComponent; 305 data.resize(width * height * bytesPerPixel); 316 flipVertically(data.data(), width, height, bytesPerPixel, 1); 323 unsigned int bytesPerPixel, 328 unsigned int validRowBytes = width * bytesPerPixel; [all...] |