#!/bin/bash

srcDir="downloads/vqeg.its.bldrdoc.gov/HDTV/SVT_MultiFormat/1080p50_CgrLevels_SINC_FILTER_SVTdec05_"
opDir="./"

./convert_sgi_to_hevcyuv "$srcDir/1_CrowdRun_1080p50_CgrLevels_SINC_FILTER_SVTdec05_/%05d.sgi"      7111 500 "$opDir/CrowdRun_1920x1080_50_16bit_444.rgb"
md5sum "$opDir/CrowdRun_1920x1080_50_16bit_444.rgb"
echo "Want: 6004ff26cafcf2b066faa00c935a7621"

./convert_sgi_to_hevcyuv "$srcDir/2_ParkJoy_1080p50_CgrLevels_SINC_FILTER_SVTdec05_/%05d.sgi"      15523 500 "$opDir/ParkJoy_1920x1080_50_16bit_444.rgb"
md5sum "$opDir/ParkJoy_1920x1080_50_16bit_444.rgb"
echo "Want: 2ab943d7b1c6e3b26a2c6da416b69828"

./convert_sgi_to_hevcyuv "$srcDir/3_DucksTakeOff_1080p50_CgrLevels_SINC_FILTER_SVTdec05_/%05d.sgi" 12987 500 "$opDir/DucksTakeOff_1920x1080_50_16bit_444.rgb"
md5sum "$opDir/DucksTakeOff_1920x1080_50_16bit_444.rgb"
echo "Want: d882efad39ae3d360896ec09d9213424"

./convert_sgi_to_hevcyuv "$srcDir/4_InToTree_1080p50_CgrLevels_SINC_FILTER_SVTdec05_/%05d.sgi"      5119 500 "$opDir/InToTree_1920x1080_50_16bit_444.rgb"
md5sum "$opDir/InToTree_1920x1080_50_16bit_444.rgb"
echo "Want: 6f7d413472f856741e95543217f9795d"

./convert_sgi_to_hevcyuv "$srcDir/5_OldTownCross_1080p50_CgrLevels_SINC_FILTER_SVTdec05_/%05d.sgi"  1217 500 "$opDir/OldTownCross_1920x1080_50_16bit_444.rgb"
md5sum "$opDir/OldTownCross_1920x1080_50_16bit_444.rgb"
echo "Want: ae5bab60c3dfb16399971b9afff120da"
