~ubuntu-branches/ubuntu/quantal/imagemagick/quantal

« back to all changes in this revision

Viewing changes to Magick++/lib/Magick++/STL.h

  • Committer: Bazaar Package Importer
  • Author(s): Muharem Hrnjadovic
  • Date: 2009-06-04 13:01:13 UTC
  • mfrom: (1.1.5 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090604130113-my9114jxmafpwew3
Tags: 7:6.5.1.0-1.1ubuntu1
* Merge from debian unstable, remaining changes:
  - (Build-)depend on libltdl7-dev instead of libltdl3-dev (the armel buildds
    currently have both available).
  - Don't build-dep on librsvg, it brings in excessive dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
1832
1832
    MagickCore::GetImageException( first_->image(), &exceptionInfo );
1833
1833
    unlinkImages( first_, last_ );
1834
1834
    throwException( exceptionInfo );
1835
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
1836
1835
  }
1837
1836
 
1838
1837
  // Append images from list into single image in either horizontal or
1851
1850
    unlinkImages( first_, last_ );
1852
1851
    appendedImage_->replaceImage( image );
1853
1852
    throwException( exceptionInfo );
1854
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
1855
1853
  }
1856
1854
 
1857
1855
  // Average a set of images.
1868
1866
    unlinkImages( first_, last_ );
1869
1867
    averagedImage_->replaceImage( image );
1870
1868
    throwException( exceptionInfo );
1871
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
1872
1869
  }
1873
1870
 
1874
1871
  // Merge a sequence of images.
1898
1895
 
1899
1896
    // Report any error
1900
1897
    throwException( exceptionInfo );
1901
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
1902
1898
  }
1903
1899
 
1904
1900
  // Return format coders matching specified conditions.
1974
1970
          }
1975
1971
      }
1976
1972
    coder_list=(char **) MagickCore::RelinquishMagickMemory( coder_list );
1977
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
1973
    throwException( exceptionInfo );
1978
1974
  }
1979
1975
 
1980
1976
  //
2028
2024
    MagickCore::ColorPacket *histogram_array = 
2029
2025
      MagickCore::GetImageHistogram( image.constImage(), &colors, &exceptionInfo );
2030
2026
    throwException( exceptionInfo );
 
2027
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2031
2028
 
2032
2029
    // Clear out container
2033
2030
    histogram_->clear();
2045
2042
    // Deallocate histogram array
2046
2043
    histogram_array=(MagickCore::ColorPacket *)
2047
2044
      MagickCore::RelinquishMagickMemory(histogram_array);
2048
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
2049
2045
  }
2050
2046
                      
2051
2047
  // Break down an image sequence into constituent parts.  This is
2072
2068
 
2073
2069
    // Report any error
2074
2070
    throwException( exceptionInfo );
2075
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2071
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2076
2072
  }
2077
2073
 
2078
2074
  //
2088
2084
    MagickCore::GetImageException( first_->image(), &exceptionInfo );
2089
2085
    unlinkImages( first_, last_ );
2090
2086
    throwException( exceptionInfo );
2091
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2087
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2092
2088
  }
2093
2089
 
2094
2090
  // Merge a sequence of image frames which represent image layers.
2105
2101
    unlinkImages( first_, last_ );
2106
2102
    flattendImage_->replaceImage( image );
2107
2103
    throwException( exceptionInfo );
2108
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2104
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2109
2105
  }
2110
2106
 
2111
2107
  // Replace the colors of a sequence of images with the closest color
2159
2155
      }
2160
2156
 
2161
2157
    unlinkImages( first_, last_ );
2162
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2158
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2163
2159
  }
2164
2160
 
2165
2161
  // Create a composite image by combining several separate images.
2214
2210
    // Report any transparentImage() error
2215
2211
    MagickCore::GetImageException( first_->image(), &exceptionInfo );
2216
2212
    throwException( exceptionInfo );
2217
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2213
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2218
2214
  }
2219
2215
 
2220
2216
  // Morph a set of images
2241
2237
 
2242
2238
    // Report any error
2243
2239
    throwException( exceptionInfo );
2244
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2240
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2245
2241
  }
2246
2242
 
2247
2243
  // Inlay a number of images to form a single coherent picture.
2257
2253
    unlinkImages( first_, last_ );
2258
2254
    mosaicImage_->replaceImage( image );
2259
2255
    throwException( exceptionInfo );
2260
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2256
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2261
2257
  }
2262
2258
 
2263
2259
  // Quantize colors in images using current quantization settings
2295
2291
      }
2296
2292
 
2297
2293
    unlinkImages( first_, last_ );
2298
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2294
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2299
2295
  }
2300
2296
 
2301
2297
  // Read images into existing container (appending to container)
2312
2308
    MagickCore::DestroyImageInfo(imageInfo);
2313
2309
    insertImages( sequence_, images);
2314
2310
    throwException( exceptionInfo );
2315
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
2316
2311
  }
2317
2312
  template <class Container>
2318
2313
  void readImages( Container *sequence_,
2326
2321
    MagickCore::DestroyImageInfo(imageInfo);
2327
2322
    insertImages( sequence_, images );
2328
2323
    throwException( exceptionInfo );
2329
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2324
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2330
2325
  }
2331
2326
 
2332
2327
  // Write Images
2350
2345
 
2351
2346
    if ( errorStat != false )
2352
2347
      {
2353
 
        MagickCore::DestroyExceptionInfo( &exceptionInfo );
2354
2348
        return;
2355
2349
      }
2356
2350
 
2357
2351
    throwException( exceptionInfo );
2358
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2352
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2359
2353
  }
2360
2354
  // Write images to BLOB
2361
2355
  template <class InputIterator>
2380
2374
    unlinkImages( first_, last_ );
2381
2375
 
2382
2376
    throwException( exceptionInfo );
2383
 
    MagickCore::DestroyExceptionInfo( &exceptionInfo );
 
2377
    (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
2384
2378
  }
2385
2379
 
2386
2380
} // namespace Magick