jp2_family_in.Open(r.getImageFile(), true);
inputSource.Open(jp2_family_in, true);
Kdu_codestream codestream = new Kdu_codestream();
codestream.Create(inputSource.Access_codestream(ref_component).Open_stream());
int minLevels = codestream.Get_min_dwt_levels();
int depth = codestream.Get_bit_depth(ref_component);
int colors = codestream.Get_num_components();
int[] frames = new int[1];
inputSource.Count_compositing_layers(frames);
Kdu_dims image_dims = new Kdu_dims();