History

Convert mixed tabs to spaces in shell scripts

All other shell scripts use spaces for indentation.

Martin Storsjö committed 11 years ago

Commit b1570b11 parent 8e26d9c3 files · +94 −94Browse files

Showing the changes to test/encoder_binary_comparison/Scripts (1 of 3 files). Show all

Unified · Split

test/encoder_binary_comparison/Scripts/run_BinarySHA1Comparison.sh+70−70
@@ -56,25 +56,25 @@ runGlobalVariableDef() · 55 unmodified lines
5656 runEncoderCommandInital()
5757 {
5858 aEncoderCommandSet=( -utype -frms -numl -numtl \
59− -sw -sh "-dw 0" "-dh 0" "-dw 1" "-dh 1" "-dw 2" "-dh 2" "-dw 3" "-dh 3" \
60− "-frout 0" "-frout 1" "-frout 2" "-frout 3" \
61− "-lqp 0" "-lqp 1" "-lqp 2" "-lqp 3" \
62− -rc -tarb "-ltarb 0" "-ltarb 1" "-ltarb 2" "-ltarb 3" \
63− "-slcmd 0" "-slcnum 0" "-slcmd 1" "-slcnum 1"\
64− "-slcmd 2" "-slcnum 2" "-slcmd 3" "-slcnum 3"\
65− -nalsize \
66− -iper -thread -ltr \
67− -db -denois -scene -bgd -aq )
59+ -sw -sh "-dw 0" "-dh 0" "-dw 1" "-dh 1" "-dw 2" "-dh 2" "-dw 3" "-dh 3" \
60+ "-frout 0" "-frout 1" "-frout 2" "-frout 3" \
61+ "-lqp 0" "-lqp 1" "-lqp 2" "-lqp 3" \
62+ -rc -tarb "-ltarb 0" "-ltarb 1" "-ltarb 2" "-ltarb 3" \
63+ "-slcmd 0" "-slcnum 0" "-slcmd 1" "-slcnum 1"\
64+ "-slcmd 2" "-slcnum 2" "-slcmd 3" "-slcnum 3"\
65+ -nalsize \
66+ -iper -thread -ltr \
67+ -db -denois -scene -bgd -aq )
6868 aEncoderCommandName=(usagetype frms numl numtl \
69− sw sh dw0 dh0 dw1 dh1 dw2 dh2 dw3 dh3 \
70− frout0 frout1 frout2 frout3 \
71− lqp0 lqp1 lqp2 lqp3 \
72− rc tarb ltarb0 ltarb1 ltarb2 ltarb3 \
73− slcmd0 slcnum0 slcmd1 slcnum1 \
74− slcmd2 slcnum2 slcmd3 slcnum3 \
75− MaxNalSZ \
76− iper thread ltr \
77− db denois scene bgd aq )
69+ sw sh dw0 dh0 dw1 dh1 dw2 dh2 dw3 dh3 \
70+ frout0 frout1 frout2 frout3 \
71+ lqp0 lqp1 lqp2 lqp3 \
72+ rc tarb ltarb0 ltarb1 ltarb2 ltarb3 \
73+ slcmd0 slcnum0 slcmd1 slcnum1 \
74+ slcmd2 slcnum2 slcmd3 slcnum3 \
75+ MaxNalSZ \
76+ iper thread ltr \
77+ db denois scene bgd aq )
7878 NumParameter=${#aEncoderCommandSet[@]}
7979 for ((i=0;i<NumParameter; i++))
8080 do
@@ -103,27 +103,27 @@ runGlobalVariableInitial() · 22 unmodified lines
103103 UpdateSHA1TableFile="${FinalResultPath}/${TestSequenceName}_UpdateSHA1Table.csv"
104104 HeadLine1="BitMatched Status, SHA-1-Target, SHA-1-Benchmark, MD5-Target, MD5-Benchmark,\
105105 Bitstream-Target,Bitstream-Benchmark,YUV-Target,YUV-Benchmark,\
106− -utype, -frms, -numl, -numtl, -sw, -sh,\
107− -dw 0, -dh 0, -dw 1, -dh 1, -dw 2, -dh 2, -dw 3, -dh 3,\
108− -frout 0, -frout 1, -frout 2, -frout 3,\
109− -lqp 0, -lqp 1, -lqp 2, -lqp 3,\
110− -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\
111− -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\
112− -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\
113− -nalsize,\
114− -iper, -thread, -ltr, -db, -denois,\
115− -scene, -bgd , -aq, "
106+ -utype, -frms, -numl, -numtl, -sw, -sh,\
107+ -dw 0, -dh 0, -dw 1, -dh 1, -dw 2, -dh 2, -dw 3, -dh 3,\
108+ -frout 0, -frout 1, -frout 2, -frout 3,\
109+ -lqp 0, -lqp 1, -lqp 2, -lqp 3,\
110+ -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\
111+ -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\
112+ -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\
113+ -nalsize,\
114+ -iper, -thread, -ltr, -db, -denois,\
115+ -scene, -bgd , -aq, "
116116 HeadLine2="SHA-1 Value, MD5String, BitStreamSize, YUVSize, \
117− -utype, -frms, -numl, -numtl, -sw, -sh,\
118− -dw 0, -dh 0, -dw 1, -dh 1,-dw 2, -dh 2, -dw 3, -dh 3,\
119− -frout 0, -frout 1, -frout 2, -frout 3,\
120− -lqp 0, -lqp 1, -lqp 2, -lqp 3,\
121− -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\
122− -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\
123− -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\
124− -nalsize,\
125− -iper, -thread, -ltr, -db, -denois,\
126− -scene , bgd , -aq "
117+ -utype, -frms, -numl, -numtl, -sw, -sh,\
118+ -dw 0, -dh 0, -dw 1, -dh 1,-dw 2, -dh 2, -dw 3, -dh 3,\
119+ -frout 0, -frout 1, -frout 2, -frout 3,\
120+ -lqp 0, -lqp 1, -lqp 2, -lqp 3,\
121+ -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\
122+ -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\
123+ -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\
124+ -nalsize,\
125+ -iper, -thread, -ltr, -db, -denois,\
126+ -scene , bgd , -aq "
127127 echo ${HeadLine1}>${AllCasePassStatusFile}
128128 echo ${HeadLine1}>${UnpassCaseFile}
129129 echo ${HeadLine2}>${UpdateSHA1TableFile}
@@ -152,8 +152,8 @@ runParseCaseInfo() · 22 unmodified lines
152152 {
153153 if [ $# -lt 1 ]
154154 then
155− echo "no parameter!"
156− return 1
155+ echo "no parameter!"
156+ return 1
157157 fi
158158 local TempData=""
159159 local CaseData=$@
@@ -169,18 +169,18 @@ runParseCaseInfo() · 9 unmodified lines
169169 let "TempParamFlag=0"
170170 for((i=0; i<$NumParameter; i++))
171171 do
172− for ParnmIndex in ${aTempParamIndex[@]}
173− do
174− if [ $i -eq ${ParnmIndex} ]
175− then
176− let "TempParamFlag=1"
177− fi
178− done
179− if [ ${TempParamFlag} -eq 0 ]
180− then
181− BitstreamPrefix=${BitstreamPrefix}_${aEncoderCommandName[$i]}_${aEncoderCommandValue[$i]}
182− fi
183− let "TempParamFlag=0"
172+ for ParnmIndex in ${aTempParamIndex[@]}
173+ do
174+ if [ $i -eq ${ParnmIndex} ]
175+ then
176+ let "TempParamFlag=1"
177+ fi
178+ done
179+ if [ ${TempParamFlag} -eq 0 ]
180+ then
181+ BitstreamPrefix=${BitstreamPrefix}_${aEncoderCommandName[$i]}_${aEncoderCommandValue[$i]}
182+ fi
183+ let "TempParamFlag=0"
184184 done
185185
186186 BitstreamTarget=${TempDataPath}/${TestSequenceName}_${BitstreamPrefix}_codec_target.264
@@ -195,44 +195,44 @@ runEncodeOneCase() · 8 unmodified lines
195195
196196 for ((i=4; i<${NumParameter}; i++))
197197 do
198− ParamCommand="${ParamCommand} ${aEncoderCommandSet[$i]} ${aEncoderCommandValue[$i]} "
198+ ParamCommand="${ParamCommand} ${aEncoderCommandSet[$i]} ${aEncoderCommandValue[$i]} "
199199 done
200200 for((i=0;i<4;i++))
201201 do
202− aRecYUVFileList[$i]="${TempDataPath}/${TestYUVName}_rec${i}.yuv"
202+ aRecYUVFileList[$i]="${TempDataPath}/${TestYUVName}_rec${i}.yuv"
203203 done
204204 ParamCommand="${aEncoderCommandSet[0]} ${aEncoderCommandValue[0]} ${aEncoderCommandSet[1]} ${aEncoderCommandValue[1]} \
205− ${aEncoderCommandSet[2]} ${aEncoderCommandValue[2]} \
206− -lconfig 0 layer0.cfg -lconfig 1 layer1.cfg -lconfig 2 layer2.cfg -lconfig 3 layer3.cfg \
207− ${aEncoderCommandSet[3]} ${aEncoderCommandValue[3]} \
208− ${ParamCommand}"
205+ ${aEncoderCommandSet[2]} ${aEncoderCommandValue[2]} \
206+ -lconfig 0 layer0.cfg -lconfig 1 layer1.cfg -lconfig 2 layer2.cfg -lconfig 3 layer3.cfg \
207+ ${aEncoderCommandSet[3]} ${aEncoderCommandValue[3]} \
208+ ${ParamCommand}"
209209 echo ""
210210 echo "---------------Encode One Case-------------------------------------------"
211211 echo "case line is :"
212212 EncoderCommand="./h264enc welsenc.cfg ${ParamCommand} -bf ${BitStreamFile} \
213− -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \
214− -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \
215− -org ${TestSequencePath}/${TestSequenceName}"
213+ -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \
214+ -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \
215+ -org ${TestSequencePath}/${TestSequenceName}"
216216 echo ${EncoderCommand}
217217 echo -e "\n\n"
218218 ./h264enc welsenc.cfg ${ParamCommand} -bf ${BitStreamFile} \
219− -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \
220− -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \
221− -org ${TestSequencePath}/${TestSequenceName} 2>${EncoderLogFile}
219+ -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \
220+ -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \
221+ -org ${TestSequencePath}/${TestSequenceName} 2>${EncoderLogFile}
222222 if [ $? -eq 0 ]
223223 then
224− let "EncoderFlag=0"
224+ let "EncoderFlag=0"
225225 else
226− let "EncoderFlag=1"
226+ let "EncoderFlag=1"
227227 fi
228228
229229 #delete the core down file as core down files for disk space limitation
230230 for file in ./core*
231231 do
232− if [ -e ${file} ]
233− then
234− ./run_SafeDelete.sh ${file}
235− fi
232+ if [ -e ${file} ]
233+ then
234+ ./run_SafeDelete.sh ${file}
235+ fi
236236 done
237237 return 0
238238 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t