Home
last modified time | relevance | path

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

123

/external/libvncserver/libvncclient/
Dcursor.c48 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/
Dscale.c144 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 …]
Dmain.c811 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/
DUtil.java94 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/
Dpnmshow.c23 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/
DSkCodecPriv.h199 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/
DPFMLoader.java108 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()
DHDRLoader.java301 int bytesPerPixel = pixelFormat.getBitsPerPixel() / 8; in load() local
302 int scanLineBytes = bytesPerPixel * width; in load()
/external/skia/src/core/
DSkConfig8888.cpp182 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/
DSkBitmap.h94 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()
DSkImageInfo.h255 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/
DSDLvncviewer.c25 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/
DDrawUtils.java309 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/
Dimage.c295 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/
DTextureGeneratorNoise.java68 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local
71 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorStucci.java79 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local
81 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorClouds.java83 int bytesPerPixel = sType == TEX_COLOR || colorBand != null ? 4 : 1; in generate() local
86 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorMusgrave.java70 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local
75 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorDistnoise.java74 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local
77 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorMarble.java71 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local
75 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorBlend.java126 int bytesPerPixel = colorBand != null ? 4 : 1; in generate() local
129 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorVoronoi.java80 int bytesPerPixel = voronoiColorType != 0 || colorBand != null ? 4 : 1; in generate() local
93 byte[] data = new byte[width * height * depth * bytesPerPixel]; in generate()
DTextureGeneratorWood.java83 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/
DGrBatchFontCache.cpp215 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/
Dnvmap_carveout_compactor.c137 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()

123