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 | Public Attributes | List of all members
pagespeed::image_compression::FrameSpec Struct Reference

#include "image_frame_interface.h"

Public Types

enum  DisposalMethod { DISPOSAL_UNKNOWN = 0, DISPOSAL_NONE, DISPOSAL_BACKGROUND, DISPOSAL_RESTORE }
 

Public Member Functions

void Reset ()
 
GoogleString ToString () const
 
bool Equals (const FrameSpec &other) const
 

Public Attributes

size_px width
 
size_px height
 
size_px top
 
size_px left
 
PixelFormat pixel_format
 
size_t duration_ms
 
DisposalMethod disposal
 
bool hint_progressive
 

Detailed Description

FrameSpec must fit entirely within its image; in other words ImageSpec::CanContainFrame(frame_spec) should return true.

Member Enumeration Documentation

Enumerator
DISPOSAL_RESTORE 
Todo:
TODO(vchudnov): May not be supported by WebP. If that's the case, treat as DISPOSAL_BACKGROUND instead.

Member Data Documentation

bool pagespeed::image_compression::FrameSpec::hint_progressive

Whether this frame was progressively encoded by the origin site, so that it could begin to be rendered even before the entire image was transferred. This does not affect the data format passed in or out of this API, but provides a hint that API clients may choose to take.


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