Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
QuantiserBasics_test Class Reference

Description

Test:
cover the basic Quantiser API. This test uses a standalone quantiser implementation to demonstrate and verify the basic behaviour and the usage corner cases of a quantiser.

In this most simple form, a quantiser is defined by the time reference point (origin) to use, and the frame rate (grid spacing). For each raw time value, the quantiser yields a time value aligned at the next lower frame bound. Besides that, time values are confined to be within the interval (Time::MIN, Time::MAX)

See also
TimeQuantisation_test

Definition at line 69 of file quantiser-basics-test.cpp.

Classes

struct  TestQuant
 Test Quantiser allowing to use plain numbers. More...
 

Private Member Functions

virtual void run (Arg)
 
void checkSimpleQuantisation ()
 
void coverQuantisationStandardCases ()
 
void coverQuantisationCornerCases ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 73 of file quantiser-basics-test.cpp.

References QuantiserBasics_test::checkSimpleQuantisation(), QuantiserBasics_test::coverQuantisationCornerCases(), and QuantiserBasics_test::coverQuantisationStandardCases().

+ Here is the call graph for this function:

◆ checkSimpleQuantisation()

void checkSimpleQuantisation ( )
inlineprivate

Definition at line 83 of file quantiser-basics-test.cpp.

References FixedFrameQuantiser::gridLocal(), and lib::rani().

Referenced by QuantiserBasics_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coverQuantisationStandardCases()

void coverQuantisationStandardCases ( )
inlineprivate

Definition at line 120 of file quantiser-basics-test.cpp.

References QuantiserBasics_test::TestQuant::quant().

Referenced by QuantiserBasics_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ coverQuantisationCornerCases()

void coverQuantisationCornerCases ( )
inlineprivate

Definition at line 154 of file quantiser-basics-test.cpp.

References FixedFrameQuantiser::gridLocal(), FixedFrameQuantiser::gridPoint(), Duration::MAX, TimeValue::SCALE, FixedFrameQuantiser::timeOf(), and VERIFY_ERROR.

Referenced by QuantiserBasics_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for QuantiserBasics_test:
+ Collaboration diagram for QuantiserBasics_test:

The documentation for this class was generated from the following file: