~ubuntu-branches/debian/wheezy/ghostscript/wheezy

« back to all changes in this revision

Viewing changes to base/gxdcolor.c

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard
  • Date: 2012-02-10 19:27:35 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20120210192735-itmbfs6nfl8t9qm8
Tags: 9.05~dfsg-1
* New upstream release.
* Update copyright file:
  + Improve Copyright shortnames:
    - BSD → BSD-3-Clause
    - MIT~Open → NTP~Open
    - MIT~WSU → NTP~WSU
    - MIT~Lucent → NTP~Lucent
    - other-Adobe → BSD-3-Clause~Adobe
  + Fix merge double Files-Excluded, and list globbing before specific
    files.
  + Quote licenses in Comment fields.
  + Drop duplicate Comment fields.
  + Fix refer to license shortname AFPL~AFPL (not AFPL).
  + Extend copyright years.
  + Add new Files section, Apache-2.0 licensed (TrueType file, not
    linked code so not challenging GPL).
  + Drop a few Files sections and a License section.
* strip convenience library openjpeg from upstream source.
* Imported Upstream version 9.05~dfsg
* Drop patches 020110819 and 1001, applied upstream.
* Explicitly disable use of openjpeg: Now preferred if available but
  requires patching for ICC and CMYK support.
* Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
    gx_dc_type_pattern,         /* patterns */
183
183
    gx_dc_type_ht_binary,       /* binary halftone device colors */
184
184
    gx_dc_type_ht_colored,      /* general halftone device colors */
185
 
    gx_dc_type_wts              /* well-tempered screen device colors */
186
185
};
187
186
 
188
187
int
281
280
    const gx_device_color *         pdevc,      /* ignored */
282
281
    const gx_device_color_saved *   psdc,       /* ignored */
283
282
    const gx_device *               dev,        /* ignored */
284
 
    uint                            offset,     /* ignored */
 
283
    int64_t                         offset,     /* ignored */
285
284
    byte *                          data,       /* ignored */
286
285
    uint *                          psize )
287
286
{
295
294
    const gs_imager_state * pis,                /* ignored */
296
295
    const gx_device_color * prior_devc,         /* ignored */
297
296
    const gx_device *       dev,                /* ignored */
298
 
    uint                    offset,             /* ignored */
 
297
    int64_t                 offset,             /* ignored */
299
298
    const byte *            pdata,              /* ignored */
300
299
    uint                    size,               /* ignored */
301
300
    gs_memory_t *           mem )               /* ignored */
309
308
    const gx_device_color *         pdevc,      /* ignored */
310
309
    const gx_device_color_saved *   psdc,       /* ignored */
311
310
    const gx_device *               dev,        /* ignored */
312
 
    uint                            offset,     /* ignored */
 
311
    int64_t                         offset,     /* ignored */
313
312
    byte *                          data,       /* ignored */
314
313
    uint *                          psize )
315
314
{
322
321
    const gs_imager_state * pis,                /* ignored */
323
322
    const gx_device_color * prior_devc,         /* ignored */
324
323
    const gx_device *       dev,                /* ignored */
325
 
    uint                    offset,             /* ignored */
 
324
    int64_t                 offset,             /* ignored */
326
325
    const byte *            pdata,              /* ignored */
327
326
    uint                    size,               /* ignored */
328
327
    gs_memory_t *           mem )               /* ignored */
378
377
    const gs_imager_state * pis,                /* ignored */
379
378
    const gx_device_color * prior_devc,         /* ignored */
380
379
    const gx_device *       dev,                /* ignored */
381
 
    uint                    offset,             /* ignored */
 
380
    int64_t                 offset,             /* ignored */
382
381
    const byte *            pdata,              /* ignored */
383
382
    uint                    size,               /* ignored */
384
383
    gs_memory_t *           mem )               /* ignored */
420
419
        colors[0] = colors[1] = pdevc->colors.pure;
421
420
        if (source == NULL)
422
421
            set_rop_no_source(source, no_source, dev);
423
 
        return (*dev_proc(dev, strip_copy_rop))
424
 
            (dev, source->sdata, source->sourcex, source->sraster,
425
 
             source->id, (source->use_scolors ? source->scolors : NULL),
426
 
             NULL /*arbitrary */ , colors, x, y, w, h, 0, 0, lop);
 
422
        if (source->planar_height == 0)
 
423
            return (*dev_proc(dev, strip_copy_rop))
 
424
                (dev, source->sdata, source->sourcex, source->sraster,
 
425
                 source->id, (source->use_scolors ? source->scolors : NULL),
 
426
                 NULL /*arbitrary */ , colors, x, y, w, h, 0, 0, lop);
 
427
        else
 
428
            return (*dev_proc(dev, strip_copy_rop2))
 
429
                (dev, source->sdata, source->sourcex, source->sraster,
 
430
                 source->id, (source->use_scolors ? source->scolors : NULL),
 
431
                 NULL /*arbitrary */ , colors, x, y, w, h, 0, 0, lop, source->planar_height);
427
432
    }
428
433
}
429
434
 
505
510
    const gx_device_color *         pdevc,
506
511
    const gx_device_color_saved *   psdc,       /* ignored */
507
512
    const gx_device *               dev,
508
 
    uint                            offset,     /* ignored */
 
513
    int64_t                         offset,     /* ignored */
509
514
    byte *                          pdata,
510
515
    uint *                          psize )
511
516
{
553
558
    const gs_imager_state * pis,                /* ignored */
554
559
    const gx_device_color * prior_devc,         /* ignored */
555
560
    const gx_device *       dev,
556
 
    uint                    offset,             /* ignored */
 
561
    int64_t                 offset,             /* ignored */
557
562
    const byte *            pdata,
558
563
    uint                    size,
559
564
    gs_memory_t *           mem )               /* ignored */