|
#include "FilterFactory.h"
#include "common.h"
#include "CpuCCLFilter.h"
#include "CpuInvertFilter.h"
#include "CpuMovingAverageFilter.h"
#include "CudaInvertFilter.h"
#include "CudaSepiaFilter.h"
#include "CudaTexBoxBlurFilter.h"
#include "CudaTexInvertFilter.h"
#include "CudaTileFlipFilter.h"
#include "IdentityFilter.h"
#include "ThresholdFilter.h"
#include "cudaCommon.h"
/**
\file FilterFactory.cpp
CudaFilters projesindeki filtreler i�in factory metodlar�n� i�eren dosya.
*/
FILTERAPI void FILTERENTRY ReleaseCUDAThread()
{
cudaThreadExit();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCpuCCLFilter()
{
return new CpuCCLFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCpuInvertFilter()
{
return new CpuInvertFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCpuMovingAverageFilter( int framesToAverage )
{
return new CpuMovingAverageFilter( framesToAverage );
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCudaInvertFilter()
{
return new CudaInvertFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCudaSepiaFilter()
{
return new CudaSepiaFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCudaTexBoxBlurFilter()
{
return new CudaTexBoxBlurFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCudaTexInvertFilter()
{
return new CudaTexInvertFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetCudaTileFlipFilter()
{
return new CudaTileFlipFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetIdentityFilter()
{
return new IdentityFilter();
}
FILTERAPI ISingleImageFilter* FILTERENTRY GetThresholdFilter( unsigned char threshold )
{
return new ThresholdFilter( threshold );
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.