Skip to content

Commit

Permalink
Merge branch 'master' into autobuild/alpha_v380
Browse files Browse the repository at this point in the history
  • Loading branch information
c-lipka committed Oct 23, 2018
2 parents 1cdcb19 + 55afc36 commit 9278b36
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
31 changes: 16 additions & 15 deletions source/base/image/dither.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ DiffusionDither::~DiffusionDither()
{
for (unsigned int i = 0; i < mMatrix.Rows(); ++i)
delete[] maaErrorBuffer[i];
delete[] maaErrorBuffer;
}

void DiffusionDither::GetOffset(unsigned int x, unsigned int y, ColourOffset& offLin, ColourOffset& offQnt)
Expand Down Expand Up @@ -396,21 +397,21 @@ DitherStrategySPtr GetDitherStrategy(DitherMethodId method, unsigned int imageWi
DitherStrategySPtr s;
switch (method)
{
case DitherMethodId::kNone: s = std::make_shared<NoDither> ();
case DitherMethodId::kDiffusion1D: s = std::make_shared<DiffusionDither1D> ();
case DitherMethodId::kSierraLite: s = std::make_shared<SierraLiteDither> (imageWidth);
case DitherMethodId::kFloydSteinberg: s = std::make_shared<FloydSteinbergDither> (imageWidth);
case DitherMethodId::kBayer2x2: s = std::make_shared<OrderedDither> (BayerMatrix2, imageWidth);
case DitherMethodId::kBayer3x3: s = std::make_shared<OrderedDither> (BayerMatrix3, imageWidth);
case DitherMethodId::kBayer4x4: s = std::make_shared<OrderedDither> (BayerMatrix4, imageWidth);
case DitherMethodId::kBlueNoise: s = std::make_shared<OrderedDither> (BlueNoise64a, imageWidth);
case DitherMethodId::kBlueNoiseX: s = std::make_shared<OrderedDither> (BlueNoise64a, imageWidth, true);
case DitherMethodId::kAtkinson: s = std::make_shared<DiffusionDither> (AtkinsonMatrix, imageWidth);
case DitherMethodId::kBurkes: s = std::make_shared<DiffusionDither> (BurkesMatrix, imageWidth);
case DitherMethodId::kJarvisJudiceNinke:s = std::make_shared<DiffusionDither> (JarvisJudiceNinkeMatrix, imageWidth);
case DitherMethodId::kSierra3: s = std::make_shared<DiffusionDither> (Sierra3Matrix, imageWidth);
case DitherMethodId::kSierra2: s = std::make_shared<DiffusionDither> (Sierra2Matrix, imageWidth);
case DitherMethodId::kStucki: s = std::make_shared<DiffusionDither> (StuckiMatrix, imageWidth);
case DitherMethodId::kNone: s = std::make_shared<NoDither> (); break;
case DitherMethodId::kDiffusion1D: s = std::make_shared<DiffusionDither1D> (); break;
case DitherMethodId::kSierraLite: s = std::make_shared<SierraLiteDither> (imageWidth); break;
case DitherMethodId::kFloydSteinberg: s = std::make_shared<FloydSteinbergDither> (imageWidth); break;
case DitherMethodId::kBayer2x2: s = std::make_shared<OrderedDither> (BayerMatrix2, imageWidth); break;
case DitherMethodId::kBayer3x3: s = std::make_shared<OrderedDither> (BayerMatrix3, imageWidth); break;
case DitherMethodId::kBayer4x4: s = std::make_shared<OrderedDither> (BayerMatrix4, imageWidth); break;
case DitherMethodId::kBlueNoise: s = std::make_shared<OrderedDither> (BlueNoise64a, imageWidth); break;
case DitherMethodId::kBlueNoiseX: s = std::make_shared<OrderedDither> (BlueNoise64a, imageWidth, true); break;
case DitherMethodId::kAtkinson: s = std::make_shared<DiffusionDither> (AtkinsonMatrix, imageWidth); break;
case DitherMethodId::kBurkes: s = std::make_shared<DiffusionDither> (BurkesMatrix, imageWidth); break;
case DitherMethodId::kJarvisJudiceNinke:s = std::make_shared<DiffusionDither> (JarvisJudiceNinkeMatrix, imageWidth);break;
case DitherMethodId::kSierra3: s = std::make_shared<DiffusionDither> (Sierra3Matrix, imageWidth); break;
case DitherMethodId::kSierra2: s = std::make_shared<DiffusionDither> (Sierra2Matrix, imageWidth); break;
case DitherMethodId::kStucki: s = std::make_shared<DiffusionDither> (StuckiMatrix, imageWidth); break;
}
return s;
}
Expand Down
2 changes: 1 addition & 1 deletion source/base/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
/// where `N` is a serial number starting at 1 in each phase, `TIME` is the number of minutes
/// since 2000-01-01 00:00, and `FEATURE` is an arbitrary alphanumeric moniker for a particular
/// experimental feature.
#define POV_RAY_PRERELEASE "alpha.9861167"
#define POV_RAY_PRERELEASE "alpha.9893777"

#if defined(DOXYGEN) && !defined(POV_RAY_PRERELEASE)
// Work around doxygen being unable to document undefined macros.
Expand Down
2 changes: 2 additions & 0 deletions source/parser/parser_tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,7 @@ void Parser::Read_Symbol()
c = Echo_getc();
Echo_ungetc(c);

SYM_TABLE* parentTable = table;
if (pseudoDictionary >= 0)
{
table = Tables [pseudoDictionary];
Expand Down Expand Up @@ -1600,6 +1601,7 @@ void Parser::Read_Symbol()
else
{
breakLoop = true;
table = parentTable;
break;
}

Expand Down

0 comments on commit 9278b36

Please sign in to comment.