Lines Matching refs:row_size
235 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
236 int row_count = (data_size + row_size - 1) / row_size;
237 int last_row_size = data_size % row_size;
238 FX_LPBYTE dest_buf = FX_Alloc( FX_BYTE, (row_size + 1) * row_count);
248 int move_size = row_size;
258 for (int byte = 0; byte < row_size && byte_cnt < (int)data_size; byte++) {
273 up = pSrcData[byte - row_size];
286 up = pSrcData[byte - row_size];
299 up = pSrcData[byte - row_size];
303 upper_left = pSrcData[byte - row_size - BytesPerPixel];
315 pDestData += (row_size + 1);
316 pSrcData += row_size;
320 data_size = (row_size + 1) * row_count - (last_row_size > 0 ? (row_size - last_row_size) : 0);
325 int row_size = (nPixels * bpc * nColors + 7) / 8;
329 FXSYS_memmove32(pDestData, pSrcData + 1, row_size);
332 for (int byte = 0; byte < row_size; byte ++) {
389 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
390 int row_count = (data_size + row_size) / (row_size + 1);
391 int last_row_size = data_size % (row_size + 1);
392 FX_LPBYTE dest_buf = FX_Alloc( FX_BYTE, row_size * row_count);
402 int move_size = row_size;
412 for (int byte = 0; byte < row_size && byte_cnt < (int)data_size; byte ++) {
426 up = pDestData[byte - row_size];
438 up = pDestData[byte - row_size];
450 row_size];
454 upper_left = pDestData[byte - row_size - BytesPerPixel];
465 pSrcData += row_size + 1;
466 pDestData += row_size;
471 data_size = row_size * row_count - (last_row_size > 0 ? (row_size + 1 - last_row_size) : 0);
473 static void TIFF_PredictorEncodeLine(FX_LPBYTE dest_buf, int row_size, int BitsPerComponent, int Colors, int Columns)
498 for (int i = row_size - 1; i >= BytesPerPixel; i--) {
502 for (int i = row_size - BytesPerPixel; i >= BytesPerPixel; i -= BytesPerPixel) {
513 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
514 int row_count = (data_size + row_size - 1) / row_size;
515 int last_row_size = data_size % row_size;
517 FX_LPBYTE scan_line = data_buf + row * row_size;
518 if ((row + 1) * row_size > (int)data_size) {
519 row_size = last_row_size;
521 TIFF_PredictorEncodeLine(scan_line, row_size, BitsPerComponent, Colors, Columns);
524 static void TIFF_PredictLine(FX_LPBYTE dest_buf, int row_size, int BitsPerComponent, int Colors, int Columns)
543 for (int i = BytesPerPixel; i < row_size; i += 2) {
550 for (int i = BytesPerPixel; i < row_size; i ++) {
558 int row_size = (Colors * BitsPerComponent * Columns + 7) / 8;
559 int row_count = (data_size + row_size - 1) / row_size;
560 int last_row_size = data_size % row_size;
562 FX_LPBYTE scan_line = data_buf + row * row_size;
563 if ((row + 1) * row_size > (int)data_size) {
564 row_size = last_row_size;
566 TIFF_PredictLine(scan_line, row_size, BitsPerComponent, Colors, Columns);