Ocean
Ocean Test Media Library

The Ocean Test Media Library implemenets/provides several tests for Ocean's individual media libraries. More...

Collaboration diagram for Ocean Test Media Library:

Data Structures

class  Ocean::Test::TestMedia::TestAVFoundation
 This class implements a test for the AVFoundation media library. More...
 
class  Ocean::Test::TestMedia::TestImageIO
 This class implements a test for the IMageIO media library. More...
 
class  Ocean::Test::TestMedia::TestMovie
 This class implements a test for Movie objects. More...
 
class  Ocean::Test::TestMedia::TestOpenImageLibraries
 This class implements a test for the OpenImageLibraries media library. More...
 
class  Ocean::Test::TestMedia::TestSpecial
 This class implements a test for the Special media library. More...
 
class  Ocean::Test::TestMedia::TestWIC
 This class implements a test for the WIC media library. More...
 

Functions

OCEAN_TEST_MEDIA_EXPORT bool Ocean::Test::TestMedia::testMedia (const double testDuration, Worker &worker, const std::string &testFunctions=std::string())
 Tests all Media libraries. More...
 
OCEAN_TEST_MEDIA_EXPORT void Ocean::Test::TestMedia::testMediaAsynchron (const double testDuration, const std::string &testFunctions=std::string())
 Tests all Media libraries. More...
 

Detailed Description

The Ocean Test Media Library implemenets/provides several tests for Ocean's individual media libraries.

The library is platform independent (by invoking only those tests that are available on each individual platform).

Function Documentation

◆ testMedia()

OCEAN_TEST_MEDIA_EXPORT bool Ocean::Test::TestMedia::testMedia ( const double  testDuration,
Worker worker,
const std::string &  testFunctions = std::string() 
)

Tests all Media libraries.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object to distribute some computation on as many CPU cores as defined in the worker object
testFunctionsOptional name of the functions to be tested
Returns
True, if the entire test succeeded

◆ testMediaAsynchron()

OCEAN_TEST_MEDIA_EXPORT void Ocean::Test::TestMedia::testMediaAsynchron ( const double  testDuration,
const std::string &  testFunctions = std::string() 
)

Tests all Media libraries.

This function returns directly as the actual test is invoked in an own thread.
Use this function in intended for non-console applications like e.g., mobile devices.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
testFunctionsOptional name of the functions to be tested