Make compilation unit rtengine/rtthumbnail.cc -Wextra clean, #4155
This commit is contained in:
@@ -7064,7 +7064,7 @@ double ImProcFunctions::getAutoDistor (const Glib::ustring &fname, int thumb_si
|
|||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Thumbnail* raw = rtengine::Thumbnail::loadFromRaw (fname, ri, sensorType, w_raw, h_raw, 1, 1.0, FALSE, 0);
|
Thumbnail* raw = rtengine::Thumbnail::loadFromRaw (fname, ri, sensorType, w_raw, h_raw, 1, 1.0, FALSE);
|
||||||
|
|
||||||
if (!raw) {
|
if (!raw) {
|
||||||
delete thumb;
|
delete thumb;
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ RawMetaDataLocation Thumbnail::loadMetaDataFromRaw (const Glib::ustring& fname)
|
|||||||
return rml;
|
return rml;
|
||||||
}
|
}
|
||||||
|
|
||||||
Thumbnail* Thumbnail::loadFromRaw (const Glib::ustring& fname, RawMetaDataLocation& rml, eSensorType &sensorType, int &w, int &h, int fixwh, double wbEq, bool rotate, int imageNum)
|
Thumbnail* Thumbnail::loadFromRaw (const Glib::ustring& fname, RawMetaDataLocation& rml, eSensorType &sensorType, int &w, int &h, int fixwh, double wbEq, bool rotate)
|
||||||
{
|
{
|
||||||
RawImage *ri = new RawImage (fname);
|
RawImage *ri = new RawImage (fname);
|
||||||
unsigned int tempImageNum = 0;
|
unsigned int tempImageNum = 0;
|
||||||
@@ -929,7 +929,7 @@ Thumbnail::~Thumbnail ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Simple processing of RAW internal JPGs
|
// Simple processing of RAW internal JPGs
|
||||||
IImage8* Thumbnail::quickProcessImage (const procparams::ProcParams& params, int rheight, rtengine::TypeInterpolation interp, double& myscale)
|
IImage8* Thumbnail::quickProcessImage (const procparams::ProcParams& params, int rheight, rtengine::TypeInterpolation interp)
|
||||||
{
|
{
|
||||||
|
|
||||||
int rwidth;
|
int rwidth;
|
||||||
@@ -1761,7 +1761,7 @@ unsigned char* Thumbnail::getGrayscaleHistEQ (int trim_width)
|
|||||||
return tmpdata;
|
return tmpdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Thumbnail::writeImage (const Glib::ustring& fname, int format)
|
bool Thumbnail::writeImage (const Glib::ustring& fname)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!thumbImg) {
|
if (!thumbImg) {
|
||||||
|
|||||||
@@ -72,12 +72,12 @@ public:
|
|||||||
void init ();
|
void init ();
|
||||||
|
|
||||||
IImage8* processImage (const procparams::ProcParams& pparams, eSensorType sensorType, int rheight, TypeInterpolation interp, const FramesMetaData *metadata, double& scale);
|
IImage8* processImage (const procparams::ProcParams& pparams, eSensorType sensorType, int rheight, TypeInterpolation interp, const FramesMetaData *metadata, double& scale);
|
||||||
IImage8* quickProcessImage (const procparams::ProcParams& pparams, int rheight, TypeInterpolation interp, double& scale);
|
IImage8* quickProcessImage (const procparams::ProcParams& pparams, int rheight, TypeInterpolation interp);
|
||||||
int getImageWidth (const procparams::ProcParams& pparams, int rheight, float &ratio);
|
int getImageWidth (const procparams::ProcParams& pparams, int rheight, float &ratio);
|
||||||
void getDimensions (int& w, int& h, double& scaleFac);
|
void getDimensions (int& w, int& h, double& scaleFac);
|
||||||
|
|
||||||
static Thumbnail* loadQuickFromRaw (const Glib::ustring& fname, rtengine::RawMetaDataLocation& rml, eSensorType &sensorType, int &w, int &h, int fixwh, bool rotate, bool inspectorMode = false);
|
static Thumbnail* loadQuickFromRaw (const Glib::ustring& fname, rtengine::RawMetaDataLocation& rml, eSensorType &sensorType, int &w, int &h, int fixwh, bool rotate, bool inspectorMode = false);
|
||||||
static Thumbnail* loadFromRaw (const Glib::ustring& fname, RawMetaDataLocation& rml, eSensorType &sensorType, int &w, int &h, int fixwh, double wbEq, bool rotate, int imageNum);
|
static Thumbnail* loadFromRaw (const Glib::ustring& fname, RawMetaDataLocation& rml, eSensorType &sensorType, int &w, int &h, int fixwh, double wbEq, bool rotate);
|
||||||
static Thumbnail* loadFromImage (const Glib::ustring& fname, int &w, int &h, int fixwh, double wbEq, bool inspectorMode = false);
|
static Thumbnail* loadFromImage (const Glib::ustring& fname, int &w, int &h, int fixwh, double wbEq, bool inspectorMode = false);
|
||||||
static RawMetaDataLocation loadMetaDataFromRaw (const Glib::ustring& fname);
|
static RawMetaDataLocation loadMetaDataFromRaw (const Glib::ustring& fname);
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ public:
|
|||||||
void applyAutoExp (procparams::ProcParams& pparams);
|
void applyAutoExp (procparams::ProcParams& pparams);
|
||||||
|
|
||||||
unsigned char* getGrayscaleHistEQ (int trim_width);
|
unsigned char* getGrayscaleHistEQ (int trim_width);
|
||||||
bool writeImage (const Glib::ustring& fname, int format);
|
bool writeImage (const Glib::ustring& fname);
|
||||||
bool readImage (const Glib::ustring& fname);
|
bool readImage (const Glib::ustring& fname);
|
||||||
|
|
||||||
bool readData (const Glib::ustring& fname);
|
bool readData (const Glib::ustring& fname);
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ void Thumbnail::_generateThumbnailImage ()
|
|||||||
|
|
||||||
if ( tpp == nullptr ) {
|
if ( tpp == nullptr ) {
|
||||||
quick = false;
|
quick = false;
|
||||||
tpp = rtengine::Thumbnail::loadFromRaw (fname, ri, sensorType, tw, th, 1, pparams.wb.equal, TRUE, pparams.raw.bayersensor.imageNum);
|
tpp = rtengine::Thumbnail::loadFromRaw (fname, ri, sensorType, tw, th, 1, pparams.wb.equal, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
cfs.sensortype = sensorType;
|
cfs.sensortype = sensorType;
|
||||||
@@ -612,7 +612,7 @@ rtengine::IImage8* Thumbnail::processThumbImage (const rtengine::procparams::Pro
|
|||||||
|
|
||||||
if ( cfs.thumbImgType == CacheImageData::QUICK_THUMBNAIL ) {
|
if ( cfs.thumbImgType == CacheImageData::QUICK_THUMBNAIL ) {
|
||||||
// RAW internal thumbnail, no profile yet: just do some rotation etc.
|
// RAW internal thumbnail, no profile yet: just do some rotation etc.
|
||||||
image = tpp->quickProcessImage (pparams, h, rtengine::TI_Nearest, scale);
|
image = tpp->quickProcessImage (pparams, h, rtengine::TI_Nearest);
|
||||||
} else {
|
} else {
|
||||||
// Full thumbnail: apply profile
|
// Full thumbnail: apply profile
|
||||||
// image = tpp->processImage (pparams, h, rtengine::TI_Bilinear, cfs.getCamera(), cfs.focalLen, cfs.focalLen35mm, cfs.focusDist, cfs.shutter, cfs.fnumber, cfs.iso, cfs.expcomp, scale );
|
// image = tpp->processImage (pparams, h, rtengine::TI_Bilinear, cfs.getCamera(), cfs.focalLen, cfs.focalLen35mm, cfs.focusDist, cfs.shutter, cfs.fnumber, cfs.iso, cfs.expcomp, scale );
|
||||||
@@ -883,7 +883,7 @@ void Thumbnail::_saveThumbnail ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// save thumbnail image
|
// save thumbnail image
|
||||||
tpp->writeImage (getCacheFileName ("images", ""), 1);
|
tpp->writeImage (getCacheFileName ("images", ""));
|
||||||
|
|
||||||
// save aehistogram
|
// save aehistogram
|
||||||
tpp->writeAEHistogram (getCacheFileName ("aehistograms", ""));
|
tpp->writeAEHistogram (getCacheFileName ("aehistograms", ""));
|
||||||
|
|||||||
Reference in New Issue
Block a user