~ubuntu-branches/ubuntu/saucy/argyll/saucy

« back to all changes in this revision

Viewing changes to render/timage.c

  • Committer: Package Import Robot
  • Author(s): Christian Marillat
  • Date: 2012-04-25 07:46:07 UTC
  • mfrom: (1.2.2) (13.1.15 sid)
  • Revision ID: package-import@ubuntu.com-20120425074607-yjqadetw8kum9skc
Tags: 1.4.0-4
Should Build-Depends on libusb-dev (Closes: #670329).

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "render.h"
39
39
 
40
40
#define DEF_DPI 200
 
41
#define DITHER 0                        /* Test 8 bit didthering */
41
42
 
42
43
void
43
44
usage(void) {
174
175
                if (cmyk)
175
176
                        error("CMYK not supported for test chart");
176
177
 
177
 
                if ((r = new_render2d(w, h, NULL, res, res, rgb_2d, 0, depth)) == NULL) {
 
178
                if ((r = new_render2d(w, h, NULL, res, res, rgb_2d, 0, depth, DITHER)) == NULL) {
178
179
                        error("new_render2d() failed");
179
180
                }
180
181
        
299
300
                h = (1.0 + 2.0 * bb) * hh;
300
301
                w = (4.0 * bb + 0.25 + 2.0 * r3o2) * hh;
301
302
        
302
 
                if ((r = new_render2d(w, h, NULL, res, res, cmyk ? cmyk_2d : rgb_2d, 0, depth)) == NULL) {
 
303
                if ((r = new_render2d(w, h, NULL, res, res, cmyk ? cmyk_2d : rgb_2d, 0, depth, DITHER)) == NULL) {
303
304
                        error("new_render2d() failed");
304
305
                }
305
306
        
567
568
                h = (1.0 + 2.0 * bb) * hh;
568
569
                w = (2.0 * bb + 0.20 * 7.0) * hh;
569
570
        
570
 
                if ((r = new_render2d(w, h, NULL, res, res, rgb_2d, 0, depth)) == NULL) {
 
571
                if ((r = new_render2d(w, h, NULL, res, res, rgb_2d, 0, depth, DITHER)) == NULL) {
571
572
                        error("new_render2d() failed");
572
573
                }
573
574
        
637
638
                bs = (bb * hh)/(schart + 1.0);
638
639
                ss = hh * (1.0 - bb)/schart;
639
640
        
640
 
                if ((r = new_render2d(w, h, NULL, res, res, lab_2d, 0, depth)) == NULL) {
 
641
                if ((r = new_render2d(w, h, NULL, res, res, lab_2d, 0, depth, DITHER)) == NULL) {
641
642
                        error("new_render2d() failed");
642
643
                }
643
644