libdcp
Public Member Functions | Public Attributes | List of all members
dcp::EqualityOptions Struct Reference

A class to describe what "equality" means for a particular test. More...

#include <types.h>

Public Member Functions

 EqualityOptions ()
 

Public Attributes

double max_mean_pixel_error = 0
 
double max_std_dev_pixel_error = 0
 
int max_audio_sample_error = 0
 
bool cpl_annotation_texts_can_differ = false
 
bool reel_annotation_texts_can_differ = false
 
bool reel_hashes_can_differ = false
 
bool issue_dates_can_differ = false
 
bool load_font_nodes_can_differ = false
 
bool keep_going = false
 
bool export_differing_subtitles = false
 

Detailed Description

A class to describe what "equality" means for a particular test.

When comparing things, we want to be able to ignore some differences; this class expresses those differences.

It also contains some settings for how the comparison should be done.

Definition at line 248 of file types.h.

Constructor & Destructor Documentation

◆ EqualityOptions()

dcp::EqualityOptions::EqualityOptions ( )
inline

Construct an EqualityOptions where nothing at all can differ

Definition at line 251 of file types.h.

Member Data Documentation

◆ cpl_annotation_texts_can_differ

bool dcp::EqualityOptions::cpl_annotation_texts_can_differ = false

true if the <AnnotationText> nodes of CPLs are allowed to differ

Definition at line 260 of file types.h.

◆ export_differing_subtitles

bool dcp::EqualityOptions::export_differing_subtitles = false

true to save the first pair of differeng image subtitles to the current working directory

Definition at line 270 of file types.h.

◆ issue_dates_can_differ

bool dcp::EqualityOptions::issue_dates_can_differ = false

true if IssueDate nodes can differ

Definition at line 266 of file types.h.

◆ max_audio_sample_error

int dcp::EqualityOptions::max_audio_sample_error = 0

The maximum difference in audio sample value between two soundtracks

Definition at line 258 of file types.h.

◆ max_mean_pixel_error

double dcp::EqualityOptions::max_mean_pixel_error = 0

The maximum allowable mean difference in pixel value between two images

Definition at line 254 of file types.h.

◆ max_std_dev_pixel_error

double dcp::EqualityOptions::max_std_dev_pixel_error = 0

The maximum standard deviation of the differences in pixel value between two images

Definition at line 256 of file types.h.

◆ reel_annotation_texts_can_differ

bool dcp::EqualityOptions::reel_annotation_texts_can_differ = false

true if the <AnnotationText> nodes of Reels are allowed to differ

Definition at line 262 of file types.h.

◆ reel_hashes_can_differ

bool dcp::EqualityOptions::reel_hashes_can_differ = false

true if <Hash>es in Reels can differ

Definition at line 264 of file types.h.


The documentation for this struct was generated from the following file: