[]
        
(Showing Draft Content)

CSJ2K.j2k.image.invcomptransf.InvCompTransf.calcMixedBitDepths

calcMixedBitDepths Method

calcMixedBitDepths(int[], int, int[])

Calculates the bitdepths of the transformed components, given the bitdepth of the un-transformed components and the component tranformation type.

Declaration
public static int[] calcMixedBitDepths(int[] utdepth, int ttype, int[] tdepth)
Parameters
Type Name Description
int[] utdepth

The bitdepth of each un-transformed component

int ttype

The type ID of the inverse component tranformation

int[] tdepth

If not null the results are stored in this array, otherwise a new array is allocated and returned.

Returns
Type Description
int[]

The bitdepth of each transformed component.