/external/libvncserver/libvncclient/ |
D | cursor.c | 48 int bytesPerPixel; in HandleCursorShape() local 56 bytesPerPixel = client->format.bitsPerPixel / 8; in HandleCursorShape() 67 client->rcSource = malloc(width * height * bytesPerPixel); in HandleCursorShape() 105 ptr += bytesPerPixel; in HandleCursorShape() 110 ptr += bytesPerPixel; in HandleCursorShape() 115 switch (bytesPerPixel) { in HandleCursorShape() 132 if (!ReadFromRFBServer(client, (char *)client->rcSource, width * height * bytesPerPixel)) { in HandleCursorShape() 171 client->GotCursorShape(client, xhot, yhot, width, height, bytesPerPixel); in HandleCursorShape()
|
/external/libvncserver/libvncserver/ |
D | scale.c | 144 int bitsPerPixel, bytesPerPixel, bytesPerLine, areaX, areaY, area2; in rfbScaledScreenUpdateRect() local 162 bytesPerPixel = bitsPerPixel / 8; in rfbScaledScreenUpdateRect() 163 bytesPerLine = w1 * bytesPerPixel; in rfbScaledScreenUpdateRect() 165 (y0 * screen->paddedWidthInBytes + x0 * bytesPerPixel)); in rfbScaledScreenUpdateRect() 167 ( y1 * ptr->paddedWidthInBytes + x1 * bytesPerPixel)); in rfbScaledScreenUpdateRect() 206 srcptr2 = &srcptr[(((x * areaX) + w) * bytesPerPixel) + in rfbScaledScreenUpdateRect() 211 switch (bytesPerPixel) { in rfbScaledScreenUpdateRect() 217 for (z = 0; z < bytesPerPixel; z++) in rfbScaledScreenUpdateRect() 238 switch (bytesPerPixel) { in rfbScaledScreenUpdateRect() 244 for (z = 0; z < bytesPerPixel; z++) in rfbScaledScreenUpdateRect() [all …]
|
D | main.c | 811 int bytesPerPixel) in rfbGetScreen() argument 861 screen->bitsPerPixel = screen->depth = 8*bytesPerPixel; in rfbGetScreen() 896 screen->paddedWidthInBytes = width*bytesPerPixel; in rfbGetScreen() 943 int bytesPerPixel) in rfbNewFramebuffer() argument 959 screen->bitsPerPixel = screen->depth = 8*bytesPerPixel; in rfbNewFramebuffer() 960 screen->paddedWidthInBytes = width*bytesPerPixel; in rfbNewFramebuffer()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | Util.java | 94 int bytesPerPixel; in getBytesPerPixel() local 97 bytesPerPixel = 1; in getBytesPerPixel() 101 bytesPerPixel = 2; in getBytesPerPixel() 105 bytesPerPixel = 4; in getBytesPerPixel() 107 return bytesPerPixel; in getBytesPerPixel()
|
/external/libvncserver/examples/ |
D | pnmshow.c | 23 int bytesPerPixel,bitsPerPixelInFile; in main() local 36 bytesPerPixel=4; bitsPerPixelInFile=3*8; in main() 39 bytesPerPixel=1; bitsPerPixelInFile=1*8; in main() 42 bytesPerPixel=1; bitsPerPixelInFile=1; in main() 67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel); in main() 81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height); in main()
|
/external/skia/src/codec/ |
D | SkCodecPriv.h | 199 inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) { in compute_row_bytes_bpp() argument 200 return width * bytesPerPixel; in compute_row_bytes_bpp() 213 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes() local 214 return compute_row_bytes_bpp(width, bytesPerPixel); in compute_row_bytes()
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/ |
D | PFMLoader.java | 108 int bytesPerPixel = format.getBitsPerPixel() / 8; in load() 109 int scanLineBytes = bytesPerPixel * width; in load() 111 ByteBuffer imageData = BufferUtils.createByteBuffer(width * height * bytesPerPixel); in load() 112 byte[] scanline = new byte[width * bytesPerPixel]; in load()
|
D | HDRLoader.java | 301 int bytesPerPixel = pixelFormat.getBitsPerPixel() / 8; in load() local 302 int scanLineBytes = bytesPerPixel * width; in load()
|
/external/skia/src/core/ |
D | SkConfig8888.cpp | 182 size_t bytes = width * srcInfo.bytesPerPixel(); in CopyPixels() 192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) { in CopyPixels() 225 SkRectMemcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height); in CopyPixels() 234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) { in CopyPixels() 238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) { in CopyPixels()
|
/external/skia/include/core/ |
D | SkBitmap.h | 94 int bytesPerPixel() const { return fInfo.bytesPerPixel(); } in bytesPerPixel() function 108 int shiftPerPixel() const { return this->bytesPerPixel() >> 1; } in shiftPerPixel() 807 SkASSERT(4 == this->bytesPerPixel()); in getAddr32() 814 SkASSERT(2 == this->bytesPerPixel()); in getAddr16() 821 SkASSERT(1 == this->bytesPerPixel()); in getAddr8()
|
D | SkImageInfo.h | 255 int bytesPerPixel() const { in bytesPerPixel() function 260 return sk_64_mul(fWidth, this->bytesPerPixel()); in minRowBytes64() 287 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel(); in getSafeSize64() 299 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel()); in validRowBytes()
|
/external/libvncserver/client_examples/ |
D | SDLvncviewer.c | 25 static int realWidth, realHeight, bytesPerPixel, rowStride; variable 178 switch (bytesPerPixel) { in get() 183 rfbClientErr("Unknown bytes/pixel: %d", bytesPerPixel); in get() 190 switch (bytesPerPixel) { in put() 195 rfbClientErr("Unknown bytes/pixel: %d", bytesPerPixel); in put() 270 bytesPerPixel = client->format.bitsPerPixel / 8; in setRealDimension() 271 size = client->width * bytesPerPixel * client->height; in setRealDimension()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/ |
D | DrawUtils.java | 309 int bytesPerPixel = Math.max(1, srcData.depth / 8); in rotateOptimized() local 311 ((srcData.height * bytesPerPixel - 1) / srcData.scanlinePad + 1) * srcData.scanlinePad; in rotateOptimized() 317 int destIndex = destY * destBytesPerLine + destX * bytesPerPixel; in rotateOptimized() 318 int srcIndex = srcY * srcData.bytesPerLine + srcX * bytesPerPixel; in rotateOptimized() 319 System.arraycopy(srcData.data, srcIndex, newData, destIndex, bytesPerPixel); in rotateOptimized()
|
/external/mesa3d/src/mesa/main/ |
D | image.c | 295 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); in _mesa_image_row_stride() local 296 if (bytesPerPixel <= 0) in _mesa_image_row_stride() 299 bytesPerRow = bytesPerPixel * width; in _mesa_image_row_stride() 302 bytesPerRow = bytesPerPixel * packing->RowLength; in _mesa_image_row_stride() 342 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); in _mesa_image_image_stride() local 344 if (bytesPerPixel <= 0) in _mesa_image_image_stride() 347 bytesPerRow = bytesPerPixel * width; in _mesa_image_image_stride() 350 bytesPerRow = bytesPerPixel * packing->RowLength; in _mesa_image_image_stride()
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | TextureGeneratorNoise.java | 68 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 71 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorStucci.java | 79 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 81 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorClouds.java | 83 int bytesPerPixel = sType == TEX_COLOR || colorBand != null ? 4 : 1; in generate() local 86 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorMusgrave.java | 70 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 75 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorDistnoise.java | 74 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 77 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorMarble.java | 71 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 75 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorBlend.java | 126 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 129 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorVoronoi.java | 80 int bytesPerPixel = voronoiColorType != 0 || colorBand != null ? 4 : 1; in generate() local 93 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
D | TextureGeneratorWood.java | 83 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local 88 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
|
/external/skia/src/gpu/text/ |
D | GrBatchFontCache.cpp | 215 int bytesPerPixel = GrMaskFormatBytesPerPixel(expectedMaskFormat); in addGlyphToAtlas() local 217 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas() 228 glyph->width() * bytesPerPixel, expectedMaskFormat, in addGlyphToAtlas()
|
/external/autotest/client/deps/nvmap_compactor/src/ |
D | nvmap_carveout_compactor.c | 137 int x, y, bytesPerPixel; in CreateTexture() local 143 bytesPerPixel = 4; in CreateTexture() 145 data = (char *)malloc((size_t)(width*height*bytesPerPixel)); in CreateTexture() 151 int idx = (y*width + x)*bytesPerPixel; in CreateTexture()
|