~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to src/iop/useless.c

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2011-07-12 09:36:46 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110712093646-yp9dbxan44dmw15h
Tags: 0.9-1
* New upstream release.
* Remove all patches now upstream; only patch for
  -Wno-error=unused-but-set-variable remains.
* Bump Standards-Version to 3.9.2 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  return _("silly example");
80
80
}
81
81
 
 
82
// some additional flags (self explanatory i think):
 
83
int
 
84
flags()
 
85
{
 
86
  return IOP_FLAGS_INCLUDE_IN_STYLES | IOP_FLAGS_SUPPORTS_BLENDING;
 
87
}
 
88
 
82
89
// where does it appear in the gui?
83
90
int
84
91
groups ()
115
122
  // iterate over all output pixels (same coordinates as input)
116
123
#ifdef _OPENMP
117
124
  // optional: parallelize it!
118
 
#pragma omp parallel for default(none) schedule(static) shared(i,o,roi_in,roi_out,d)
 
125
  #pragma omp parallel for default(none) schedule(static) shared(i,o,roi_in,roi_out,d)
119
126
#endif
120
127
  for(int j=0; j<roi_out->height; j++)
121
128
  {
151
158
  // our module is disabled by default
152
159
  // by default:
153
160
  module->default_enabled = 0;
154
 
  // we are pretty late in the pipe:
155
 
  module->priority = 900;
 
161
  // order has to be changed by editing the dependencies in tools/iop_dependencies.py
 
162
  module->priority = 901; // module order created by iop_dependencies.py, do not edit!
156
163
  module->params_size = sizeof(dt_iop_useless_params_t);
157
164
  module->gui_data = NULL;
158
165
  // init defaults:
238
245
// void gui_post_expose(dt_iop_module_t *self, cairo_t *cr, int32_t width, int32_t height, int32_t pointerx, int32_t pointery);
239
246
// int mouse_moved(dt_iop_module_t *self, double x, double y, int which);
240
247
// int button_pressed(dt_iop_module_t *self, double x, double y, int which, int type, uint32_t state);
 
248
// int button_released(struct dt_iop_module_t *self, double x, double y, int which, uint32_t state);
 
249
// int scrolled(dt_iop_module_t *self, double x, double y, int up, uint32_t state);
241
250
 
 
251
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-space on;