/frameworks/native/libs/ui/ |
PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) {
|
/external/libvncserver/libvncclient/ |
cursor.c | 48 int bytesPerPixel; 56 bytesPerPixel = client->format.bitsPerPixel / 8; 67 client->rcSource = malloc(width * height * bytesPerPixel); 105 ptr += bytesPerPixel; 110 ptr += bytesPerPixel; 115 switch (bytesPerPixel) { 132 if (!ReadFromRFBServer(client, (char *)client->rcSource, width * height * bytesPerPixel)) { 171 client->GotCursorShape(client, xhot, yhot, width, height, bytesPerPixel);
|
/external/libvncserver/examples/ |
pnmshow.c | 23 int bytesPerPixel,bitsPerPixelInFile; 36 bytesPerPixel=4; bitsPerPixelInFile=3*8; 39 bytesPerPixel=1; bitsPerPixelInFile=1*8; 42 bytesPerPixel=1; bitsPerPixelInFile=1; 67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel); 81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height);
|
/hardware/qcom/display/msm8996/libgralloc1/ |
gr_adreno_info.cpp | 135 int bytesPerPixel = 0; 142 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel);
|
/hardware/qcom/display/msm8998/libgralloc1/ |
gr_adreno_info.cpp | 134 int bytesPerPixel = 0; 141 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel);
|
/hardware/qcom/display/sdm845/libgralloc1/ |
gr_adreno_info.cpp | 164 int bytesPerPixel = 0; 171 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel);
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
Util.java | 94 int bytesPerPixel; 97 bytesPerPixel = 1; 101 bytesPerPixel = 2; 105 bytesPerPixel = 4; 107 return bytesPerPixel;
|
/external/mesa3d/src/gallium/targets/haiku-softpipe/ |
SoftwareRenderer.cpp | 177 uint8 bytesPerPixel = bytesPerRow / fBitmap->Bounds().IntegerWidth(); 183 = (clip->right - clip->left + 1) * bytesPerPixel; 184 bytesWidth -= bytesPerPixel; 186 * fInfo->bytes_per_row + clip->left * bytesPerPixel; 189 + (clip->left - fInfo->window_bounds.left) * bytesPerPixel;
|
/external/skia/src/codec/ |
SkCodecPriv.h | 158 static inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) { 159 return width * bytesPerPixel; 172 const uint32_t bytesPerPixel = bitsPerPixel / 8; 173 return compute_row_bytes_bpp(width, bytesPerPixel);
|
/frameworks/base/graphics/java/android/graphics/ |
PixelFormat.java | 100 public int bytesPerPixel; 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/base/libs/hwui/ |
Texture.cpp | 33 static int bytesPerPixel(GLint glFormat) { 109 notifySizeChanged(mWidth * mHeight * bytesPerPixel(internalFormat)); 363 rgbaBitmap.bytesPerPixel(), rgbaBitmap.width(), 369 bitmap.info().bytesPerPixel(), bitmap.width(), bitmap.height(), bitmap.pixels());
|
GradientCache.cpp | 159 const uint32_t size = info.width * 2 * bytesPerPixel(); 172 " width = %" PRIu32 " bytesPerPixel() = %zu", 173 size, texture->objectSize(), info.width, bytesPerPixel()); 179 size_t GradientCache::bytesPerPixel() const {
|
/hardware/libhardware/modules/gralloc/ |
gralloc.cpp | 210 int bytesPerPixel = 0; 213 bytesPerPixel = 8; 218 bytesPerPixel = 4; 221 bytesPerPixel = 3; 225 bytesPerPixel = 2; 235 size_t size = align(height, tileHeight) * stride * bytesPerPixel + 4;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
ItsUtils.java | 231 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; 234 "rowStride %d, pixStride %d, bytesPerPixel %d", 235 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); 240 if (pixelStride == bytesPerPixel) { 242 int length = w * bytesPerPixel;
|
/external/libvncserver/libvncserver/ |
scale.c | 144 int bitsPerPixel, bytesPerPixel, bytesPerLine, areaX, areaY, area2; 162 bytesPerPixel = bitsPerPixel / 8; 163 bytesPerLine = w1 * bytesPerPixel; 165 (y0 * screen->paddedWidthInBytes + x0 * bytesPerPixel)); 167 ( y1 * ptr->paddedWidthInBytes + x1 * bytesPerPixel)); 206 srcptr2 = &srcptr[(((x * areaX) + w) * bytesPerPixel) + 211 switch (bytesPerPixel) { 217 for (z = 0; z < bytesPerPixel; z++) 222 srcptr2 += bytesPerPixel; 238 switch (bytesPerPixel) { [all...] |
/frameworks/av/media/ndk/ |
NdkImage.cpp | 440 int bytesPerPixel = 0; 499 bytesPerPixel = 2; 503 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; 518 bytesPerPixel = 2; 521 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; 572 bytesPerPixel = 4; 575 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; 579 bytesPerPixel = 2; 582 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; 586 bytesPerPixel = 3 [all...] |
/hardware/qcom/display/msm8084/libgralloc/ |
alloc_controller.cpp | 246 int bytesPerPixel = 0; 253 &aligned_w, &aligned_h, &bytesPerPixel);
|
/hardware/qcom/display/msm8226/libgralloc/ |
alloc_controller.cpp | 240 int bytesPerPixel = 0; 247 &aligned_w, &aligned_h, &bytesPerPixel);
|
/hardware/qcom/display/msm8909/libgralloc/ |
alloc_controller.cpp | 248 int bytesPerPixel = 0; 255 &aligned_w, &aligned_h, &bytesPerPixel);
|
/hardware/qcom/display/msm8994/libgralloc/ |
alloc_controller.cpp | 249 int bytesPerPixel = 0; 256 &aligned_w, &aligned_h, &bytesPerPixel);
|
/external/libvncserver/client_examples/ |
SDLvncviewer.c | 25 static int realWidth, realHeight, bytesPerPixel, rowStride; 178 switch (bytesPerPixel) { 183 rfbClientErr("Unknown bytes/pixel: %d", bytesPerPixel); 190 switch (bytesPerPixel) { 195 rfbClientErr("Unknown bytes/pixel: %d", bytesPerPixel); 270 bytesPerPixel = client->format.bitsPerPixel / 8; 271 size = client->width * bytesPerPixel * client->height;
|
/external/mesa3d/src/mesa/main/ |
image.c | 312 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); 313 if (bytesPerPixel <= 0) 316 bytesPerRow = bytesPerPixel * width; 319 bytesPerRow = bytesPerPixel * packing->RowLength; 359 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); 361 if (bytesPerPixel <= 0) 364 bytesPerRow = bytesPerPixel * width; 367 bytesPerRow = bytesPerPixel * packing->RowLength;
|
pack.c | [all...] |
/external/skia/include/core/ |
SkBitmap.h | 94 int bytesPerPixel() const { return fInfo.bytesPerPixel(); } 758 SkASSERT(4 == this->bytesPerPixel()); 765 SkASSERT(2 == this->bytesPerPixel()); 772 SkASSERT(1 == this->bytesPerPixel());
|
SkImageInfo.h | 269 int bytesPerPixel() const { return SkColorTypeBytesPerPixel(fColorType); } 274 return sk_64_mul(fWidth, this->bytesPerPixel()); 307 return sk_64_mul(fHeight - 1, rowBytes) + sk_64_mul(fWidth, this->bytesPerPixel()); 319 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
|