About 3x speed for scale_colors in rtthumbnail.cc also for xtrans files

This commit is contained in:
heckflosse
2017-04-06 16:16:08 +02:00
parent 850577b8c7
commit 6917f6bba3
2 changed files with 34 additions and 7 deletions

View File

@@ -129,10 +129,6 @@ protected:
char* profile_data; // Embedded ICC color profile
float* allocation; // pointer to allocated memory
int maximum_c4[4];
bool isXtrans() const
{
return filters == 9;
}
bool isFoveon() const
{
return is_foveon;
@@ -309,6 +305,11 @@ public:
return (filters != 0 && filters != 9);
}
bool isXtrans() const
{
return filters == 9;
}
public:
// dcraw functions
void scale_colors()