#!/bin/sh

./sample_fei -i matrix_1920x1080_250i.yuv -o 0067.encpak -w 1920 -h 1080 -n 250 -f 25 -qp 30 -l 4 -NumRefFrame 4 -g 30 -GopRefDist 4 -nobref -tff -single_field_processing -encpak -EncodedOrder -mvout 0067_encpak.mvout -mbcode 0067_encpak.mbcode -mbstat 0067_encpak.mbstat

./sample_fei -i matrix_1920x1080_250i.yuv -o 0067.h264 -w 1920 -h 1080 -n 250 -f 25 -qp 30 -l 4 -NumRefFrame 4 -g 30 -GopRefDist 4 -nobref -tff -encode -EncodedOrder -mvout 0067.mvout -mbcode 0067.mbcode -mbstat 0067.mbstat

	`diff 0067_encpak.mvout 0067.mvout >/dev/null ` && result1=PASS || result1=FAIL  
	`diff 0067_encpak.mbcode 0067.mbcode >/dev/null ` && result2=PASS || result2=FAIL  
	`diff 0067_encpak.mbstat 0067.mbstat >/dev/null ` && result3=PASS || result3=FAIL  

	echo -e "\033[40;32m The mvout test result is ${result1}\033[0m"
	echo -e "\033[40;32m The mbcode test result is ${result2}\033[0m"
	echo -e "\033[40;32m The mbstat test result is ${result3}\033[0m"
rm -rf 0067*
