Lines Matching defs:row

145 // width			number of pixels in a row
303 // reads a row of image data from the stream
305 // row pointer to buffer (row of pixels) to read
306 // y index (line number) of this row
309 SGIImage::ReadRow(void* row, int32 y, int32 z)
312 if (row == NULL ||
322 // seek to the image row
329 //printf("reading %ld bytes 8 Bit uncompressed row: %ld, channel: %ld\n", bytes, y, z);
330 ret = fStream->Read(row, bytes);
342 //printf("reading 8 Bit RLE compressed row: %ld, channel: %ld\n", y, z);
343 // ret = _ReadRLE8((uint8*)row, fWidth);
344 ret = _ReadRLE8((uint8*)row, rleBuffer, fWidth);
346 //printf("reading 16 Bit RLE compressed row: %ld, channel: %ld\n", y, z);
347 // ret = _ReadRLE16((uint16*)row, fWidth);
349 ret = _ReadRLE16((uint16*)row, (uint16*)rleBuffer, fWidth);
360 // writes a row of image data to the stream
362 // row pointer to buffer (row of pixels) to write
363 // y index (line number) of this row
366 SGIImage::WriteRow(void* row, int32 y, int32 z)
369 if (row == NULL ||
381 // Seek to the image row
387 //printf("writing %ld bytes %ld byte/channel uncompressed row: %ld, channel: %ld\n", bytes, fBytesPerChannel, y, z);
388 ret = fStream->Write(row, bytes);
391 _WriteChar(*row);
392 row++;
396 _WriteShort(*row);
397 row++;
406 // First check the last row written...
411 uint8* src = (uint8*)row;
417 uint16* src = (uint16*)row;
444 uint8* src = (uint8*)row;
459 uint16* src = (uint16*)row;
482 //printf("writing %d pixels %ld byte/channel RLE row: %ld, channel: %ld\n", fWidth, fBytesPerChannel, y, z);
485 x = _WriteRLE8((uint8*)row, fWidth);
487 x = _WriteRLE16((uint16*)row, fWidth);
492 memcpy(fARLERow, row, fWidth * fBytesPerChannel);
598 // row pointer to buffer for one row
599 // numPixels number of pixels that fit into row buffer
601 SGIImage::_ReadRLE8(uint8* row, int32 numPixels) const
644 *row = buffer[bufferPos ++];
645 row ++;
664 *row = ch;
665 row ++;
679 // row pointer to buffer for one row
680 // numPixels number of pixels that fit into row buffer
682 SGIImage::_ReadRLE8(uint8* row, uint8* rleBuffer, int32 numPixels) const
703 *row = *rleBuffer ++;
704 row ++;
713 *row = ch;
714 row ++;
723 SGIImage::_ReadRLE8(uint8* row, int32 numPixels) const
739 *row = _ReadChar();
740 row ++;
748 *row = ch;
749 row ++;
771 // row pointer to buffer for one row
772 // numPixels number of pixels that fit into row buffer
774 SGIImage::_ReadRLE16(uint16* row, int32 numPixels) const
815 *row = B_HOST_TO_BENDIAN_INT16(buffer[bufferPos ++]);
816 row++;
835 *row = ch;
836 row++;
849 // row pointer to buffer for one row
850 // numPixels number of pixels that fit into row buffer
852 SGIImage::_ReadRLE16(uint16* row, uint16* rleBuffer, int32 numPixels) const
873 *row = B_HOST_TO_BENDIAN_INT16(*rleBuffer ++);
874 row++;
883 *row = ch;
884 row++;
896 // row pointer to buffer for one row
897 // numPixels number of pixels that fit into row buffer
899 SGIImage::_WriteRLE8(uint8* row, int32 numPixels) const
909 start = row;
910 row += 2;
913 while (x > 0 && (row[-2] != row[-1] || row[-1] != row[0])) {
914 row++;
918 row -= 2;
921 count = row - start;
942 start = row;
943 repeat = row[0];
945 row ++;
948 while (x > 0 && *row == repeat) {
949 row ++;
953 count = row - start;
981 // row pointer to buffer for one row
982 // numPixels number of pixels that fit into row buffer
984 SGIImage::_WriteRLE16(uint16* row, int32 numPixels) const
995 start = row;
996 row += 2;
999 while (x > 0 && (row[-2] != row[-1] || row[-1] != row[0])) {
1000 row ++;
1004 row -= 2;
1007 count = row - start;
1028 start = row;
1029 repeat = row[0];
1031 row ++;
1034 while (x > 0 && *row == repeat) {
1035 row ++;
1039 count = row - start;