imagingmodules/jp2kcodec/Inc/JP2KImageInfo.inl
branchRCL_3
changeset 4 3993b8f65362
parent 0 469c91dae73b
equal deleted inserted replaced
0:469c91dae73b 4:3993b8f65362
    22 #define __JP2KIMAGEINFO_INL__
    22 #define __JP2KIMAGEINFO_INL__
    23 
    23 
    24 // ============================ MEMBER FUNCTIONS ===============================
    24 // ============================ MEMBER FUNCTIONS ===============================
    25 
    25 
    26 // -----------------------------------------------------------------------------
    26 // -----------------------------------------------------------------------------
    27 // CJ2kImageInfo::NumOfHorizTiles
    27 // CJ2kImageInfo::NumOfHorizTilesL
    28 // Get total number of tiles in horizontal position
    28 // Get total number of tiles in horizontal position
    29 // (other items were commented in a header).
    29 // (other items were commented in a header).
    30 // -----------------------------------------------------------------------------
    30 // -----------------------------------------------------------------------------
    31 //
    31 //
    32 inline TUint16 CJ2kImageInfo::NumOfHorizTiles() const
    32 inline TUint16 CJ2kImageInfo::NumOfHorizTilesL() const
    33     {
    33     {
    34     return (TUint16)( TJ2kUtils::Ceil( iSizMarker.iXsiz - iSizMarker.iXTOsiz,
    34     return (TUint16)( TJ2kUtils::CeilL( iSizMarker.iXsiz - iSizMarker.iXTOsiz,
    35                                        iSizMarker.iXTsiz ) );
    35                                        iSizMarker.iXTsiz ) );
    36     }
    36     }
    37 
    37 
    38 // -----------------------------------------------------------------------------
    38 // -----------------------------------------------------------------------------
    39 // CJ2kImageInfo::NumOfVertTiles
    39 // CJ2kImageInfo::NumOfVertTilesL
    40 // Get total number of tiles in vertical position
    40 // Get total number of tiles in vertical position
    41 // (other items were commented in a header).
    41 // (other items were commented in a header).
    42 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    43 //
    43 //
    44 inline TUint16 CJ2kImageInfo::NumOfVertTiles() const
    44 inline TUint16 CJ2kImageInfo::NumOfVertTilesL() const
    45     {
    45     {
    46     return (TUint16)( TJ2kUtils::Ceil( iSizMarker.iYsiz - iSizMarker.iYTOsiz,
    46     return (TUint16)( TJ2kUtils::CeilL( iSizMarker.iYsiz - iSizMarker.iYTOsiz,
    47                                        iSizMarker.iYTsiz ) );
    47                                        iSizMarker.iYTsiz ) );
    48     }
    48     }
    49 
    49 
    50 // -----------------------------------------------------------------------------
    50 // -----------------------------------------------------------------------------
    51 // CJ2kImageInfo::NumOfComponents
    51 // CJ2kImageInfo::NumOfComponents