[]
        
(Showing Draft Content)

CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.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 transformation type.

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

The bitdepth of each non-transformed components.

int ttype

The type ID of the component transformation.

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.