text: /*
   *  Histogram.h
   *  vImage_Framework
   *
   *  Copyright (c) 2003 Apple Computer. All rights reserved.
   *
   */
  
  #ifndef VIMAGE_HISTOGRAM_H
  #define VIMAGE_HISTOGRAM_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #include <vImage/vImage_Types.h>
  
  vImage_Error 
  vImageHistogramCalculation_Planar8( 
  	const vImage_Buffer *src, 
  	vImagePixelCount *histogram, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramCalculation_PlanarF( 
  	const vImage_Buffer *src, 
  	vImagePixelCount *histogram, 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramCalculation_ARGB8888( 
  	const vImage_Buffer *src, 
  	vImagePixelCount *histogram[4], 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramCalculation_ARGBFFFF( 
  	const vImage_Buffer *src, 
  	vImagePixelCount *histogram[4], 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEqualization_Planar8( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEqualization_PlanarF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEqualization_ARGB8888( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEqualization_ARGBFFFF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	unsigned int histogram_entries,  
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramSpecification_Planar8( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	const vImagePixelCount *desired_histogram, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramSpecification_PlanarF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	const vImagePixelCount *desired_histogram, 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramSpecification_ARGB8888( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	const vImagePixelCount *desired_histogram[4], 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageHistogramSpecification_ARGBFFFF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	const vImagePixelCount *desired_histogram[4], 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageContrastStretch_Planar8( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageContrastStretch_PlanarF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageContrastStretch_ARGB8888( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageContrastStretch_ARGBFFFF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEndsInContrastStretch_Planar8( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	unsigned int percent_low, 
  	unsigned int percent_high, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEndsInContrastStretch_PlanarF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	unsigned int percent_low, 
  	unsigned int percent_high, 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEndsInContrastStretch_ARGB8888( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	const unsigned int percent_low[4], 
  	const unsigned int percent_high[4], 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  vImage_Error 
  vImageEndsInContrastStretch_ARGBFFFF( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	void *tempBuffer, 
  	const unsigned int percent_low[4], 
  	const unsigned int percent_high[4], 
  	unsigned int histogram_entries, 
  	Pixel_F minVal, 
  	Pixel_F maxVal, 
  	vImage_Flags flags )    __OSX_AVAILABLE_STARTING( __MAC_10_3, __IPHONE_5_0 );
  
  /*
   * It is recommended that you use the kvImageGetTempBufferSize flag 
   * with the appropriate function, instead of using this API 
   * Simply pass the kvImageGetTempBufferSize flag in addition to all 
   * the regular parameters. The size will be returned in the  
   * vImage_Error result.  
   * kvImageGetTempBufferSize is for MacOS X.4 and later. 
   */
  size_t 
  vImageGetMinimumTempBufferSizeForHistogram( 
  	const vImage_Buffer *src, 
  	const vImage_Buffer *dest, 
  	unsigned int histogram_entries, 
  	vImage_Flags flags, 
  	size_t bytesPerPixel )    __OSX_AVAILABLE_BUT_DEPRECATED( __MAC_10_3, __MAC_10_4, __IPHONE_NA, __IPHONE_NA );
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif
  