Changeset 201 in 3DVCSoftware for branches/HTM-5.0-Nokia/source/App/TAppDecoder
- Timestamp:
- 4 Dec 2012, 23:29:29 (12 years ago)
- Location:
- branches/HTM-5.0-Nokia/source/App/TAppDecoder
- Files:
-
- 2 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
Note: See TracChangeset for help on using the changeset viewer.