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)
 
void find_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] 
)

◆ is_pnm()

bool is_pnm ( const char *  filename)

Definition at line 120 of file mse_pae.cpp.

Referenced by main().

◆ is_yuv()

bool is_yuv ( const char *  filename)

Definition at line 161 of file mse_pae.cpp.

Referenced by main().

◆ load_ppm()

◆ load_yuv()

◆ 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.