ip = (short (*)[4]) image;
rp = ip[0];
for (row=0; row < height; row++, ip+=width) {
- if (row & (jh.sraw >> 1))
+ if (row & (jh.sraw >> 1)) {
for (col=0; col < width; col+=2)
for (c=1; c < 3; c++)
if (row == height-1)
ip[col][c] = ip[col-width][c];
else ip[col][c] = (ip[col-width][c] + ip[col+width][c] + 1) >> 1;
+ }
for (col=1; col < width; col+=2)
for (c=1; c < 3; c++)
if (col == width-1)
}
if (!dng_version)
if ( (tiff_samples == 3 && tiff_ifd[raw].bytes &&
- tiff_bps != 14 && tiff_bps != 2048 &&
+ tiff_bps != 14 && tiff_bps != 2048 &&
tiff_compress != 32769 && tiff_compress != 32770)
|| (tiff_bps == 8 && !strstr(make,"KODAK") && !strstr(make,"Kodak") &&
!strstr(model2,"DEBUG RAW")))
// CINELERRA
- if (flip & 4)
+ if (flip & 4)
sprintf(dcraw_info, "%d %d", height, width);
else
sprintf(dcraw_info, "%d %d", width, height);
// CINELERRA
-// Export color matrix to Cinelerra.
+// Export color matrix to Cinelerra.
// It can't be applied before interpolation.
k = 0;
for(i = 0; i < 3; i++)
int row, col;
float *output;
- for (row = 0; row < height; row++)
+ for (row = 0; row < height; row++)
{
output = dcraw_data[row];
if(document_mode)
{
- for (col = 0; col < width; col++)
+ for (col = 0; col < width; col++)
{
ushort *pixel = image[row * width + col];
}
else
{
- for (col = 0; col < width; col++)
+ for (col = 0; col < width; col++)
{
ushort *pixel = image[row * width + col];
if(dcraw_alpha) *output++ = 1.0;
}
}
- }
+ }
}
goto next;
}
write_fun = &CLASS write_ppm_tiff;
-
-
-
+
+
+
// CINELERRA
write_fun = write_cinelerra;
-
-
+
+
if (thumbnail_only) {
if ((status = !thumb_offset)) {
fprintf (stderr,_("%s has no thumbnail.\n"), ifname);