Ticket #118: fix_missing_braces.diff
File fix_missing_braces.diff, 2.7 KB (added by jsauer, 5 years ago) |
---|
-
source/App/utils/360ConvertApp/360ConvertAppCfg.cpp
113 113 114 114 TApp360ConvertCfg::~TApp360ConvertCfg() 115 115 { 116 if(m_pchInputFile) free(m_pchInputFile); m_pchInputFile= nullptr;117 if(m_pchOutputFile) free(m_pchOutputFile); m_pchOutputFile= nullptr;118 if(m_pchRefFile) free(m_pchRefFile); m_pchRefFile= nullptr;119 if(m_pchSphData) free(m_pchSphData); m_pchSphData= nullptr;120 if(m_pchVPortFile) free(m_pchVPortFile); m_pchVPortFile= nullptr;116 if(m_pchInputFile) {free(m_pchInputFile); m_pchInputFile= nullptr;} 117 if(m_pchOutputFile) {free(m_pchOutputFile); m_pchOutputFile= nullptr;} 118 if(m_pchRefFile) {free(m_pchRefFile); m_pchRefFile= nullptr;} 119 if(m_pchSphData) {free(m_pchSphData); m_pchSphData= nullptr;} 120 if(m_pchVPortFile) {free(m_pchVPortFile); m_pchVPortFile= nullptr;} 121 121 #if SVIDEO_DYNAMIC_VIEWPORT_PSNR 122 if(m_pchDynVPortFile) free(m_pchDynVPortFile); m_pchDynVPortFile= nullptr;122 if(m_pchDynVPortFile) {free(m_pchDynVPortFile); m_pchDynVPortFile= nullptr;} 123 123 #endif 124 if(m_pchSpherePointsFile) free(m_pchSpherePointsFile); m_pchSpherePointsFile= nullptr;124 if(m_pchSpherePointsFile) {free(m_pchSpherePointsFile); m_pchSpherePointsFile= nullptr;} 125 125 } 126 126 127 127 Void TApp360ConvertCfg::create() … … 168 168 in>>sFPStruct.rows; 169 169 in>>sFPStruct.cols; 170 170 for ( Int i = 0; i < sFPStruct.rows; i++ ) 171 { 171 172 for(Int j=0; j<sFPStruct.cols; j++) 172 173 { 173 174 in>>sFPStruct.faces[i][j].id; 174 175 in>>sFPStruct.faces[i][j].rot; 175 176 } 176 return in; 177 } 178 return in; 177 179 } 178 180 static inline std::istringstream &operator>>(std::istringstream &in, ViewPortSettings &vp) //input 179 181 { -
source/Lib/Lib360/TWSPSNRMetricCalc.cpp
1293 1293 } 1294 1294 //weights for the entire frame_C 1295 1295 for(Int i=0;i<4;i++) 1296 { 1296 1297 for (Int x=0;x<(iFaceWidth>>iScaleX);x++) 1298 { 1297 1299 for (Int y=0;y<(iFaceHeight>>iScaleY);y++) 1298 1300 { 1299 1301 if(sfabs(x*(1<<iScaleX)+dChromaOffset[0]+0.5-iFaceWidth/2) < (y*(1<<iScaleY)+dChromaOffset[1]+0.5)/sqrt(3.0)) … … 1301 1303 m_fOctaWeight_C[y*(iwidth >> iScaleX)+2*i+1+i*(iFaceWidth>>iScaleX)+x]=fWeightRotZero_C[(iFaceWidth>>iScaleX)*y+x]; 1302 1304 } 1303 1305 } 1306 } 1307 } 1304 1308 1305 1309 for(Int i=-1;i<4;i++) 1306 1310 //for(Int x=0;x<m_iCodingFaceWidth;x++) //WS-PSNR checking;