hi
im writting a jpeg2k codec for DCMTK using jasper library, and i have
been googling for a while and found nothing about it, i'd like to
know if someone has implemented something alike with jasper. the main
problem im facing is when i try to encode a dicom image already
decompressed from any format to jpeg 2000, because jasper doesnt have
an interface to encode from raw image, they always ask for an input
format.

****BELOW FOR PEOPLE FAMILIARIZED WITH JASPER*******
how can i create a "jas_image_t" or a jas_image_cmpt_t
from( buffer,colorspace, height, width, sample, and all necessary
info)

when i finish i will make the code public under GPL
thank for any help