All other shell scripts use spaces for indentation.
Showing the changes to test/encoder_binary_comparison/Scripts (1 of 3 files). Show all
Unified · Split
| @@ -56,25 +56,25 @@ runGlobalVariableDef() · 55 unmodified lines | ||
| 56 | 56 | runEncoderCommandInital() |
| 57 | 57 | { |
| 58 | 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" \ | |
| 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 ) | |
| 68 | 68 | 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 ) | |
| 78 | 78 | NumParameter=${#aEncoderCommandSet[@]} |
| 79 | 79 | for ((i=0;i<NumParameter; i++)) |
| 80 | 80 | do |
| @@ -103,27 +103,27 @@ runGlobalVariableInitial() · 22 unmodified lines | ||
| 103 | 103 | UpdateSHA1TableFile="${FinalResultPath}/${TestSequenceName}_UpdateSHA1Table.csv" |
| 104 | 104 | HeadLine1="BitMatched Status, SHA-1-Target, SHA-1-Benchmark, MD5-Target, MD5-Benchmark,\ |
| 105 | 105 | 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, " | |
| 116 | 116 | 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 " | |
| 127 | 127 | echo ${HeadLine1}>${AllCasePassStatusFile} |
| 128 | 128 | echo ${HeadLine1}>${UnpassCaseFile} |
| 129 | 129 | echo ${HeadLine2}>${UpdateSHA1TableFile} |
| @@ -152,8 +152,8 @@ runParseCaseInfo() · 22 unmodified lines | ||
| 152 | 152 | { |
| 153 | 153 | if [ $# -lt 1 ] |
| 154 | 154 | then |
| 155 | − echo "no parameter!" | |
| 156 | − return 1 | |
| 155 | + echo "no parameter!" | |
| 156 | + return 1 | |
| 157 | 157 | fi |
| 158 | 158 | local TempData="" |
| 159 | 159 | local CaseData=$@ |
| @@ -169,18 +169,18 @@ runParseCaseInfo() · 9 unmodified lines | ||
| 169 | 169 | let "TempParamFlag=0" |
| 170 | 170 | for((i=0; i<$NumParameter; i++)) |
| 171 | 171 | 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" | |
| 184 | 184 | done |
| 185 | 185 | |
| 186 | 186 | BitstreamTarget=${TempDataPath}/${TestSequenceName}_${BitstreamPrefix}_codec_target.264 |
| @@ -195,44 +195,44 @@ runEncodeOneCase() · 8 unmodified lines | ||
| 195 | 195 | |
| 196 | 196 | for ((i=4; i<${NumParameter}; i++)) |
| 197 | 197 | do |
| 198 | − ParamCommand="${ParamCommand} ${aEncoderCommandSet[$i]} ${aEncoderCommandValue[$i]} " | |
| 198 | + ParamCommand="${ParamCommand} ${aEncoderCommandSet[$i]} ${aEncoderCommandValue[$i]} " | |
| 199 | 199 | done |
| 200 | 200 | for((i=0;i<4;i++)) |
| 201 | 201 | do |
| 202 | − aRecYUVFileList[$i]="${TempDataPath}/${TestYUVName}_rec${i}.yuv" | |
| 202 | + aRecYUVFileList[$i]="${TempDataPath}/${TestYUVName}_rec${i}.yuv" | |
| 203 | 203 | done |
| 204 | 204 | 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}" | |
| 209 | 209 | echo "" |
| 210 | 210 | echo "---------------Encode One Case-------------------------------------------" |
| 211 | 211 | echo "case line is :" |
| 212 | 212 | 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}" | |
| 216 | 216 | echo ${EncoderCommand} |
| 217 | 217 | echo -e "\n\n" |
| 218 | 218 | ./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} | |
| 222 | 222 | if [ $? -eq 0 ] |
| 223 | 223 | then |
| 224 | − let "EncoderFlag=0" | |
| 224 | + let "EncoderFlag=0" | |
| 225 | 225 | else |
| 226 | − let "EncoderFlag=1" | |
| 226 | + let "EncoderFlag=1" | |
| 227 | 227 | fi |
| 228 | 228 | |
| 229 | 229 | #delete the core down file as core down files for disk space limitation |
| 230 | 230 | for file in ./core* |
| 231 | 231 | 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 | |
| 236 | 236 | done |
| 237 | 237 | return 0 |
| 238 | 238 | } |