/prebuilts/go/darwin-x86/src/image/png/ |
paeth_test.go | 36 func slowFilterPaeth(cdat, pdat []byte, bytesPerPixel int) { 37 for i := 0; i < bytesPerPixel; i++ { 40 for i := bytesPerPixel; i < len(cdat); i++ { 41 cdat[i] += paeth(cdat[i-bytesPerPixel], pdat[i], pdat[i-bytesPerPixel]) 73 for bytesPerPixel := 1; bytesPerPixel <= 8; bytesPerPixel++ { 83 filterPaeth(cdat1, pdat1, bytesPerPixel) 84 slowFilterPaeth(cdat2, pdat2, bytesPerPixel) [all...] |
paeth.go | 47 func filterPaeth(cdat, pdat []byte, bytesPerPixel int) { 49 for i := 0; i < bytesPerPixel; i++ { 51 for j := i; j < len(cdat); j += bytesPerPixel {
|
reader.go | 435 bytesPerPixel := (bitsPerPixel + 7) / 8 460 for i := bytesPerPixel; i < len(cdat); i++ { 461 cdat[i] += cdat[i-bytesPerPixel] 471 for i := 0; i < bytesPerPixel; i++ { 474 for i := bytesPerPixel; i < len(cdat); i++ { 475 cdat[i] += uint8((int(cdat[i-bytesPerPixel]) + int(pdat[i])) / 2) 478 filterPaeth(cdat, pdat, bytesPerPixel) 620 bytesPerPixel int 626 bytesPerPixel = 1 630 bytesPerPixel = [all...] |
/prebuilts/go/linux-x86/src/image/png/ |
paeth_test.go | 36 func slowFilterPaeth(cdat, pdat []byte, bytesPerPixel int) { 37 for i := 0; i < bytesPerPixel; i++ { 40 for i := bytesPerPixel; i < len(cdat); i++ { 41 cdat[i] += paeth(cdat[i-bytesPerPixel], pdat[i], pdat[i-bytesPerPixel]) 73 for bytesPerPixel := 1; bytesPerPixel <= 8; bytesPerPixel++ { 83 filterPaeth(cdat1, pdat1, bytesPerPixel) 84 slowFilterPaeth(cdat2, pdat2, bytesPerPixel) [all...] |
paeth.go | 47 func filterPaeth(cdat, pdat []byte, bytesPerPixel int) { 49 for i := 0; i < bytesPerPixel; i++ { 51 for j := i; j < len(cdat); j += bytesPerPixel {
|
reader.go | 435 bytesPerPixel := (bitsPerPixel + 7) / 8 460 for i := bytesPerPixel; i < len(cdat); i++ { 461 cdat[i] += cdat[i-bytesPerPixel] 471 for i := 0; i < bytesPerPixel; i++ { 474 for i := bytesPerPixel; i < len(cdat); i++ { 475 cdat[i] += uint8((int(cdat[i-bytesPerPixel]) + int(pdat[i])) / 2) 478 filterPaeth(cdat, pdat, bytesPerPixel) 620 bytesPerPixel int 626 bytesPerPixel = 1 630 bytesPerPixel = [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PixelFormatTest.java | 44 assertEquals(4, mPixelFormat.bytesPerPixel); 48 assertEquals(4, mPixelFormat.bytesPerPixel); 52 assertEquals(3, mPixelFormat.bytesPerPixel); 56 assertEquals(2, mPixelFormat.bytesPerPixel); 60 assertEquals(2, mPixelFormat.bytesPerPixel); 64 assertEquals(2, mPixelFormat.bytesPerPixel); 68 assertEquals(1, mPixelFormat.bytesPerPixel); 72 assertEquals(1, mPixelFormat.bytesPerPixel); 76 assertEquals(2, mPixelFormat.bytesPerPixel); 80 assertEquals(1, mPixelFormat.bytesPerPixel); [all...] |
/external/pdfium/core/src/fxcodec/codec/ |
fx_codec_flate.cpp | 250 const int BytesPerPixel = (Colors * BitsPerComponent + 7) / 8; 278 if (byte >= BytesPerPixel) { 279 left = pSrcData[byte - BytesPerPixel]; 294 if (byte >= BytesPerPixel) { 295 left = pSrcData[byte - BytesPerPixel]; 306 if (byte >= BytesPerPixel) { 307 left = pSrcData[byte - BytesPerPixel]; 314 if (byte >= BytesPerPixel && row) { 315 upper_left = pSrcData[byte - row_size - BytesPerPixel]; 341 int BytesPerPixel = (bpc * nColors + 7) / 8 [all...] |
/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);
|
/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/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;
|
/frameworks/base/graphics/java/android/graphics/ |
PixelFormat.java | 99 info.bytesPerPixel = 4; 103 info.bytesPerPixel = 3; 110 info.bytesPerPixel = 2; 116 info.bytesPerPixel = 1; 121 info.bytesPerPixel = 1; 125 info.bytesPerPixel = 1; 146 public int 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...] |
/external/skia/src/core/ |
SkConfig8888.cpp | 182 size_t bytes = width * srcInfo.bytesPerPixel(); 192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) { 225 SkRectMemcpy(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()) {
|
/hardware/ti/omap4-aah/camera/ |
CameraHalCommon.cpp | 124 unsigned int bytesPerPixel; 128 bytesPerPixel = 2; 131 bytesPerPixel = 2; 133 bytesPerPixel = 1; 135 bytesPerPixel = 1; 138 return bytesPerPixel;
|
/frameworks/base/media/jni/ |
android_media_Utils.cpp | 662 int bytesPerPixel = 0; 739 bytesPerPixel = 2; 744 dataSize = buffer->stride * buffer->height * bytesPerPixel; 745 pStride = bytesPerPixel; 768 bytesPerPixel = 2; 771 dataSize = buffer->stride * buffer->height * bytesPerPixel; 772 pStride = bytesPerPixel; 818 bytesPerPixel = 4; 821 dataSize = buffer->stride * buffer->height * bytesPerPixel; 822 pStride = bytesPerPixel; [all...] |
/external/opencv3/modules/videoio/src/ |
cap_winrt_video.cpp | 125 props->Subtype = MediaEncodingSubtypes::Rgb24; bytesPerPixel = 3; 128 // props->Subtype = MediaEncodingSubtypes::Bgra8; bytesPerPixel = 4; 160 unsigned int colBytes = width * bytesPerPixel; 202 for (unsigned int i = 0; i < colBytes; i += bytesPerPixel) 241 const unsigned int bytesPerPixel = 3; 243 auto plPitch = width * bytesPerPixel; 257 for (unsigned int i = 0, j = 0; i < plPitch; i += bytesPerPixel, j += 4)
|
/frameworks/base/libs/hwui/ |
GradientCache.cpp | 157 const uint32_t size = info.width * 2 * bytesPerPixel(); 170 " width = %" PRIu32 " bytesPerPixel() = %zu", 171 size, texture->objectSize(), info.width, bytesPerPixel()); 177 size_t GradientCache::bytesPerPixel() const { 224 const GLsizei rowBytes = width * bytesPerPixel();
|
/hardware/libhardware/modules/gralloc/ |
gralloc.cpp | 211 int bytesPerPixel = 0; 216 bytesPerPixel = 4; 219 bytesPerPixel = 3; 223 bytesPerPixel = 2; 233 size_t size = align(height, tileHeight) * stride * bytesPerPixel + 4;
|
/external/opencv3/samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.Shared/ |
main.cpp | 105 int bytesPerPixel = 3; 107 for (int i = 0; i < 640 * 100 * bytesPerPixel;)
|
/external/skia/include/core/ |
SkImageInfo.h | 255 int bytesPerPixel() const { 260 return sk_64_mul(fWidth, this->bytesPerPixel()); 287 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel(); 299 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
|
/external/skia/src/codec/ |
SkCodecPriv.h | 199 inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) { 200 return width * bytesPerPixel; 213 const uint32_t bytesPerPixel = bitsPerPixel / 8; 214 return compute_row_bytes_bpp(width, bytesPerPixel);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_cl.py | 30 'BUFFER_NOT_CREATED', 'BUF_DATA', 'BUF_FRAME', 'BytesPerPixel',
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_cl.py | 30 'BUFFER_NOT_CREATED', 'BUF_DATA', 'BUF_FRAME', 'BytesPerPixel',
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_cl.py | 30 'BUFFER_NOT_CREATED', 'BUF_DATA', 'BUF_FRAME', 'BytesPerPixel',
|