OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
test_quant_weights.cpp File Reference
#include <cmath>
#include <vector>
#include "ojph_mem.h"
#include "ojph_file.h"
#include "ojph_codestream.h"
#include "ojph_params.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Functions

 TEST (QuantWeights, ValuesInQcc)
 TEST (QuantWeights, ValuesInQcdForAllComponents)
 TEST (QuantWeights, UnitWeightsMatchNoWeights)
 TEST (QuantWeights, FewerDecompositionLevels)
 TEST (QuantWeights, WrongNumberOfWeights)
 TEST (QuantWeights, InvalidWeights)
 TEST (QuantWeights, ReversibleRejected)
 TEST (QuantMix, GlobalQfactorWithDeltaOnOneComponent)
 TEST (QuantMix, GlobalQfactorWithWeightsOnOneComponent)
 TEST (QuantMix, QfactorOnOneComponentDeltaElsewhere)
 TEST (QuantMix, QfactorOnOneComponentWeightsOnAnother)
 TEST (QuantMix, QfactorWinsOverDeltaOnSameComponent)
 TEST (QuantMix, QfactorAndWeightsOnSameComponentRejected)
 TEST (QuantDeltaWeights, GlobalDeltaWithWeightsOnOneComponent)
 TEST (QuantDeltaWeights, ComponentDeltaIndependentOfGlobalDelta)
 TEST (QuantDeltaWeights, DefaultGlobalDeltaWithWeights)
 TEST (QuantDeltaWeights, DifferentWeightsOnDifferentComponents)
 TEST (QuantDeltaWeights, WeightsReplacedOnSecondCall)
 TEST (QuantDeltaWeights, ComponentDeltaAfterWeights)

Function Documentation

◆ TEST() [1/19]

TEST ( QuantDeltaWeights ,
ComponentDeltaAfterWeights  )

Definition at line 585 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [2/19]

TEST ( QuantDeltaWeights ,
ComponentDeltaIndependentOfGlobalDelta  )

Definition at line 517 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [3/19]

TEST ( QuantDeltaWeights ,
DefaultGlobalDeltaWithWeights  )

Definition at line 535 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [4/19]

TEST ( QuantDeltaWeights ,
DifferentWeightsOnDifferentComponents  )

Definition at line 555 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [5/19]

TEST ( QuantDeltaWeights ,
GlobalDeltaWithWeightsOnOneComponent  )

Definition at line 488 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [6/19]

TEST ( QuantDeltaWeights ,
WeightsReplacedOnSecondCall  )

Definition at line 573 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [7/19]

TEST ( QuantMix ,
GlobalQfactorWithDeltaOnOneComponent  )

◆ TEST() [8/19]

TEST ( QuantMix ,
GlobalQfactorWithWeightsOnOneComponent  )

◆ TEST() [9/19]

TEST ( QuantMix ,
QfactorAndWeightsOnSameComponentRejected  )

◆ TEST() [10/19]

TEST ( QuantMix ,
QfactorOnOneComponentDeltaElsewhere  )

◆ TEST() [11/19]

TEST ( QuantMix ,
QfactorOnOneComponentWeightsOnAnother  )

◆ TEST() [12/19]

TEST ( QuantMix ,
QfactorWinsOverDeltaOnSameComponent  )

◆ TEST() [13/19]

TEST ( QuantWeights ,
FewerDecompositionLevels  )

Definition at line 255 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [14/19]

TEST ( QuantWeights ,
InvalidWeights  )

Definition at line 282 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [15/19]

TEST ( QuantWeights ,
ReversibleRejected  )

Definition at line 295 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [16/19]

TEST ( QuantWeights ,
UnitWeightsMatchNoWeights  )

Definition at line 234 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [17/19]

TEST ( QuantWeights ,
ValuesInQcc  )

Definition at line 190 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [18/19]

TEST ( QuantWeights ,
ValuesInQcdForAllComponents  )

Definition at line 215 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().

◆ TEST() [19/19]

TEST ( QuantWeights ,
WrongNumberOfWeights  )

Definition at line 271 of file test_quant_weights.cpp.

References ojph::param_qcd::set_irrev_quant(), and TEST().