DNG: use black/white levels and matrix from the file, unless it comes from the Adobe DNG Converter
See #4472
This commit is contained in:
@@ -55,10 +55,9 @@ public:
|
||||
,verbose(0)
|
||||
,use_auto_wb(0),use_camera_wb(0),use_camera_matrix(1)
|
||||
,output_color(1),output_bps(8),output_tiff(0),med_passes(0),no_auto_bright(0)
|
||||
,RT_whitelevel_from_constant(0)
|
||||
,RT_blacklevel_from_constant(0)
|
||||
,RT_matrix_from_constant(0)
|
||||
,RT_from_adobe_dng_converter(false)
|
||||
,RT_whitelevel_from_constant(ThreeValBool::X)
|
||||
,RT_blacklevel_from_constant(ThreeValBool::X)
|
||||
,RT_matrix_from_constant(ThreeValBool::X)
|
||||
,getbithuff(this,ifp,zero_after_ff)
|
||||
,nikbithuff(ifp)
|
||||
{
|
||||
@@ -150,10 +149,11 @@ protected:
|
||||
int output_color, output_bps, output_tiff, med_passes;
|
||||
int no_auto_bright;
|
||||
unsigned greybox[4] ;
|
||||
int RT_whitelevel_from_constant;
|
||||
int RT_blacklevel_from_constant;
|
||||
int RT_matrix_from_constant;
|
||||
bool RT_from_adobe_dng_converter;
|
||||
enum class ThreeValBool { X = -1, F, T };
|
||||
ThreeValBool RT_whitelevel_from_constant;
|
||||
ThreeValBool RT_blacklevel_from_constant;
|
||||
ThreeValBool RT_matrix_from_constant;
|
||||
std::string RT_software;
|
||||
|
||||
float cam_mul[4], pre_mul[4], cmatrix[3][4], rgb_cam[3][4];
|
||||
|
||||
|
Reference in New Issue
Block a user