Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions | Variables
image_analysis.h File Reference
#include <cstddef>
#include "pagespeed/kernel/base/basictypes.h"
#include "pagespeed/kernel/image/image_util.h"

Go to the source code of this file.

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 
 pagespeed
 for size_t
 

Functions

bool pagespeed::image_compression::SobelGradient (const uint8_t *image, int width, int height, int bytes_per_line, PixelFormat pixel_format, MessageHandler *handler, uint8_t *gradient)
 
void pagespeed::image_compression::Histogram (const uint8_t *image, int width, int height, int bytes_per_line, int x0, int y0, float *hist)
 
float pagespeed::image_compression::PhotoMetric (const uint8_t *image, int width, int height, int bytes_per_line, PixelFormat pixel_format, float threshold, MessageHandler *handler)
 
float pagespeed::image_compression::WidestPeakWidth (const float *hist, float threshold)
 
bool pagespeed::image_compression::IsPhoto (ScanlineReaderInterface *reader, MessageHandler *handler)
 
bool pagespeed::image_compression::AnalyzeImage (ImageFormat image_type, const void *image_buffer, size_t buffer_length, int *width, int *height, bool *is_progressive, bool *is_animated, bool *has_transparency, bool *is_photo, int *quality, ScanlineReaderInterface **reader, MessageHandler *handler)
 

Variables

const int pagespeed::image_compression::kNumColorHistogramBins = 256