Пример #1
0
bool
FFTLibWrapper::Initialize( int inFFTSize, FFTDirection inDirection )
{
  Cleanup();
  mFFTSize = inFFTSize;
  mInputData = reinterpret_cast<number*>( LibMalloc( mFFTSize * sizeof( number ) ) );
  mOutputData = reinterpret_cast<number*>( LibMalloc( mFFTSize * sizeof( number ) ) );
  mLibPrivateData = LibInit( mFFTSize, mInputData, mOutputData, inDirection, 1U << 6 );
  return mInputData && mOutputData && mLibPrivateData;
}
Пример #2
0
FT_Library * Red::Text::Rendering::FreeType::FTLibrary :: GetLibrary ()
{
	
	uint32_t Status;
	
	LibInit ( & Status );
	
	if ( Status == kStatus_Success )
		return & LibraryHandle;
	
	return NULL;
	
}