Opened 13 years ago Closed 13 years ago #724 closed defect (invalid)Loop in RasterScan to TileScan lacks an early exit
Description
In 6.5.1 Coding tree block raster and tile scanning conversion process, the derivation process for ctbAddrRStoTS is lacking an exit out of the loop when determining tileX and tileY. As a result, tileX and tileY always end up with the maximum value. Since there is no defined way of early exit (no equivalent to the C "break"), this can be solved by running the loop backward like so: for( i = num_tile_columns_minus1; i >= 0; i-- ) if( tbX >= colBd[ i ] ) tileX = i
Alternatively: tileX = -1 for( i = 0; i <= num_tile_columns_minus1; i++ ) if( ( tileX < 0 ) && ( tbX >= colBd[ i ] ) ) tileX = i Change History (2)comment:1 Changed 13 years ago by DefaultCC Plugin
comment:2 Changed 13 years ago by pieterkapsenberg
Note: See
TracTickets for help on using
tickets. | This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber, Participant
|