Searched refs:rowBytes (Results 1 - 25 of 28) sorted by relevance

12

/haiku/src/add-ons/translators/avif/
H A DAVIFTranslator.cpp287 int bitsSize = height * bitsHeader.rowBytes;
291 rgb.rowBytes = bitsHeader.rowBytes;
308 int bitsSize = height * bitsHeader.rowBytes;
327 image->yuvRowBytes[0] = bitsHeader.rowBytes / 3;
328 image->yuvRowBytes[1] = bitsHeader.rowBytes / 3;
329 image->yuvRowBytes[2] = bitsHeader.rowBytes / 3;
334 int bitsSize = height * bitsHeader.rowBytes;
343 image->yuvRowBytes[0] = bitsHeader.rowBytes;
445 uint32_t rowBytes; local
[all...]
/haiku/src/kits/translation/
H A DBitmapStream.cpp40 fHeader.rowBytes = fBitmap->BytesPerRow();
43 ((fHeader.bounds.Height() + 1) * fHeader.rowBytes);
143 || (uint32)fBitmap->BytesPerRow() != fHeader.rowBytes)) {
153 0, fHeader.colors, fHeader.rowBytes);
162 if ((uint32)fBitmap->BytesPerRow() != fHeader.rowBytes) {
165 fBitmap->BytesPerRow(), fHeader.rowBytes);
/haiku/src/add-ons/translators/psd/
H A DPSDLoader.cpp200 int32 rowBytes = (fWidth * fDepth) / 8; local
201 int32 channelBytes = rowBytes * fHeight;
272 bitsHeader.rowBytes = rowBytes;
276 bitsHeader.rowBytes = sizeof(uint32) * fWidth;
278 bitsHeader.dataSize = bitsHeader.rowBytes * fHeight;
293 int32 rowBytes = (fWidth / 8 ) * fHeight; local
294 for (int32 i = 0; i < rowBytes; i++)
296 target->Write(imageData[0], rowBytes);
H A DPSDWriter.cpp35 fInRowBytes = B_BENDIAN_TO_HOST_INT32(header.rowBytes);
/haiku/src/tools/translation/bitsinfo/
H A Dbitsinfo.cpp103 static_cast<unsigned int>(header.rowBytes));
191 uint8 *prow = new uint8[header.rowBytes];
200 while ((ret = file.Read(prow, header.rowBytes)) > 0) {
/haiku/src/add-ons/translators/icns/
H A DICNSLoader.h55 ICNSSaver(BPositionIO *stream, uint32 rowBytes,
H A DICNSLoader.cpp154 bitsHeader.rowBytes = sizeof(uint32) * iconImage.imageWidth;
156 bitsHeader.dataSize = bitsHeader.rowBytes * iconImage.imageHeight;
186 ICNSSaver::ICNSSaver(BPositionIO *stream, uint32 rowBytes, icns_type_t type) argument
199 stream->Read(rowPtr, rowBytes);
H A DICNSTranslator.cpp180 ICNSSaver icnsFile(source, bitsHeader.rowBytes, type);
/haiku/headers/os/translation/
H A DTranslatorFormats.h73 uint32 rowBytes; member in struct:TranslatorBitmap
/haiku/src/add-ons/translators/ico/
H A DICO.cpp120 get_data_row(uint8 *data, int32 dataSize, int32 rowBytes, int32 row) argument
122 return data + dataSize - (row + 1) * rowBytes;
203 data += bitsHeader.rowBytes * y;
637 bitsHeader.rowBytes = entry.width * 4;
639 bitsHeader.dataSize = bitsHeader.rowBytes * entry.height;
694 uint8 *bitsData = (uint8 *)dataAllocator.Allocate(bitsHeader.rowBytes * height);
698 ssize_t bytesRead = source.Read(bitsData, bitsHeader.rowBytes * height);
707 width, height, bitsHeader.rowBytes)) {
/haiku/src/add-ons/translators/wonderbrush/
H A DWonderBrushTranslator.cpp227 bitsHeader.rowBytes = bytesPerRow;
229 bitsHeader.dataSize = bitsHeader.rowBytes * height;
/haiku/src/add-ons/translators/exr/
H A DEXRTranslator.cpp144 bitsHeader.rowBytes = 4 * displayWidth;
146 bitsHeader.dataSize = bitsHeader.rowBytes * displayHeight;
/haiku/src/add-ons/translators/gif/
H A DGIFTranslator.cpp168 header.rowBytes = B_BENDIAN_TO_HOST_INT32(header.rowBytes);
/haiku/src/add-ons/translators/png/
H A DPNGTranslator.cpp416 bitsHeader.rowBytes = 4 * width;
421 bitsHeader.dataSize = bitsHeader.rowBytes * height;
857 pbitsrow = new(std::nothrow) uint8[bitsHeader.rowBytes];
901 inSource->Read(pbitsrow, bitsHeader.rowBytes);
910 inSource->Read(pbitsrow, bitsHeader.rowBytes);
/haiku/src/add-ons/translators/sgi/
H A DSGITranslator.cpp289 uint32 bytesPerRow = bitsHeader.rowBytes;
503 bitsHeader.rowBytes = bytesPerRow;
505 bitsHeader.dataSize = bitsHeader.rowBytes * height;
/haiku/src/add-ons/translators/shared/
H A DBaseTranslator.cpp303 if (header.rowBytes * (header.bounds.Height() + 1) != header.dataSize)
330 pheader->rowBytes = header.rowBytes;
/haiku/src/add-ons/translators/pcx/
H A DPCX.cpp284 bitsHeader.rowBytes = width * 4;
286 bitsHeader.dataSize = bitsHeader.rowBytes * height;
/haiku/src/add-ons/translators/webp/
H A DWebPTranslator.cpp276 int stride = bitsHeader.rowBytes;
348 bitmapHeader.rowBytes = width * 4;
/haiku/src/add-ons/translators/raw/
H A DRAWTranslator.cpp326 header.rowBytes = data.output_width * 3;
329 header.rowBytes = data.output_width * 4;
/haiku/src/add-ons/translators/jpeg/
H A DJPEGTranslator.cpp855 int32 in_row_bytes = B_BENDIAN_TO_HOST_INT32(header.rowBytes);
1172 int32 rowBytes = (bounds.IntegerWidth() + 1) * outColorComponents; local
1184 header.rowBytes = B_HOST_TO_BENDIAN_INT32(rowBytes);
1210 JPOOL_PERMANENT, needAll ? dataSize : rowBytes);
1225 ssize_t bytesWritten = out->Write(destLine, rowBytes);
1226 if (bytesWritten < rowBytes) {
/haiku/src/add-ons/translators/ppm/
H A DPPMTranslator.cpp399 hdr.rowBytes = B_HOST_TO_BENDIAN_INT32(out_rowbytes);
402 dprintf(("rowBytes is %d, width %d, out_space %x, space %x\n",
788 hdr.rowBytes = B_BENDIAN_TO_HOST_INT32(hdr.rowBytes);
798 if (hdr.rowBytes * (hdr.bounds.Height() + 1) > hdr.dataSize)
802 *rowbytes = hdr.rowBytes;
/haiku/src/add-ons/translators/tiff/
H A DTIFFTranslator.cpp669 uint32 bytesPerRow = bitsHeader.rowBytes;
854 bitsHeader.rowBytes = 4 * width;
856 bitsHeader.dataSize = bitsHeader.rowBytes * height;
/haiku/src/tests/kits/translation/
H A DBitmapStreamTest.cpp211 sheader.rowBytes = width * 4;
213 sheader.dataSize = sheader.rowBytes * height;
/haiku/src/kits/interface/
H A DBitmap.cpp374 int32 rowBytes; local
375 if (data->FindInt32("_rowbytes", &rowBytes) != B_OK) {
376 rowBytes = -1;
384 _InitObject(bounds, cspace, flags, rowBytes, B_MAIN_SCREEN_ID);
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp1165 bitsHeader.rowBytes, msheader);
1179 bitsHeader.rowBytes, msheader);
1793 bitsHeader.rowBytes = msheader.width * 4;
1795 int32 datasize = bitsHeader.rowBytes * abs(msheader.height);

Completed in 363 milliseconds

12