Lines Matching defs:bitsRowBytes

624 	int32 bitsRowBytes = msheader.width * bitsBytesPerPixel;
630 inSource->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
634 uint8 *bitsRowData = new (nothrow) uint8[bitsRowBytes];
640 ssize_t rd = inSource->Read(bitsRowData, bitsRowBytes);
650 while (rd == static_cast<ssize_t>(bitsRowBytes)) {
773 inSource->Seek(bitsRowBytes * -2, SEEK_CUR);
774 rd = inSource->Read(bitsRowData, bitsRowBytes);
775 } // while (rd == bitsRowBytes)
794 // bitsRowBytes, number of bytes in one row of
809 BPositionIO *outDestination, int32 bitsRowBytes, MSInfoHeader &msheader)
816 inSource->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
820 uint8 *bitsRowData = new (nothrow) uint8[bitsRowBytes];
826 ssize_t rd = inSource->Read(bitsRowData, bitsRowBytes);
827 while (rd == bitsRowBytes) {
838 inSource->Seek(bitsRowBytes * -2, SEEK_CUR);
839 rd = inSource->Read(bitsRowData, bitsRowBytes);
840 } // while (rd == bitsRowBytes)
859 // bitsRowBytes, number of bytes in one row of
874 BPositionIO *outDestination, int32 bitsRowBytes, MSInfoHeader &msheader)
881 inSource->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
885 uint8 *bitsRowData = new (nothrow) uint8[bitsRowBytes];
890 ssize_t rd = inSource->Read(bitsRowData, bitsRowBytes);
891 while (rd == bitsRowBytes) {
895 (i < bitsRowBytes); i++) {
924 inSource->Seek(bitsRowBytes * -2, SEEK_CUR);
925 rd = inSource->Read(bitsRowData, bitsRowBytes);
926 } // while (rd == bitsRowBytes)
1213 int32 bitsRowBytes = msheader.width * 4;
1221 off_t bitsFileSize = (bitsRowBytes * abs(msheader.height)) +
1231 outDestination->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
1237 uint8 *bitsRowData = new (nothrow) uint8[bitsRowBytes];
1247 memset(bitsRowData, 0xff, bitsRowBytes);
1278 ssize_t written = outDestination->Write(bitsRowData, bitsRowBytes);
1280 outDestination->Seek(bitsRowBytes * -2, SEEK_CUR);
1282 if (written != bitsRowBytes) {
1346 int32 bitsRowBytes = msheader.width * 4;
1347 off_t bitsFileSize = (bitsRowBytes * abs(msheader.height)) +
1354 outDestination->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
1360 uint8 *bitsRowData = new (nothrow) uint8[bitsRowBytes];
1365 memset(bitsRowData, 0xff, bitsRowBytes);
1378 outDestination->Write(bitsRowData, bitsRowBytes);
1387 outDestination->Seek(bitsRowBytes * -2, SEEK_CUR);
1466 int32 bitsRowBytes = msheader.width * 4;
1467 off_t bitsFileSize = (bitsRowBytes * rowCount) +
1473 uint8 *bitsRowData = new (nothrow) uint8[bitsRowBytes];
1476 memset(bitsRowData, 0xff, bitsRowBytes);
1479 off_t rowOffset = msheader.height > 0 ? bitsRowBytes * -2 : 0;
1482 outDestination->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
1527 outDestination->Write(bitsRowData, bitsRowBytes);
1538 outDestination->Write(bitsRowData, bitsRowBytes);
1548 outDestination->Write(bitsRowData, bitsRowBytes);
1585 outDestination->Write(bitsRowData, bitsRowBytes);