Lines Matching defs:row

35 #define FC(row,col) \
36 (fFilters >> ((((row) << 1 & 14) + ((col) & 1)) << 1) & 3)
56 uint16* row;
228 DCRaw::_Bayer(int32 column, int32 row)
230 return fImageData[((row) >> fShrink) * fOutputWidth
231 + ((column) >> fShrink)][FC(row, column)];
265 DCRaw::_FlipIndex(uint32 row, uint32 col, uint32 flip)
268 SWAP(row, col);
270 row = fInputHeight - 1 - row;
274 return row * fInputWidth + col;
956 uint32 row, col, x, y;
962 for (row = 0; row < 8; row++) {
964 c = FC(row, col);
965 if ((val = fWhite[row][col] - fMeta.black) > 0)
982 for (row = 0; row < fOutputHeight - 7; row += 8) {
985 for (y = row; y < row + 8; y++) {
1056 for (row = 0; row < fOutputHeight; row++) {
1059 val = fImageData[row * fOutputWidth + col][c];
1064 fImageData[row * fOutputWidth + col][c] = CLIP(val);
1078 int32 scale = 1, sh, c, i, j, k, m, row, col, size, numColors, dim = 0;
1106 for (row = 0; row < (int32)fOutputHeight; row++) {
1108 fimg[(row << dim) + col]
1109 = fImageData[row * fOutputWidth + col][c] << scale;
1179 for (row = 0; row < (int32)fOutputHeight; row++) {
1181 fImageData[row * fOutputWidth + col][c]
1182 = (uint16)CLIP(fimg[(row << dim) + col] + 0.5);
1189 for (row = 0; row < 2; row++) {
1190 mul[row] = 0.125 * fMeta.pre_multipliers[FC(row + 1, 0) | 1]
1191 / fMeta.pre_multipliers[FC(row, 0) | 1];
1196 for (wlast = -1, row = 1; row < (int32)fInputHeight - 1; row++) {
1197 while (wlast < (int32)row + 1) {
1207 for (col = (FC(row, 0) & 1) + 1; col < (int32)fInputWidth - 1;
1211 * mul[row & 1] + (window[1][col] - fMeta.black) * 0.5
1213 diff = _Bayer(col, row) - avg;
1221 _Bayer(col, row) = (uint16)CLIP(avg + diff + 0.5);
1236 uint32 row, col;
1249 for (row = 0; row < fInputHeight; row++) {
1251 data[row * fInputWidth + col][FC(row, col)]
1252 = _Bayer(col, row);
1267 for (row = FC(1, 0) >> 1; row < fInputHeight; row += 2) {
1268 for (col = FC(row, 1) & 1; col < fInputWidth; col += 2) {
1269 fImageData[row * fInputWidth + col][1]
1270 = fImageData[row * fInputWidth + col][3];
1680 uint32 row, col, y, x, f, c, sum[8];
1682 for (row = 0; row < fInputHeight; row++) {
1684 if (col == border && row >= border && row < fInputHeight - border)
1689 for (y = row - 1; y != row + 2; y++) {
1699 f = _FilterCoefficient(col, row);
1703 fImageData[row * fInputWidth + col][c]
1724 uint32 top, left, row, col;
1754 for (row = top < 2 ? 2 : top; row < top + TS
1755 && row < fInputHeight - 2; row++) {
1756 col = left + (FC(row, left) == 1);
1759 for (fc = FC(row, col); col < left + TS
1761 pix = fImageData + row * fInputWidth + col;
1764 rgb[0][row - top][col - left][1]
1770 rgb[1][row - top][col - left][1] = ULIM(val,
1777 for (row = top + 1; row < top + TS - 1
1778 && row < fInputHeight - 1; row++) {
1781 pix = fImageData + row * fInputWidth + col;
1782 rix = &rgb[d][row - top][col - left];
1783 if ((c = 2 - FC(row, col)) == 1) {
1784 c = FC(row + 1,col);
1800 c = FC(row, col);
1804 lab[d][row - top][col - left][c]
1813 for (row = top + 2; row < top+TS-2 && row < fInputHeight; row++) {
1814 tr = row - top;
1852 for (row = top + 3; row < top + TS - 3 && row < fInputHeight - 3;
1853 row++) {
1854 tr = row - top;
1867 fImageData[row * fInputWidth + col][c]
1872 fImageData[row * fInputWidth + col][c]
1935 uint32 row, col, c, i, j, k;
2053 for (row = 0; row < fInputHeight; row++) {
2066 img[0] = img[FC(row, col)];
2275 jh->row = (ushort *)calloc(jh->wide*jh->clrs, 2);
2276 if (jh->row == NULL)
2320 uint16* outp = jh->row;
2347 for (uint32 row = 0; row < fInputHeight; row++) {
2350 _Bayer(column, row) = pixel[column];
2367 for (uint32 row = 0; row < fInputHeight; row++) {
2370 _Bayer(column, row) = _GetDecodeBits(12);
2371 //fImageData[((row) >> fShrink)*fOutputWidth + ((column) >> fShrink)][FC(row,column)] = bits;
2497 for (uint32 row = 0; row < _Raw().height; row += 8) {
2538 fRead.Seek(26 + row * _Raw().width / 4, SEEK_SET);
2556 uint32 irow = row - fTopMargin + r;
2580 int jwide, jrow, jcol, val, jidx, i, j, row = 0, col = 0;
2594 val = jh.row[jcol];
2604 row = jidx / fCR2Slice[1 + j];
2610 row--;
2613 if (uint32(row - fTopMargin) < fInputHeight) {
2615 _Bayer(col - fLeftMargin, row - fTopMargin) = val;
2623 row++;
2629 free(jh.row);
2707 for (uint32 row = 0; row < height; row++, sourceOffset += rowStep) {
2720 for (row = 0; row < fOutputHeight; row++, soff += rstep) {