Searched refs:bytesPerPixel (Results 1 - 25 of 51) sorted by relevance

123

/external/skia/src/codec/
H A DSkCodecPriv.h62 static inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) { argument
63 return width * bytesPerPixel;
78 const uint32_t bytesPerPixel = bitsPerPixel / 8; local
79 return compute_row_bytes_bpp(width, bytesPerPixel);
H A DSkSwizzler.cpp75 int bytesPerPixel, int y, const SkPMColor ctable[]) {
91 int bytesPerPixel, int y, const SkPMColor ctable[]) {
105 int bytesPerPixel, int y, const SkPMColor ctable[]) {
125 int bytesPerPixel, int y, const SkPMColor ctable[]) {
136 int bytesPerPixel, int y, const SkPMColor ctable[]) {
145 int bytesPerPixel, int y, const SkPMColor ctable[]) {
150 src += bytesPerPixel;
159 int bytesPerPixel, int y, const SkPMColor ctable[]) {
167 src += bytesPerPixel;
174 int bytesPerPixel, in
73 swizzle_index_to_index( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
89 swizzle_index_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
103 swizzle_index_to_n32_skipZ( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
123 swizzle_gray_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
134 swizzle_gray_to_gray( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
143 swizzle_bgrx_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
157 swizzle_bgra_to_n32_unpremul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
172 swizzle_bgra_to_n32_premul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
188 swizzle_rgbx_to_n32( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
200 swizzle_rgba_to_n32_premul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
215 swizzle_rgba_to_n32_unpremul( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
230 swizzle_rgba_to_n32_premul_skipZ( void* SK_RESTRICT dstRow, const uint8_t* SK_RESTRICT src, int width, int bytesPerPixel, int y, const SkPMColor ctable[]) argument
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/util/
H A DUtil.java94 int bytesPerPixel;
97 bytesPerPixel = 1;
101 bytesPerPixel = 2;
105 bytesPerPixel = 4;
107 return bytesPerPixel;
/external/libvncserver/libvncclient/
H A Dcursor.c48 int bytesPerPixel; local
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/
H A Dpnmshow.c23 int bytesPerPixel,bitsPerPixelInFile; local
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);
/external/libvncserver/libvncserver/
H A Dscale.c138 int bitsPerPixel, bytesPerPixel, bytesPerLine, areaX, areaY, area2; local
156 bytesPerPixel = bitsPerPixel / 8;
157 bytesPerLine = w1 * bytesPerPixel;
159 (y0 * screen->paddedWidthInBytes + x0 * bytesPerPixel));
161 ( y1 * ptr->paddedWidthInBytes + x1 * bytesPerPixel));
200 srcptr2 = &srcptr[(((x * areaX) + w) * bytesPerPixel) +
205 switch (bytesPerPixel) {
211 for (z = 0; z < bytesPerPixel; z++)
216 srcptr2 += bytesPerPixel;
232 switch (bytesPerPixel) {
[all...]
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
H A DPFMLoader.java108 int bytesPerPixel = format.getBitsPerPixel() / 8;
109 int scanLineBytes = bytesPerPixel * width;
111 ByteBuffer imageData = BufferUtils.createByteBuffer(width * height * bytesPerPixel);
112 byte[] scanline = new byte[width * bytesPerPixel];
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
H A DTextureGeneratorNoise.java68 int bytesPerPixel = colorBand != null ? 4 : 1;
71 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorClouds.java83 int bytesPerPixel = sType == TEX_COLOR || colorBand != null ? 4 : 1;
86 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorDistnoise.java74 int bytesPerPixel = colorBand != null ? 4 : 1;
77 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorMarble.java71 int bytesPerPixel = colorBand != null ? 4 : 1;
75 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorMusgrave.java70 int bytesPerPixel = colorBand != null ? 4 : 1;
75 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorStucci.java79 int bytesPerPixel = colorBand != null ? 4 : 1;
81 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorBlend.java126 int bytesPerPixel = colorBand != null ? 4 : 1;
129 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorVoronoi.java80 int bytesPerPixel = voronoiColorType != 0 || colorBand != null ? 4 : 1;
93 byte[] data = new byte[width * height * depth * bytesPerPixel];
H A DTextureGeneratorWood.java83 int bytesPerPixel = colorBand != null ? 4 : 1;
88 byte[] data = new byte[width * height * depth * bytesPerPixel];
/external/skia/include/core/
H A DSkImageInfo.h238 int bytesPerPixel() const { function in struct:SkImageInfo
243 return sk_64_mul(fWidth, this->bytesPerPixel());
264 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel();
272 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
H A DSkBitmap.h81 int bytesPerPixel() const { return fInfo.bytesPerPixel(); } function in class:SkBitmap
95 int shiftPerPixel() const { return this->bytesPerPixel() >> 1; }
790 SkASSERT(4 == this->bytesPerPixel());
797 SkASSERT(2 == this->bytesPerPixel());
804 SkASSERT(1 == this->bytesPerPixel());
/external/skia/src/core/
H A DSkBitmap_scroll.cpp26 int shift = this->bytesPerPixel() >> 1;
H A DSkConfig8888.cpp192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
225 rect_memcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height);
234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) {
238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) {
H A DSkImageInfo.cpp115 fPixels = ((char*)fPixels - y * fRowBytes - x * fInfo.bytesPerPixel());
/external/skia/src/gpu/
H A DGrBatchFontCache.cpp215 int bytesPerPixel = GrMaskFormatBytesPerPixel(glyph->fMaskFormat); local
217 size_t size = glyph->fBounds.area() * bytesPerPixel;
229 glyph->width() * bytesPerPixel,
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/
H A DDrawUtils.java309 int bytesPerPixel = Math.max(1, srcData.depth / 8);
311 ((srcData.height * bytesPerPixel - 1) / srcData.scanlinePad + 1) * srcData.scanlinePad;
317 int destIndex = destY * destBytesPerLine + destX * bytesPerPixel;
318 int srcIndex = srcY * srcData.bytesPerLine + srcX * bytesPerPixel;
319 System.arraycopy(srcData.data, srcIndex, newData, destIndex, bytesPerPixel);
/external/libvncserver/client_examples/
H A DSDLvncviewer.c25 static int realWidth, realHeight, bytesPerPixel, rowStride; variable
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/
H A Dimage.c295 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); local
296 if (bytesPerPixel <= 0)
299 bytesPerRow = bytesPerPixel * width;
302 bytesPerRow = bytesPerPixel * packing->RowLength;
342 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); local
344 if (bytesPerPixel <= 0)
347 bytesPerRow = bytesPerPixel * width;
350 bytesPerRow = bytesPerPixel * packing->RowLength;

Completed in 465 milliseconds

123