validate: libs: video: improve ssim's action registrations

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2017-06-08 13:43:41 -07:00
parent a43a6191c0
commit 9c5fb0c058

View file

@ -898,30 +898,30 @@ static gpointer
_register_issues (gpointer data) _register_issues (gpointer data)
{ {
gst_validate_issue_register (gst_validate_issue_new (SIMILARITY_ISSUE, gst_validate_issue_register (gst_validate_issue_new (SIMILARITY_ISSUE,
"Compared images where not similar enough", "Compared images were not similar enough",
"The images checker detected that the images" "The images checker detected that the images"
" it is comparing did not have the similarity" " it is comparing do not have the similarity"
" level as defined with min-avg-similarity or" " level defined with min-avg-similarity or"
" min-lowest-similarity", GST_VALIDATE_REPORT_LEVEL_CRITICAL)); " min-lowest-similarity", GST_VALIDATE_REPORT_LEVEL_CRITICAL));
gst_validate_issue_register (gst_validate_issue_new gst_validate_issue_register (gst_validate_issue_new
(SIMILARITY_ISSUE_WITH_PREVIOUS, (SIMILARITY_ISSUE_WITH_PREVIOUS,
"Comparison with theoretically reference image failed", "Comparison with theoretical reference image failed",
" In a case were we have reference frames with the following" " In a case where we have reference frames with the following"
" timestamps: [0.00, 0.10, 0.20, 0.30] comparing a frame with" " timestamps: [0.00, 0.10, 0.20, 0.30], comparing a frame with"
" 0.05 as a timestamp will be done with the first frame. " " 0.05 as a timestamp will be done with the first frame."
" If that fails, it will report a ssim::image-not-similar-enough-with-theoretical-reference" " If this fails, a ssim::image-not-similar-enough-with-theoretical-reference"
" warning and try with the second reference frame.", " warning is issued and the system then tries with the second reference frame.",
GST_VALIDATE_REPORT_LEVEL_WARNING)); GST_VALIDATE_REPORT_LEVEL_WARNING));
gst_validate_issue_register (gst_validate_issue_new (GENERAL_INPUT_ERROR, gst_validate_issue_register (gst_validate_issue_new (GENERAL_INPUT_ERROR,
"Something went wrong handling image files", "Something went wrong handling image files",
"An error accured when working with input files", "An error occurred when working with input files",
GST_VALIDATE_REPORT_LEVEL_CRITICAL)); GST_VALIDATE_REPORT_LEVEL_CRITICAL));
gst_validate_issue_register (gst_validate_issue_new (WRONG_FORMAT, gst_validate_issue_register (gst_validate_issue_new (WRONG_FORMAT,
"The format or dimensions of the compared images do not match ", "The format or dimensions of the compared images do not match",
"The format or dimensions of the compared images do not match ", "The format or dimensions of the compared images do not match",
GST_VALIDATE_REPORT_LEVEL_CRITICAL)); GST_VALIDATE_REPORT_LEVEL_CRITICAL));
return NULL; return NULL;