~ubuntu-branches/debian/stretch/darktable/stretch

« back to all changes in this revision

Viewing changes to src/develop/tiling.c

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2013-07-28 18:18:54 UTC
  • mfrom: (13.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130728181854-0ighzoz5nvq0zzoe
Tags: 1.2.2-1
* New upstream "hardware support release"
  - updated rawspeed r553. Support for Canon EOS 700D, Nikon Coolpix
    P330, New Olymbus base curve Updated Adobe Coeffs
  - Enhanced color matrices: Canon 700D (from Canon 650D), Canon 100D
    (from Canon 650D), Sony NEX-7
  - White balance presets: Some updates from UFRaw, Canon 100D, Canon
    700D, Sony SLT-A37 Nikon, Coolpix P330
  - Noise profiles: Canon EOS-M, Olympus E-600 (from: Olympus E-30),
    Olympus E-620 (from: Olympus E-30), Samsung WB2000, Sony A99v,
    Panasonic DMC-G10 iso 100, Nikon D60
  - Bug fixes: 0 star rating working again, LT: ctrl+d duplicates per
    default now, Some fixes concerning locale handling, double click on
    film strip jumps to image, remember position in collections, ctrl+k
    jumps to previous collection, Blending parameters are preserved when
    module is deactivated, In full-preview (alt-1) ratings and labels are
    only applied to image shown, libsquish compilation now optional, dr:
    deactivate interpolation at 200% zoom

Show diffs side-by-side

added added

removed removed

Lines of Context:
687
687
  const int tiles_y = height < roi_in->height ? ceilf(roi_in->height/(float)tile_ht) : 1;
688
688
 
689
689
  /* sanity check: don't run wild on too many tiles */
690
 
  if(tiles_x * tiles_y > DT_TILING_MAXTILES)
 
690
  if(tiles_x * tiles_y > dt_conf_get_int("maximum_number_tiles"))
691
691
  {
692
692
    dt_print(DT_DEBUG_DEV, "[default_process_tiling_ptp] gave up tiling for module '%s'. too many tiles: %d x %d\n", self->op, tiles_x, tiles_y);
693
693
    goto error;
927
927
    tiles_y = height < roi_out->height ? ceilf((float)roi_out->height / (float)_max(height - 2*overlap_out, 1)) : 1;
928
928
 
929
929
  /* sanity check: don't run wild on too many tiles */
930
 
  if(tiles_x * tiles_y > DT_TILING_MAXTILES)
 
930
  if(tiles_x * tiles_y > dt_conf_get_int("maximum_number_tiles"))
931
931
  {
932
932
    dt_print(DT_DEBUG_DEV, "[default_process_tiling_roi] gave up tiling for module '%s'. too many tiles: %d x %d\n", self->op, tiles_x, tiles_y);
933
933
    goto error;
1221
1221
  const int tiles_y = height < roi_in->height ? ceilf(roi_in->height/(float)tile_ht) : 1;
1222
1222
 
1223
1223
  /* sanity check: don't run wild on too many tiles */
1224
 
  if(tiles_x * tiles_y > DT_TILING_MAXTILES)
 
1224
  if(tiles_x * tiles_y > dt_conf_get_int("maximum_number_tiles"))
1225
1225
  {
1226
1226
    dt_print(DT_DEBUG_OPENCL, "[default_process_tiling_cl_ptp] aborted tiling for module '%s'. too many tiles: %d x %d\n", self->op, tiles_x, tiles_y);
1227
1227
    return FALSE;
1447
1447
    tiles_y = height < roi_out->height ? ceilf((float)roi_out->height / (float)_max(height - 2*overlap_out, 1)) : 1;
1448
1448
 
1449
1449
  /* sanity check: don't run wild on too many tiles */
1450
 
  if(tiles_x * tiles_y > DT_TILING_MAXTILES)
 
1450
  if(tiles_x * tiles_y > dt_conf_get_int("maximum_number_tiles"))
1451
1451
  {
1452
1452
    dt_print(DT_DEBUG_OPENCL, "[default_process_tiling_cl_roi] aborted tiling for module '%s'. too many tiles: %d x %d\n", self->op, tiles_x, tiles_y);
1453
1453
    return FALSE;