Skip to content

Commit

Permalink
Change input to signed 16 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjw24 committed Nov 18, 2024
1 parent b442364 commit 863fcc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/vvenc_unit_test/vvenc_unit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class InputGenerator

T operator()() const
{
return rand() & ( ( 1 << m_bits ) - 1 );
return ( rand() & ( ( 1 << m_bits ) - 1 ) ) - ( 1 << m_bits >> 1 );
}

private:
Expand Down Expand Up @@ -208,7 +208,7 @@ static bool check_one_fastFwdCore_2D( TCoeffOps* ref, TCoeffOps* opt, unsigned i
static bool check_fastInvCore( TCoeffOps* ref, TCoeffOps* opt, unsigned num_cases, unsigned idx, unsigned trSize )
{
printf( "Testing TCoeffOps::fastInvCore trSize=%d\n", trSize );
InputGenerator<TCoeff> g{ 10 };
InputGenerator<TCoeff> g{ 16 };
TrafoGenerator<TMatrixCoeff> t{ 8 };
DimensionGenerator rng;

Expand All @@ -231,7 +231,7 @@ static bool check_fastInvCore( TCoeffOps* ref, TCoeffOps* opt, unsigned num_case
static bool check_fastFwdCore_2D( TCoeffOps* ref, TCoeffOps* opt, unsigned num_cases, unsigned idx, unsigned trSize )
{
printf( "Testing TCoeffOps::fastFwdCore_2D trSize=%d\n", trSize );
InputGenerator<TCoeff> g{ 10 };
InputGenerator<TCoeff> g{ 16 };
TrafoGenerator<TMatrixCoeff> t{ 8 };
DimensionGenerator rng;

Expand Down

0 comments on commit 863fcc7

Please sign in to comment.