|
OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <algorithm>#include <cmath>#include <cstdio>#include <cstring>#include <iostream>#include <string>#include <vector>#include "ojph_arch.h"#include "ojph_mem.h"#include "ojph_message.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.
Macros | |
| #define | REF_FILE_DIR "./jp2k_test_codestreams/openjph/references/" |
| #define | OUT_FILE_DIR "./" |
| #define | NLT_MARKER_HIGH 0xFF |
| #define | NLT_MARKER_LOW 0x76 |
Functions | |
| TEST (NltTest, MarkerSegmentRoundTrip) | |
| TEST (NltTest, TruncatedMarkerSegmentIsRejected) | |
| TEST (NltTest, NoMarkerSegmentWithoutNlt) | |
| TEST (NltTest, LutStyleWithIdentityLutKeepsSamples) | |
| TEST (NltTest, LutWithNarrowRangeOfEntriesKeepsSamples) | |
| TEST (NltTest, BinaryComplementIsLossless) | |
| TEST (NltTest, RoundTripOfTestImages) | |
| TEST (NltTest, ExactInverseOfLutWithBentCurveKeepsSamples) | |
| TEST (NltTest, ExactInverseOfLutWithFlatSegmentsKeepsSamples) | |
| TEST (NltTest, LutStyleIsRejectedWithReversibleWavelet) | |
| TEST (NltTest, LutStyleIsRejectedPerComponent) | |
| TEST (NltTest, LutStyleWithReversibleWaveletIsReportedWhenRead) | |
| #define NLT_MARKER_HIGH 0xFF |
Definition at line 85 of file test_nlt.cpp.
| #define NLT_MARKER_LOW 0x76 |
Definition at line 86 of file test_nlt.cpp.
| #define OUT_FILE_DIR "./" |
Definition at line 80 of file test_nlt.cpp.
| #define REF_FILE_DIR "./jp2k_test_codestreams/openjph/references/" |
Definition at line 79 of file test_nlt.cpp.
| TEST | ( | NltTest | , |
| BinaryComplementIsLossless | ) |
Definition at line 1218 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT, and TEST().
| TEST | ( | NltTest | , |
| ExactInverseOfLutWithBentCurveKeepsSamples | ) |
Definition at line 1320 of file test_nlt.cpp.
References ojph::error, ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| ExactInverseOfLutWithFlatSegmentsKeepsSamples | ) |
Definition at line 1414 of file test_nlt.cpp.
References ojph::error, ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| LutStyleIsRejectedPerComponent | ) |
Definition at line 1544 of file test_nlt.cpp.
References OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| LutStyleIsRejectedWithReversibleWavelet | ) |
Definition at line 1504 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| LutStyleWithIdentityLutKeepsSamples | ) |
Definition at line 1103 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, ojph::param_nlt::OJPH_NLT_NO_NLT, and TEST().
| TEST | ( | NltTest | , |
| LutStyleWithReversibleWaveletIsReportedWhenRead | ) |
Definition at line 1576 of file test_nlt.cpp.
References ojph::codestream::access_nlt(), ojph::param_nlt::ALL_COMPS, ojph::codestream::close(), ojph::param_nlt::get_nonlinear_transform(), ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, ojph::param_nlt::OJPH_NLT_NO_NLT, ojph::j2c_infile::open(), OUT_FILE_DIR, ojph::codestream::read_headers(), and TEST().
| TEST | ( | NltTest | , |
| LutWithNarrowRangeOfEntriesKeepsSamples | ) |
Definition at line 1146 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| MarkerSegmentRoundTrip | ) |
Definition at line 964 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT, ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| NoMarkerSegmentWithoutNlt | ) |
Definition at line 1072 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_NO_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| RoundTripOfTestImages | ) |
Definition at line 1250 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT, ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, ojph::param_nlt::OJPH_NLT_NO_NLT, and TEST().
| TEST | ( | NltTest | , |
| TruncatedMarkerSegmentIsRejected | ) |
Definition at line 1003 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OUT_FILE_DIR, ojph::codestream::read_headers(), and TEST().