Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
pagespeed::image_compression::JpegUtils Class Reference

Utility class that reads jpeg parameter from jpeg images. More...

#include "jpeg_utils.h"

Static Public Member Functions

static int GetImageQualityFromImage (const void *image_data, size_t image_length, MessageHandler *handler)
 

Detailed Description

Utility class that reads jpeg parameter from jpeg images.

Member Function Documentation

static int pagespeed::image_compression::JpegUtils::GetImageQualityFromImage ( const void *  image_data,
size_t  image_length,
MessageHandler handler 
)
static

Get image quality with which the input jpeg image is compressed. This method will return -1 if it is not able to either jpeg image is invalid or image quality can't be determined.

See comments in implementation for additional details on how quality is computed.


The documentation for this class was generated from the following file: