equal
deleted
inserted
replaced
246 cblkSize = compSize; |
246 cblkSize = compSize; |
247 } |
247 } |
248 |
248 |
249 denom = 1 << ( aComponent.Levels() - resLevel ); |
249 denom = 1 << ( aComponent.Levels() - resLevel ); |
250 |
250 |
251 trx0 = TJ2kUtils::Ceil( aComponent.ComponentCanvas().iTl.iX, denom ); |
251 trx0 = TJ2kUtils::CeilL( aComponent.ComponentCanvas().iTl.iX, denom ); |
252 try0 = TJ2kUtils::Ceil( aComponent.ComponentCanvas().iTl.iY, denom ); |
252 try0 = TJ2kUtils::CeilL( aComponent.ComponentCanvas().iTl.iY, denom ); |
253 trx1 = TJ2kUtils::Ceil( aComponent.ComponentCanvas().iBr.iX, denom ); |
253 trx1 = TJ2kUtils::CeilL( aComponent.ComponentCanvas().iBr.iX, denom ); |
254 try1 = TJ2kUtils::Ceil( aComponent.ComponentCanvas().iBr.iY, denom ); |
254 try1 = TJ2kUtils::CeilL( aComponent.ComponentCanvas().iBr.iY, denom ); |
255 |
255 |
256 nOrig = ( trx0 / ( 1 << ppxL ) ) * ( 1 << ppxL ); |
256 nOrig = ( trx0 / ( 1 << ppxL ) ) * ( 1 << ppxL ); |
257 mOrig = ( try0 / ( 1 << ppyL ) ) * ( 1 << ppyL ); |
257 mOrig = ( try0 / ( 1 << ppyL ) ) * ( 1 << ppyL ); |
258 |
258 |
259 // First subband at this resolution level |
259 // First subband at this resolution level |
293 if ( trx1 > 0 && try1 > 0 ) |
293 if ( trx1 > 0 && try1 > 0 ) |
294 { |
294 { |
295 packetIndex = ( TUint16 )( yIndex * tmpSize.iWidth + xIndex ); |
295 packetIndex = ( TUint16 )( yIndex * tmpSize.iWidth + xIndex ); |
296 packet = subband->iPacketList[packetIndex]; |
296 packet = subband->iPacketList[packetIndex]; |
297 packet->SetPacketCanvas( trx0, try0, trx1, try1 ); |
297 packet->SetPacketCanvas( trx0, try0, trx1, try1 ); |
298 packet->SetNumOfBlocks( cblkSize ); |
298 packet->SetNumOfBlocksL( cblkSize ); |
299 packet->BuildCodeBlocksL( xCoord, yCoord, cblkSize ); |
299 packet->BuildCodeBlocksL( xCoord, yCoord, cblkSize ); |
300 } |
300 } |
301 xCoord += tmpX; |
301 xCoord += tmpX; |
302 } // end of xIndex |
302 } // end of xIndex |
303 yCoord += tmpY; |
303 yCoord += tmpY; |