OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <cstdio>
#include <cstdlib>
#include <stdexcept>
#include <cctype>
#include "ojph_img_io.h"
#include "ojph_mem.h"
Go to the source code of this file.
Classes | |
struct | img_info |
Enumerations | |
enum | : ui32 { UNDEFINED = 0 , FORMAT444 = 1 , FORMAT422 = 2 , FORMAT420 = 3 , FORMAT400 = 4 } |
Functions | |
bool | is_pnm (const char *filename) |
void | load_ppm (const char *filename, img_info &img) |
bool | is_yuv (const char *filename) |
void | load_yuv (const char *filename, img_info &img) |
void | find_mse_pae (const img_info &img1, const img_info &img2, float mse[3], ui32 pae[3]) |
int | main (int argc, char *argv[]) |
anonymous enum : ui32 |
Enumerator | |
---|---|
UNDEFINED | |
FORMAT444 | |
FORMAT422 | |
FORMAT420 | |
FORMAT400 |
Definition at line 49 of file mse_pae.cpp.
Definition at line 284 of file mse_pae.cpp.
References img_info::comps, img_info::downsampling, img_info::format, img_info::height, img_info::max_val, img_info::num_comps, img_info::width, and ojph::point::x.
Referenced by main().
bool is_pnm | ( | const char * | filename | ) |
Definition at line 120 of file mse_pae.cpp.
Referenced by main().
bool is_yuv | ( | const char * | filename | ) |
Definition at line 161 of file mse_pae.cpp.
Referenced by main().
void load_ppm | ( | const char * | filename, |
img_info & | img | ||
) |
Definition at line 131 of file mse_pae.cpp.
References img_info::comps, ojph::ppm_in::get_height(), ojph::ppm_in::get_max_val(), ojph::ppm_in::get_num_components(), ojph::ppm_in::get_width(), ojph::line_buf::i32, img_info::init(), ojph::ppm_in::open(), ojph::ppm_in::read(), ojph::ppm_in::set_planar(), and ojph::line_buf::wrap().
Referenced by main().
void load_yuv | ( | const char * | filename, |
img_info & | img | ||
) |
Definition at line 170 of file mse_pae.cpp.
References img_info::comps, img_info::downsampling, FORMAT400, FORMAT420, FORMAT422, FORMAT444, ojph::size::h, ojph::line_buf::i32, img_info::init(), ojph::yuv_in::open(), ojph::yuv_in::read(), ojph::yuv_in::set_bit_depth(), ojph::yuv_in::set_img_props(), ojph::size::w, ojph::line_buf::wrap(), ojph::point::x, and ojph::point::y.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 323 of file mse_pae.cpp.
References find_mse_pae(), is_pnm(), is_yuv(), load_ppm(), load_yuv(), and img_info::num_comps.