#!/bin/csh
foreach vidfile(*.yuv)
	echo degrading video $vidfile 
	
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} original 0  0.0 0.0 1.0
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blur 1  0.0 0.2 0.8
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blur 2  0.0 0.4 0.6
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blur 3  0.0 0.6 0.6 
	
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} block 4  0.2 0.0 0.8
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 5  0.2 0.2 0.6
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 6  0.2 0.4 0.4
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 7  0.2 0.6 0.2
	
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} block 8  0.4 0.0 0.6
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 9  0.4 0.2 0.4
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 10 0.4 0.4 0.2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 11 0.4 0.6 0.0
	
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} block 12 0.6 0.0 0.4
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 13 0.6 0.2 0.2
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 14 0.6 0.4 0.0
	./qmetrics degrade $vidfile 1280 720 420 {blkblr_}$vidfile:r{_} blockandblur 15 0.6 0.6 -0.2
	
	mv blkblr*.yuv /media/SSD2/Exp3/
end
