Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix in-place filters doing MEMSET instead of COPY
Browse files Browse the repository at this point in the history
  • Loading branch information
tp7 committed Dec 12, 2013
1 parent 049024e commit 1c96ab0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions common/build/common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release-avs26|Win32'">
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<Optimization>Full</Optimization>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<OmitFramePointers>true</OmitFramePointers>
<WholeProgramOptimization>true</WholeProgramOptimization>
<AdditionalIncludeDirectories>C:\Soft\Boost;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
Expand All @@ -328,6 +328,8 @@
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat />
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
</ClCompile>
<Lib>
<OutputFile>$(OutDir)common.lib</OutputFile>
Expand Down
1 change: 0 additions & 1 deletion common/clip/clip.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Clip {
Clip() : nFrames(-1), nWidth(-1), nHeight(-1), C(COLORSPACE_NONE) { }
Clip(int nWidth, int nHeight, int nFrames, Colorspace colorspace) : nFrames(nFrames), nWidth(nWidth), nHeight(nHeight), C(colorspace) { }
Clip(const Clip *clip) : nFrames(clip ? clip->frame_count() : -1), nWidth(clip ? clip->width() : -1), nHeight(clip ? clip->height() : -1), C(clip ? clip->colorspace() : COLORSPACE_NONE) { }
virtual ~Clip() { assert( !is_refed() ); }
int width() const { return nWidth; }
int height() const { return nHeight; }
int frame_count() const { return nFrames; }
Expand Down
2 changes: 2 additions & 0 deletions masktools/build/masktools.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@
<AssemblerOutput>AssemblyCode</AssemblerOutput>
<AssemblerListingLocation>$(IntDir)\asm\</AssemblerListingLocation>
<IntrinsicFunctions>true</IntrinsicFunctions>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
</ClCompile>
<Link>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down
2 changes: 1 addition & 1 deletion masktools/common/params/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Operator {
public:

Operator() : mode(NONE), nValue(-1) {}
Operator(Mode mode, int nValue) : mode(mode), nValue(mode == MEMSET ? nValue : -1) {}
Operator(Mode mode, int nValue = -1) : mode(mode), nValue(mode == MEMSET ? nValue : -1) {}
Operator(int nValue)
{
this->nValue = -1;
Expand Down

0 comments on commit 1c96ab0

Please sign in to comment.