libopenraw  0.3.7
Public Member Functions | List of all members
OrDiag Class Reference

Dump a RawFile. (functor) More...

Public Member Functions

 OrDiag (std::ostream &out, const std::string &extract_thumbs, bool dev_mode)
 Constructor. More...
 
std::string cfaPatternToString (ORMosaicInfoRef pattern)
 
std::string cfaPatternToString (::or_cfa_pattern t)
 
std::string dataTypeToString (or_data_type t)
 
std::string extractThumb (ORThumbnailRef thumb)
 Extract thumbnail to a file. More...
 
void dumpPreviews (ORRawFileRef rf)
 Dump the previews of the raw file to the output stream.
 
void dumpRawData (ORRawFileRef rf)
 
void dumpMetaData (ORRawFileRef rf)
 
void operator() (const std::string &s)
 

Detailed Description

Dump a RawFile. (functor)

Definition at line 46 of file ordiag.cpp.

Constructor & Destructor Documentation

◆ OrDiag()

OrDiag::OrDiag ( std::ostream &  out,
const std::string &  extract_thumbs,
bool  dev_mode 
)
inline

Constructor.

Parameters
outThe output stream
extract_thumbsIf "all" extract all thumbnails, otherwise try to guess the size.
dev_modeIf true the output format for devlopment.

Definition at line 55 of file ordiag.cpp.

Member Function Documentation

◆ extractThumb()

std::string OrDiag::extractThumb ( ORThumbnailRef  thumb)
inline

Extract thumbnail to a file.

Returns
The filename. If empty, nothing was done.

Definition at line 167 of file ordiag.cpp.

References OR_DATA_TYPE_JPEG, OR_DATA_TYPE_PIXMAP_8RGB, or_thumbnail_data(), or_thumbnail_data_size(), or_thumbnail_dimensions(), and or_thumbnail_format().

Referenced by dumpPreviews().


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