Home
last modified time | relevance | path

Searched refs:bytesPerPixel (Results 1 – 25 of 56) 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/opencv3/modules/videoio/src/
Dcap_winrt_video.cpp125 props->Subtype = MediaEncodingSubtypes::Rgb24; bytesPerPixel = 3; in initGrabber()
160 unsigned int colBytes = width * bytesPerPixel; in __anonf7812a090402()
202 for (unsigned int i = 0; i < colBytes; i += bytesPerPixel) in __anonf7812a090402()
241 const unsigned int bytesPerPixel = 3; in CopyOutput() local
243 auto plPitch = width * bytesPerPixel; in CopyOutput()
257 for (unsigned int i = 0, j = 0; i < plPitch; i += bytesPerPixel, j += 4) in CopyOutput()
Dcap_winrt_capture.hpp67 int bytesPerPixel; member in cv::VideoCapture_WinRT
Dcap_winrt_video.hpp72 int bytesPerPixel; member in Video
/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/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()
DSkPixmap.cpp69 const size_t bpp = fInfo.bytesPerPixel(); in extractSubset()
104 dstPixels = ((char*)dstPixels - y * dstRB - x * dstInfo.bytesPerPixel()); in readPixels()
DSkImageInfo.cpp116 fPixels = ((char*)fPixels - y * fRowBytes - x * fInfo.bytesPerPixel()); in trim()
DSkBitmapProcState_procs.h91 #define CHECKSTATE(state) SkASSERT(4 == state.fPixmap.info().bytesPerPixel()); \
102 #define CHECKSTATE(state) SkASSERT(4 == state.fPixmap.info().bytesPerPixel()); \
/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/opencv3/samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/
Dmain.cpp105 int bytesPerPixel = 3; in cvFilterColor() local
107 for (int i = 0; i < 640 * 100 * bytesPerPixel;) in cvFilterColor()
/external/opencv3/3rdparty/openexr/IlmImf/
DImfTiledMisc.cpp115 size_t bytesPerPixel = 0; in calculateBytesPerPixel() local
121 bytesPerPixel += pixelTypeSize (c.channel().type); in calculateBytesPerPixel()
124 return bytesPerPixel; in calculateBytesPerPixel()
DImfTiledInputFile.cpp222 size_t bytesPerPixel; // size of an uncompressed pixel member
464 int sizeOfTile = _ifd->bytesPerPixel * numPixelsInTile; in execute()
743 _data->bytesPerPixel = calculateBytesPerPixel (_data->header); in initialize()
745 _data->maxBytesPerTileLine = _data->bytesPerPixel * _data->tileDesc.xSize; in initialize()
/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/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()
/external/libvncserver/rfb/
Drfbclient.h177 …hapeProc)(struct _rfbClient* client, int xhot, int yhot, int width, int height, int bytesPerPixel);
600 rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,int bytesPerPixel);
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwmesa.c289 UINT bytesPerPixel = pwfb->cColorBits / 8; in clear() local
303 switch (bytesPerPixel) { in clear()
346 bytesPerPixel * x; in clear()
347 switch (bytesPerPixel) { in clear()
388 rowSize = width * bytesPerPixel; in clear()

123