Changeset 201 in 3DVCSoftware for branches/HTM-5.0-Nokia/source/App
- Timestamp:
- 4 Dec 2012, 23:29:29 (12 years ago)
- Location:
- branches/HTM-5.0-Nokia/source/App
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.0-Nokia/source/App/TAppDecoder/TAppDecTop.cpp
r200 r201 88 88 #endif 89 89 90 #if FLEX_CODING_ORDER 90 #if FLEX_CODING_ORDER_M23723 91 91 Int iDepthViewIdx = 0; 92 92 Int iTextureViewIdx=0; 93 Bool first _frame=1;94 Bool view id_zero=true;95 Int FCO_index=0; //when the current frame is not first frame,use FCO_index stand for viewDepth.93 Bool firstFrame=1; 94 Bool viewIdZero=true; 95 Int fcoIndex=0; //when the current frame is not first frame,use FCO_index stand for viewDepth. 96 96 #endif 97 97 … … 110 110 pcListPic[i] = NULL; 111 111 newPicture[i] = false; 112 #if FLEX_CODING_ORDER 113 FCO_Order[i]=NULL;112 #if FLEX_CODING_ORDER_M23723 113 m_fcoOrder[i]=NULL; 114 114 #endif 115 115 … … 173 173 depth = getVPSAccess()->getActiveVPS()->getDepthFlag(nalu.m_layerId); 174 174 } 175 #if FLEX_CODING_ORDER 175 #if FLEX_CODING_ORDER_M23723 176 176 if (viewId>0) 177 177 { 178 view id_zero=false;179 } 180 if (view id_zero==false&&viewId==0)181 { 182 first _frame=0; //if viewId has been more than zero and now it set to zero again, we can see that it is not the first view183 } 184 if (first _frame)178 viewIdZero=false; 179 } 180 if (viewIdZero==false&&viewId==0) 181 { 182 firstFrame=0; //if viewId has been more than zero and now it set to zero again, we can see that it is not the first view 183 } 184 if (firstFrame) 185 185 { // if the current view is first frame, we set the viewDepthId as texture plus depth and get the FCO order 186 186 viewDepthId = iDepthViewIdx+iTextureViewIdx; 187 FCO_viewDepthId=viewDepthId;187 m_fcoViewDepthId=viewDepthId; 188 188 } 189 189 else … … 192 192 if (depth) 193 193 { 194 for ( FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )194 for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ ) 195 195 { 196 if ( FCO_Order[FCO_index]=='D')196 if (m_fcoOrder[fcoIndex]=='D') 197 197 { 198 198 if (viewId==viewDepthId) … … 205 205 else 206 206 { 207 for ( FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )207 for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ ) 208 208 { 209 if ( FCO_Order[FCO_index]=='T')209 if (m_fcoOrder[fcoIndex]=='T') 210 210 { 211 211 if (viewId==viewDepthId) … … 217 217 } 218 218 219 viewDepthId= FCO_index;219 viewDepthId=fcoIndex; 220 220 221 221 } … … 229 229 Int viewId = nalu.m_viewId; 230 230 Int depth = nalu.m_isDepth ? 1 : 0; 231 #if FLEX_CODING_ORDER 231 #if FLEX_CODING_ORDER_M23723 232 232 if (viewId>0) 233 233 { 234 view id_zero=false;235 } 236 if (view id_zero==false&&viewId==0)237 { 238 first _frame=0;239 } 240 if (first _frame)234 viewIdZero=false; 235 } 236 if (viewIdZero==false&&viewId==0) 237 { 238 firstFrame=0; 239 } 240 if (firstFrame) 241 241 { 242 242 viewDepthId = iDepthViewIdx+iTextureViewIdx; 243 FCO_viewDepthId=viewDepthId;243 m_fcoViewDepthId=viewDepthId; 244 244 } 245 245 else … … 248 248 if (depth) 249 249 { 250 for ( FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )250 for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ ) 251 251 { 252 if ( FCO_Order[FCO_index]=='D')252 if (m_fcoOrder[fcoIndex]=='D') 253 253 { 254 254 if (viewId==viewDepthId) … … 261 261 else 262 262 { 263 for ( FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )263 for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ ) 264 264 { 265 if ( FCO_Order[FCO_index]=='T')265 if (m_fcoOrder[fcoIndex]=='T') 266 266 { 267 267 if (viewId==viewDepthId) … … 273 273 } 274 274 275 viewDepthId= FCO_index;275 viewDepthId=fcoIndex; 276 276 277 277 } … … 338 338 { 339 339 previousPictureDecoded = true; 340 #if FLEX_CODING_ORDER 341 if (first_frame)342 340 #if FLEX_CODING_ORDER_M23723 341 if (firstFrame) 342 { 343 343 if (depth) 344 344 { 345 345 iDepthViewIdx++; 346 FCO_Order[viewDepthId]='D';346 m_fcoOrder[viewDepthId]='D'; 347 347 } 348 348 else 349 349 { 350 350 iTextureViewIdx++; 351 FCO_Order[viewDepthId]='T';351 m_fcoOrder[viewDepthId]='T'; 352 352 } 353 353 } … … 657 657 TDecTop* TAppDecTop::getTDecTop( Int viewId, Bool isDepth ) 658 658 { 659 #if FLEX_CODING_ORDER 659 #if FLEX_CODING_ORDER_M23723 660 660 Int viewnumber=0; 661 661 Int i=0; 662 Bool FCO_flag=0;663 if (viewId> FCO_viewDepthId)662 Bool fcoFlag=0; 663 if (viewId>m_fcoViewDepthId) 664 664 { 665 665 return NULL; … … 669 669 if (isDepth) 670 670 { 671 for ( i=0; i<= FCO_viewDepthId;i++)672 { 673 if ( FCO_Order[i]=='D')671 for ( i=0; i<=m_fcoViewDepthId;i++) 672 { 673 if (m_fcoOrder[i]=='D') 674 674 { 675 675 if (viewnumber==viewId) 676 676 { 677 FCO_flag=1;677 fcoFlag=1; 678 678 break; 679 679 } … … 685 685 else 686 686 { 687 for ( i=0; i<= FCO_viewDepthId;i++)688 { 689 if ( FCO_Order[i]=='T')687 for ( i=0; i<=m_fcoViewDepthId;i++) 688 { 689 if (m_fcoOrder[i]=='T') 690 690 { 691 691 if (viewnumber==viewId) 692 692 { 693 FCO_flag=1;693 fcoFlag=1; 694 694 break; 695 695 } … … 699 699 } 700 700 } 701 if ( FCO_flag)701 if (fcoFlag) 702 702 { 703 703 return m_tDecTop[i]; … … 731 731 assert( ( viewId >= 0 ) ); 732 732 733 #if FLEX_CODING_ORDER 733 #if FLEX_CODING_ORDER_M23723 734 734 if (getTDecTop(viewId,isDepth)) 735 735 { -
branches/HTM-5.0-Nokia/source/App/TAppDecoder/TAppDecTop.h
r200 r201 71 71 Bool m_useDepth; 72 72 73 #if FLEX_CODING_ORDER 74 Int FCO_viewDepthId;75 Char FCO_Order[MAX_VIEW_NUM*2];73 #if FLEX_CODING_ORDER_M23723 74 Int m_fcoViewDepthId; 75 Char m_fcoOrder[MAX_VIEW_NUM*2]; 76 76 #endif 77 77 -
branches/HTM-5.0-Nokia/source/App/TAppEncoder/TAppEncCfg.cpp
r200 r201 112 112 free (m_pchBitstreamFile) ; 113 113 114 #if FLEX_CODING_ORDER 114 #if FLEX_CODING_ORDER_M23723 115 115 if (m_pchMVCJointCodingOrder != NULL) 116 116 { … … 212 212 string cfg_ScalingListFile; 213 213 214 #if FLEX_CODING_ORDER 214 #if FLEX_CODING_ORDER_M23723 215 215 string cfg_JointCodingOrdering; 216 216 #endif … … 260 260 ("NumberOfViews", m_iNumberOfViews, 0, "Number of views") 261 261 262 #if FLEX_CODING_ORDER 262 #if FLEX_CODING_ORDER_M23723 263 263 ("FCO", m_b3DVFlexOrder, false, "flexible coding order flag" ) 264 264 ("FCOCodingOrder", cfg_JointCodingOrdering, string(""), "The coding order for joint texture-depth coding") … … 553 553 m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str()); 554 554 555 #if FLEX_CODING_ORDER 555 #if FLEX_CODING_ORDER_M23723 556 556 m_pchMVCJointCodingOrder= cfg_JointCodingOrdering.empty()?NULL:strdup(cfg_JointCodingOrdering.c_str()); 557 557 // If flexible order is enabled and if depth comes before the texture for a view, disable VSO … … 1826 1826 printf("TMVP:%d ", (m_enableTMVP[1] ? 1 : 0) ); 1827 1827 #endif 1828 1829 #if FLEX_CODING_ORDER_M23723 1830 printf("FCO:%d ", (m_b3DVFlexOrder ? 1: 0)); 1831 1832 if(m_b3DVFlexOrder) 1833 { 1834 printf("CodingOrder: %s ", m_pchMVCJointCodingOrder); 1835 } 1836 #endif 1837 1828 1838 #if HHI_VSO 1829 1839 printf("VSO:%d ", m_bUseVSO ); -
branches/HTM-5.0-Nokia/source/App/TAppEncoder/TAppEncCfg.h
r200 r201 89 89 Bool m_bUsingDepthMaps; 90 90 91 #if FLEX_CODING_ORDER 91 #if FLEX_CODING_ORDER_M23723 92 92 char* m_pchMVCJointCodingOrder; ///< texture-depth coding order 93 93 Bool m_b3DVFlexOrder; ///< flexible coding order flag -
branches/HTM-5.0-Nokia/source/App/TAppEncoder/TAppEncTop.cpp
r200 r201 401 401 { 402 402 403 #if FLEX_CODING_ORDER 403 #if FLEX_CODING_ORDER_M23723 404 404 // Detect whether depth comes before than texture for this view 405 405 Bool isDepthFirst = false; … … 708 708 #endif 709 709 710 #if FLEX_CODING_ORDER && HHI_DMM_PRED_TEX710 #if FLEX_CODING_ORDER_M23723 && HHI_DMM_PRED_TEX 711 711 m_acTEncDepthTopList[iViewIdx]->setUseDMM34( (m_b3DVFlexOrder && isDepthFirst) ? false : m_bUseDMM ); 712 712 #endif … … 717 717 718 718 #if HHI_MPI 719 #if FLEX_CODING_ORDER 719 #if FLEX_CODING_ORDER_M23723 720 720 m_acTEncDepthTopList[iViewIdx]->setUseMVI( (m_b3DVFlexOrder && isDepthFirst) ? false : m_bUseMVI ); 721 721 #else … … 1041 1041 #endif 1042 1042 1043 #if FLEX_CODING_ORDER 1043 #if FLEX_CODING_ORDER_M23723 1044 1044 if (m_b3DVFlexOrder) 1045 1045 { … … 1122 1122 } 1123 1123 1124 #if FLEX_CODING_ORDER 1124 #if FLEX_CODING_ORDER_M23723 1125 1125 } 1126 1126 #endif
Note: See TracChangeset for help on using the changeset viewer.