Esempio n. 1
0
PVideoFrame __stdcall deathray::GetFrame(int n, IScriptEnvironment *env) {
    src_ = child->GetFrame(n, env);
    dst_ = env->NewVideoFrame(vi);

	InitPointers();
	InitDimensions();

	if (h_Y_ == 0.f)					PassThroughLuma();
	if (h_UV_ == 0.f)					PassThroughChroma();
	if (h_Y_ == 0.f && h_UV_ == 0.f)	return dst_;

	result status = FILTER_OK;
	status = Init();
	if (status != FILTER_OK || !(vi.IsPlanar())) { 
		if (g_opencl_failed_to_initialise) {
			env->ThrowError("Deathray: Error in OpenCL status=%d frame %d and OpenCL status=%d", status, n, g_last_cl_error);
		} else {
			env->ThrowError("Deathray: Check that clip is planar format - status=%d frame %d", status, n);
		}
	}

	if ((temporal_radius_Y_ == 0 && h_Y_ > 0.f) || (temporal_radius_UV_ == 0 && h_UV_ > 0.f))
		SingleFrameExecute();

	if ((temporal_radius_Y_ > 0 && h_Y_ > 0.f) || (temporal_radius_UV_ > 0 && h_UV_ > 0.f))
		MultiFrameExecute(n);

	return dst_;
}
Esempio n. 2
0
//=============================================================================
Epetra_SerialDenseSVD::Epetra_SerialDenseSVD()
  : Epetra_Object("Epetra::SerialDenseSVD"),
    Epetra_CompObject(),
    Epetra_BLAS(),
    Epetra_LAPACK(),
    Transpose_(false),
    Factored_(false),
    Solved_(false),
    Inverted_(false),
    TRANS_('N'),
    M_(0),
   N_(0),
   Min_MN_(0),
   NRHS_(0),
   LDA_(0),
   LDAI_(0),
   LDB_(0),
   LDX_(0),
   INFO_(0),
   LWORK_(0),
   IWORK_(0),
   ANORM_(0.0),
  Matrix_(0),
  LHS_(0),
  RHS_(0),
  Inverse_(0),
  A_(0),
  AI_(0),
  WORK_(0),
  U_(0),
  S_(0),
  Vt_(0),
  B_(0),
  X_(0),
    UseTranspose_(false)
{
  InitPointers();
  ResetMatrix();
  ResetVectors();
}