OpenJPH
Open-source implementation of JPEG2000 Part-15
mse_pae.cpp File Reference
#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)
 
bool is_rawl (const char *filename)
 
void load_rawl (const char *filename, img_info &img)
 
void find_mse_pae (const img_info &img1, const img_info &img2, float mse[3], ui32 pae[3])
 
void find_nlt_mse_pae (const img_info &img1, const img_info &img2, float mse[3], ui32 pae[3])
 
int main (int argc, char *argv[])
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : ui32
Enumerator
UNDEFINED 
FORMAT444 
FORMAT422 
FORMAT420 
FORMAT400 

Definition at line 49 of file mse_pae.cpp.

Function Documentation

◆ find_mse_pae()

void find_mse_pae ( const img_info img1,
const img_info img2,
float  mse[3],
ui32  pae[3] 
)

◆ find_nlt_mse_pae()

void find_nlt_mse_pae ( const img_info img1,
const img_info img2,
float  mse[3],
ui32  pae[3] 
)

◆ is_pnm()

bool is_pnm ( const char *  filename)

Definition at line 123 of file mse_pae.cpp.

Referenced by main().

◆ is_rawl()

bool is_rawl ( const char *  filename)

Definition at line 287 of file mse_pae.cpp.

Referenced by main().

◆ is_yuv()

bool is_yuv ( const char *  filename)

Definition at line 164 of file mse_pae.cpp.

Referenced by main().

◆ load_ppm()

◆ load_rawl()

void load_rawl ( const char *  filename,
img_info img 
)

Definition at line 297 of file mse_pae.cpp.

References img_info::comps, FORMAT400, FORMAT444, ojph::size::h, img_info::init(), and ojph::size::w.

Referenced by main().

◆ load_yuv()

◆ main()

int main ( int  argc,
char *  argv[] 
)