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

Go to the source code of this file.

Classes

class  pagespeed::image_compression::ConversionTimeoutHandler
 Class for managing image conversion timeouts. More...
 
struct  pagespeed::image_compression::ScanlineWriterConfig
 

Namespaces

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

Typedefs

typedef uint8_t pagespeed::image_compression::PixelRgbaChannels [RGBA_NUM_CHANNELS]
 
typedef uint32 pagespeed::image_compression::size_px
 

Enumerations

enum  QuirksMode { QUIRKS_NONE = 0, QUIRKS_CHROME, QUIRKS_FIREFOX }
 
enum  ImageFormat {
  IMAGE_UNKNOWN, IMAGE_JPEG, IMAGE_PNG, IMAGE_GIF,
  IMAGE_WEBP
}
 
enum  PixelFormat { pagespeed::image_compression::UNSUPPORTED, pagespeed::image_compression::RGB_888, pagespeed::image_compression::RGBA_8888, pagespeed::image_compression::GRAY_8 }
 
enum  RgbaChannels {
  RGBA_RED = 0, RGBA_GREEN, RGBA_BLUE, RGBA_ALPHA,
  RGBA_NUM_CHANNELS
}
 
enum  PreferredLibwebpLevel { WEBP_NONE = 0, WEBP_LOSSY, WEBP_LOSSLESS, WEBP_ANIMATED }
 

Functions

uint32_t pagespeed::image_compression::PackHiToLo (uint8_t i3, uint8_t i2, uint8_t i1, uint8_t i0)
 
uint32_t pagespeed::image_compression::PackAsArgb (uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue)
 Packs the given A, R, G, B values into a single ARGB uint32.
 
uint32_t pagespeed::image_compression::RgbaToPackedArgb (const PixelRgbaChannels rgba)
 
uint32_t pagespeed::image_compression::RgbToPackedArgb (const PixelRgbaChannels rgba)
 
uint32_t pagespeed::image_compression::GrayscaleToPackedArgb (const uint8_t luminance)
 
const char * pagespeed::image_compression::ImageFormatToMimeTypeString (ImageFormat image_type)
 Returns the MIME-type string corresponding to the given ImageFormat.
 
const char * pagespeed::image_compression::ImageFormatToString (ImageFormat image_type)
 Returns a string representation of the given ImageFormat.
 
const char * pagespeed::image_compression::GetPixelFormatString (PixelFormat pixel_format)
 Returns a string representation of the given PixelFormat.
 
size_t pagespeed::image_compression::GetBytesPerPixel (PixelFormat pixel_format)
 
net_instaweb::ImageType pagespeed::image_compression::ComputeImageType (const StringPiece &buf)
 

Variables

const uint8_t pagespeed::image_compression::kAlphaOpaque = 255
 
const uint8_t pagespeed::image_compression::kAlphaTransparent = 0