claw  1.9.0
Public Member Functions | Public Attributes | List of all members
claw::graphic::jpeg::writer::options Struct Reference

Parameters of the writing algorithm. More...

#include <jpeg.hpp>

Public Member Functions

 options ()
 Default constructor. More...
 
 options (unsigned char compression_quality_, bool progressive_)
 Constructor. More...
 

Public Attributes

unsigned char quality
 Quality level to use in the saved stream.
 
bool progressive
 Tell if we save a progressive jpeg.
 

Detailed Description

Parameters of the writing algorithm.

Definition at line 170 of file jpeg.hpp.

Constructor & Destructor Documentation

◆ options() [1/2]

claw::graphic::jpeg::writer::options::options ( )

Default constructor.

Remarks
Default options are quality = 75 % and progressive = false.

Definition at line 127 of file jpeg_writer.cpp.

◆ options() [2/2]

claw::graphic::jpeg::writer::options::options ( unsigned char  quality_,
bool  progressive_ 
)

Constructor.

Parameters
quality_Quality of the saved image.
progressive_Tell if we save a progressive jpeg.
Remarks
If quality_ > 100, then it will be adjusted to 100 when saving.

Definition at line 138 of file jpeg_writer.cpp.


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