X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fbin%2Fjp2%2Fconvert.h;h=ab1d61a8d467421c04c8e79259acc285f9c9e506;hb=893143c8e13e491d0e884eb757580ec9575bbc8f;hp=51018c0b3bbfa1d86d390c995b7feb782fa9eba2;hpb=335e9725546df6bd50067ade316c599e0767d7ba;p=openjpeg.git diff --git a/src/bin/jp2/convert.h b/src/bin/jp2/convert.h index 51018c0b..ab1d61a8 100644 --- a/src/bin/jp2/convert.h +++ b/src/bin/jp2/convert.h @@ -70,6 +70,18 @@ void clip_component(opj_image_comp_t* component, OPJ_UINT32 precision); /* Component precision scaling */ void scale_component(opj_image_comp_t* component, OPJ_UINT32 precision); +/* planar / interleaved conversions */ +typedef void (* convert_32s_CXPX)(const OPJ_INT32* pSrc, OPJ_INT32* const* pDst, OPJ_SIZE_T length); +extern const convert_32s_CXPX convert_32s_CXPX_LUT[5]; +typedef void (* convert_32s_PXCX)(OPJ_INT32 const* const* pSrc, OPJ_INT32* pDst, OPJ_SIZE_T length, OPJ_INT32 adjust); +extern const convert_32s_PXCX convert_32s_PXCX_LUT[5]; +/* bit depth conversions */ +typedef void (* convert_XXx32s_C1R)(const OPJ_BYTE* pSrc, OPJ_INT32* pDst, OPJ_SIZE_T length); +extern const convert_XXx32s_C1R convert_XXu32s_C1R_LUT[9]; /* up to 8bpp */ +typedef void (* convert_32sXXx_C1R)(const OPJ_INT32* pSrc, OPJ_BYTE* pDst, OPJ_SIZE_T length); +extern const convert_32sXXx_C1R convert_32sXXu_C1R_LUT[9]; /* up to 8bpp */ + + /* TGA conversion */ opj_image_t* tgatoimage(const char *filename, opj_cparameters_t *parameters); int imagetotga(opj_image_t * image, const char *outfile);