|
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, NoMarkerSegmentWithoutNlt) | |
| TEST (NltTest, LutStyleWithIdentityLutKeepsSamples) | |
| TEST (NltTest, BinaryComplementIsLossless) | |
| TEST (NltTest, RoundTripOfTestImages) | |
| 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 874 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT, and TEST().
| TEST | ( | NltTest | , |
| LutStyleIsRejectedPerComponent | ) |
Definition at line 1011 of file test_nlt.cpp.
References OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| LutStyleIsRejectedWithReversibleWavelet | ) |
Definition at line 972 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 837 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 1043 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 | , |
| MarkerSegmentRoundTrip | ) |
Definition at line 770 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 807 of file test_nlt.cpp.
References ojph::param_nlt::OJPH_NLT_NO_NLT, OUT_FILE_DIR, and TEST().
| TEST | ( | NltTest | , |
| RoundTripOfTestImages | ) |
Definition at line 910 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().