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

1234

/external/chromium_org/skia/ext/
H A Dbitmap_platform_device.h30 int bytesPerPixel = 4; local
31 int64_t bytes = (int64_t)width * height * bytesPerPixel;
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/
H A DSDL_riscossprite.c50 int bytesPerPixel; local
56 case 32: bytesPerPixel = 4; break;
57 case 16: bytesPerPixel = 2; break;
59 bytesPerPixel = 1;
67 bytesPerRow = bytesPerPixel * width;
H A DSDL_wimpvideo.c89 int bytesPerPixel = 1; local
107 bytesPerPixel = 2;
114 bytesPerPixel = 4;
152 current->pitch = width * bytesPerPixel;
/external/chromium_org/third_party/skia/include/core/
H A DSkImageInfo.h228 int bytesPerPixel() const { function in struct:SkImageInfo
233 return sk_64_mul(fWidth, this->bytesPerPixel());
254 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel();
262 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
H A DSkBitmap.h90 int bytesPerPixel() const { return fInfo.bytesPerPixel(); } function in class:SkBitmap
104 int shiftPerPixel() const { return this->bytesPerPixel() >> 1; }
856 SkASSERT(4 == this->bytesPerPixel());
863 SkASSERT(2 == this->bytesPerPixel());
870 SkASSERT(1 == this->bytesPerPixel());
/external/skia/include/core/
H A DSkImageInfo.h207 int bytesPerPixel() const { function in struct:SkImageInfo
212 return sk_64_mul(fWidth, this->bytesPerPixel());
233 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel();
241 uint64_t rb = sk_64_mul(fWidth, this->bytesPerPixel());
H A DSkBitmap.h116 int bytesPerPixel() const { return fInfo.bytesPerPixel(); } function in class:SkBitmap
130 int shiftPerPixel() const { return this->bytesPerPixel() >> 1; }
873 SkASSERT(4 == this->bytesPerPixel());
880 SkASSERT(2 == this->bytesPerPixel());
887 SkASSERT(1 == this->bytesPerPixel());
/external/chromium_org/chrome/browser/thumbnails/
H A Dcontent_analysis.cc258 0, input_bitmap->bytesPerPixel(),
263 0, intermediate.bytesPerPixel(), false);
267 0, intermediate.bytesPerPixel(),
272 0, input_bitmap->bytesPerPixel(), false);
279 0, input_bitmap->bytesPerPixel(),
284 0, intermediate.bytesPerPixel(), true);
288 0, input_bitmap->bytesPerPixel(),
293 0, intermediate2.bytesPerPixel(), true);
301 0, input_bitmap->bytesPerPixel(),
306 0, intermediate.bytesPerPixel(), fals
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/
H A DBMPImageReader.h192 inline uint32_t readCurrentPixel(int bytesPerPixel) const
194 const int offset = m_coord.x() * bytesPerPixel;
195 switch (bytesPerPixel) {
H A DBMPImageReader.cpp709 const size_t bytesPerPixel = m_infoHeader.biBitCount / 8; local
710 const size_t unpaddedNumBytes = (m_infoHeader.biBitCount < 16) ? ((numPixels + pixelsPerByte - 1) / pixelsPerByte) : (numPixels * bytesPerPixel);
756 const uint32_t pixel = readCurrentPixel(bytesPerPixel);
/external/chromium_org/components/user_manager/user_image/
H A Duser_image.cc31 bitmap.width() * bitmap.bytesPerPixel(),
/external/chromium_org/third_party/skia/src/core/
H A DSkBitmap_scroll.cpp26 int shift = this->bytesPerPixel() >> 1;
H A DSkConfig8888.cpp151 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
183 rect_memcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height);
/external/skia/src/core/
H A DSkBitmap_scroll.cpp26 int shift = this->bytesPerPixel() >> 1;
H A DSkBitmapDevice.cpp176 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
205 srcInfo.width() * srcInfo.bytesPerPixel(), srcInfo.height());
242 if (4 != dstInfo.bytesPerPixel()) {
245 if (4 != srcInfo.bytesPerPixel()) {
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/layers/
H A DLayerDetailsView.js145 const bytesPerPixel = 4;
146 this._memoryEstimateCell.textContent = Number.bytesToString(this._layer.invisible() ? 0 : this._layer.width() * this._layer.height() * bytesPerPixel);
/external/chromium_org/ui/ozone/platform/dri/
H A Ddri_buffer.cc65 info.bytesPerPixel() << 3,
/external/skia/src/gpu/
H A DGrTextStrike.cpp298 int bytesPerPixel = GrMaskFormatBytesPerPixel(fMaskFormat); local
300 size_t size = glyph->fBounds.area() * bytesPerPixel;
311 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/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d11/
H A DPixelTransfer11.cpp124 unsigned int bytesPerPixel = gl::GetInternalFormatInfo(internalFormat).pixelBytes; local
126 unsigned int alignmentPixels = (alignmentBytes <= bytesPerPixel ? 1 : alignmentBytes / bytesPerPixel);
/external/chromium_org/third_party/skia/src/gpu/
H A DGrTextStrike.cpp319 int bytesPerPixel = GrMaskFormatBytesPerPixel(fMaskFormat); local
321 size_t size = glyph->fBounds.area() * bytesPerPixel;
333 glyph->width() * bytesPerPixel,
/external/chromium_org/ui/ozone/platform/caca/
H A Dcaca_window_manager.cc73 dither_.reset(caca_create_dither(info.bytesPerPixel() * 8,
/external/chromium_org/third_party/mesa/src/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;
/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;
/external/chromium_org/third_party/skia/tests/
H A DReadPixelsTest.cpp103 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
125 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel());
159 SkASSERT(4 == bitmap.bytesPerPixel());

Completed in 1327 milliseconds

1234