Skip to content

Commit

Permalink
fix: libraw - shot_select moved from params to rawparams
Browse files Browse the repository at this point in the history
  • Loading branch information
butcherg committed Nov 23, 2021
1 parent 7e4cf93 commit 514e22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rawimage.cpp
Expand Up @@ -404,7 +404,7 @@ char * _loadRAW(const char *filename,
#define P2 RawProcessor.imgdata.other
// #define OUT RawProcessor.imgdata.params

RawProcessor.imgdata.params.shot_select = 0;
RawProcessor.imgdata.rawparams.shot_select = 0;
RawProcessor.imgdata.params.use_camera_wb = 1;
RawProcessor.imgdata.params.output_color = 1; //sRGB
RawProcessor.imgdata.params.user_qual = 3; //AHD
Expand Down Expand Up @@ -571,7 +571,7 @@ char * _loadRAW(const char *filename,

//raw <li><b>shot_select</b>=n - select image number for processing. dcraw: -s [0..N-1]</li>
if (p.find("shot_select") != p.end())
RawProcessor.imgdata.params.shot_select = atoi(p["shot_select"].c_str());
RawProcessor.imgdata.rawparams.shot_select = atoi(p["shot_select"].c_str());

//raw <li><b>bright</b>=1.0 - brighten image. Default=1.0, no brighten. dcraw: -b &lt;num&gt;</li>
if (p.find("bright") != p.end())
Expand Down

0 comments on commit 514e22f

Please sign in to comment.