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

Helper that manages the lifetime of the png_ptr and info_ptr. More...

#include "png_optimizer.h"

Public Types

enum  Type { READ, WRITE }
 

Public Member Functions

 ScopedPngStruct (Type type, MessageHandler *handler)
 
bool valid () const
 
bool reset ()
 
png_structp png_ptr () const
 
png_infop info_ptr () const
 

Detailed Description

Helper that manages the lifetime of the png_ptr and info_ptr.

Member Function Documentation

bool pagespeed::image_compression::ScopedPngStruct::reset ( )

This will only return false as a result of a longjmp due to an unhandled libpng error.


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