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
56runEncoderCommandInital()56runEncoderCommandInital()
57{57{
58 aEncoderCommandSet=( -utype -frms -numl -numtl \58 aEncoderCommandSet=( -utype -frms -numl -numtl \
59 -sw -sh "-dw 0" "-dh 0" "-dw 1" "-dh 1" "-dw 2" "-dh 2" "-dw 3" "-dh 3" \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" \60 "-frout 0" "-frout 1" "-frout 2" "-frout 3" \
61 "-lqp 0" "-lqp 1" "-lqp 2" "-lqp 3" \61 "-lqp 0" "-lqp 1" "-lqp 2" "-lqp 3" \
62 -rc -tarb "-ltarb 0" "-ltarb 1" "-ltarb 2" "-ltarb 3" \62 -rc -tarb "-ltarb 0" "-ltarb 1" "-ltarb 2" "-ltarb 3" \
63 "-slcmd 0" "-slcnum 0" "-slcmd 1" "-slcnum 1"\63 "-slcmd 0" "-slcnum 0" "-slcmd 1" "-slcnum 1"\
64 "-slcmd 2" "-slcnum 2" "-slcmd 3" "-slcnum 3"\64 "-slcmd 2" "-slcnum 2" "-slcmd 3" "-slcnum 3"\
65 -nalsize \65 -nalsize \
66 -iper -thread -ltr \66 -iper -thread -ltr \
67 -db -denois -scene -bgd -aq )67 -db -denois -scene -bgd -aq )
68 aEncoderCommandName=(usagetype frms numl numtl \68 aEncoderCommandName=(usagetype frms numl numtl \
69 sw sh dw0 dh0 dw1 dh1 dw2 dh2 dw3 dh3 \69 sw sh dw0 dh0 dw1 dh1 dw2 dh2 dw3 dh3 \
70 frout0 frout1 frout2 frout3 \70 frout0 frout1 frout2 frout3 \
71 lqp0 lqp1 lqp2 lqp3 \71 lqp0 lqp1 lqp2 lqp3 \
72 rc tarb ltarb0 ltarb1 ltarb2 ltarb3 \72 rc tarb ltarb0 ltarb1 ltarb2 ltarb3 \
73 slcmd0 slcnum0 slcmd1 slcnum1 \73 slcmd0 slcnum0 slcmd1 slcnum1 \
74 slcmd2 slcnum2 slcmd3 slcnum3 \74 slcmd2 slcnum2 slcmd3 slcnum3 \
75 MaxNalSZ \75 MaxNalSZ \
76 iper thread ltr \76 iper thread ltr \
77 db denois scene bgd aq )77 db denois scene bgd aq )
78 NumParameter=${#aEncoderCommandSet[@]}78 NumParameter=${#aEncoderCommandSet[@]}
79 for ((i=0;i<NumParameter; i++))79 for ((i=0;i<NumParameter; i++))
80 do80 do
@@ -103,27 +103,27 @@ runGlobalVariableInitial() · 22 unmodified lines
103 UpdateSHA1TableFile="${FinalResultPath}/${TestSequenceName}_UpdateSHA1Table.csv"103 UpdateSHA1TableFile="${FinalResultPath}/${TestSequenceName}_UpdateSHA1Table.csv"
104 HeadLine1="BitMatched Status, SHA-1-Target, SHA-1-Benchmark, MD5-Target, MD5-Benchmark,\104 HeadLine1="BitMatched Status, SHA-1-Target, SHA-1-Benchmark, MD5-Target, MD5-Benchmark,\
105 Bitstream-Target,Bitstream-Benchmark,YUV-Target,YUV-Benchmark,\105 Bitstream-Target,Bitstream-Benchmark,YUV-Target,YUV-Benchmark,\
106 -utype, -frms, -numl, -numtl, -sw, -sh,\106 -utype, -frms, -numl, -numtl, -sw, -sh,\
107 -dw 0, -dh 0, -dw 1, -dh 1, -dw 2, -dh 2, -dw 3, -dh 3,\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,\108 -frout 0, -frout 1, -frout 2, -frout 3,\
109 -lqp 0, -lqp 1, -lqp 2, -lqp 3,\109 -lqp 0, -lqp 1, -lqp 2, -lqp 3,\
110 -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\110 -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\
111 -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\111 -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\
112 -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\112 -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\
113 -nalsize,\113 -nalsize,\
114 -iper, -thread, -ltr, -db, -denois,\114 -iper, -thread, -ltr, -db, -denois,\
115 -scene, -bgd , -aq, "115 -scene, -bgd , -aq, "
116 HeadLine2="SHA-1 Value, MD5String, BitStreamSize, YUVSize, \116 HeadLine2="SHA-1 Value, MD5String, BitStreamSize, YUVSize, \
117 -utype, -frms, -numl, -numtl, -sw, -sh,\117 -utype, -frms, -numl, -numtl, -sw, -sh,\
118 -dw 0, -dh 0, -dw 1, -dh 1,-dw 2, -dh 2, -dw 3, -dh 3,\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,\119 -frout 0, -frout 1, -frout 2, -frout 3,\
120 -lqp 0, -lqp 1, -lqp 2, -lqp 3,\120 -lqp 0, -lqp 1, -lqp 2, -lqp 3,\
121 -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\121 -rc, -tarb, -ltarb 0, -ltarb 1, -ltarb 2, -ltarb 3,\
122 -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\122 -slcmd 0, -slcnum 0, -slcmd 1, -slcnum 1,\
123 -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\123 -slcmd 2, -slcnum 2, -slcmd 3, -slcnum 3,\
124 -nalsize,\124 -nalsize,\
125 -iper, -thread, -ltr, -db, -denois,\125 -iper, -thread, -ltr, -db, -denois,\
126 -scene , bgd , -aq "126 -scene , bgd , -aq "
127 echo ${HeadLine1}>${AllCasePassStatusFile}127 echo ${HeadLine1}>${AllCasePassStatusFile}
128 echo ${HeadLine1}>${UnpassCaseFile}128 echo ${HeadLine1}>${UnpassCaseFile}
129 echo ${HeadLine2}>${UpdateSHA1TableFile}129 echo ${HeadLine2}>${UpdateSHA1TableFile}
@@ -152,8 +152,8 @@ runParseCaseInfo() · 22 unmodified lines
152{152{
153 if [ $# -lt 1 ]153 if [ $# -lt 1 ]
154 then154 then
155 echo "no parameter!"155 echo "no parameter!"
156 return 1156 return 1
157 fi157 fi
158 local TempData=""158 local TempData=""
159 local CaseData=$@159 local CaseData=$@
@@ -169,18 +169,18 @@ runParseCaseInfo() · 9 unmodified lines
169 let "TempParamFlag=0"169 let "TempParamFlag=0"
170 for((i=0; i<$NumParameter; i++))170 for((i=0; i<$NumParameter; i++))
171 do171 do
172 for ParnmIndex in ${aTempParamIndex[@]}172 for ParnmIndex in ${aTempParamIndex[@]}
173 do173 do
174 if [ $i -eq ${ParnmIndex} ]174 if [ $i -eq ${ParnmIndex} ]
175 then175 then
176 let "TempParamFlag=1"176 let "TempParamFlag=1"
177 fi177 fi
178 done178 done
179 if [ ${TempParamFlag} -eq 0 ]179 if [ ${TempParamFlag} -eq 0 ]
180 then180 then
181 BitstreamPrefix=${BitstreamPrefix}_${aEncoderCommandName[$i]}_${aEncoderCommandValue[$i]}181 BitstreamPrefix=${BitstreamPrefix}_${aEncoderCommandName[$i]}_${aEncoderCommandValue[$i]}
182 fi182 fi
183 let "TempParamFlag=0"183 let "TempParamFlag=0"
184 done184 done
185 185
186 BitstreamTarget=${TempDataPath}/${TestSequenceName}_${BitstreamPrefix}_codec_target.264186 BitstreamTarget=${TempDataPath}/${TestSequenceName}_${BitstreamPrefix}_codec_target.264
@@ -195,44 +195,44 @@ runEncodeOneCase() · 8 unmodified lines
195 195
196 for ((i=4; i<${NumParameter}; i++))196 for ((i=4; i<${NumParameter}; i++))
197 do197 do
198 ParamCommand="${ParamCommand} ${aEncoderCommandSet[$i]} ${aEncoderCommandValue[$i]} "198 ParamCommand="${ParamCommand} ${aEncoderCommandSet[$i]} ${aEncoderCommandValue[$i]} "
199 done199 done
200 for((i=0;i<4;i++))200 for((i=0;i<4;i++))
201 do201 do
202 aRecYUVFileList[$i]="${TempDataPath}/${TestYUVName}_rec${i}.yuv"202 aRecYUVFileList[$i]="${TempDataPath}/${TestYUVName}_rec${i}.yuv"
203 done203 done
204 ParamCommand="${aEncoderCommandSet[0]} ${aEncoderCommandValue[0]} ${aEncoderCommandSet[1]} ${aEncoderCommandValue[1]} \204 ParamCommand="${aEncoderCommandSet[0]} ${aEncoderCommandValue[0]} ${aEncoderCommandSet[1]} ${aEncoderCommandValue[1]} \
205 ${aEncoderCommandSet[2]} ${aEncoderCommandValue[2]} \205 ${aEncoderCommandSet[2]} ${aEncoderCommandValue[2]} \
206 -lconfig 0 layer0.cfg -lconfig 1 layer1.cfg -lconfig 2 layer2.cfg -lconfig 3 layer3.cfg \206 -lconfig 0 layer0.cfg -lconfig 1 layer1.cfg -lconfig 2 layer2.cfg -lconfig 3 layer3.cfg \
207 ${aEncoderCommandSet[3]} ${aEncoderCommandValue[3]} \207 ${aEncoderCommandSet[3]} ${aEncoderCommandValue[3]} \
208 ${ParamCommand}"208 ${ParamCommand}"
209 echo ""209 echo ""
210 echo "---------------Encode One Case-------------------------------------------"210 echo "---------------Encode One Case-------------------------------------------"
211 echo "case line is :"211 echo "case line is :"
212 EncoderCommand="./h264enc welsenc.cfg ${ParamCommand} -bf ${BitStreamFile} \212 EncoderCommand="./h264enc welsenc.cfg ${ParamCommand} -bf ${BitStreamFile} \
213 -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \213 -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \
214 -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \214 -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \
215 -org ${TestSequencePath}/${TestSequenceName}"215 -org ${TestSequencePath}/${TestSequenceName}"
216 echo ${EncoderCommand}216 echo ${EncoderCommand}
217 echo -e "\n\n"217 echo -e "\n\n"
218 ./h264enc welsenc.cfg ${ParamCommand} -bf ${BitStreamFile} \218 ./h264enc welsenc.cfg ${ParamCommand} -bf ${BitStreamFile} \
219 -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \219 -drec 0 ${aRecYUVFileList[0]} -drec 1 ${aRecYUVFileList[1]} \
220 -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \220 -drec 2 ${aRecYUVFileList[2]} -drec 3 ${aRecYUVFileList[3]} \
221 -org ${TestSequencePath}/${TestSequenceName} 2>${EncoderLogFile}221 -org ${TestSequencePath}/${TestSequenceName} 2>${EncoderLogFile}
222 if [ $? -eq 0 ]222 if [ $? -eq 0 ]
223 then223 then
224 let "EncoderFlag=0"224 let "EncoderFlag=0"
225 else225 else
226 let "EncoderFlag=1"226 let "EncoderFlag=1"
227 fi227 fi
228 228
229 #delete the core down file as core down files for disk space limitation229 #delete the core down file as core down files for disk space limitation
230 for file in ./core*230 for file in ./core*
231 do231 do
232 if [ -e ${file} ]232 if [ -e ${file} ]
233 then233 then
234 ./run_SafeDelete.sh ${file}234 ./run_SafeDelete.sh ${file}
235 fi235 fi
236 done236 done
237 return 0237 return 0
238}238}

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